/* Category icons share the site's accent palette and remain decorative. */
.skills-grid .skill-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	line-height: 1.35;
}
.skill-heading > span:last-child {
	min-width: 0;
}
.skill-icon {
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--accent);
	transition:
		background-color 0.2s,
		border-color 0.2s,
		color 0.2s;
}
.skill-icon svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@media (hover: hover) {
	.skills-grid > div:hover .skill-icon {
		background: var(--accent);
		color: var(--button-ink);
		border-color: var(--accent);
	}
}
/* Project showcase uses the existing light/dark design tokens. */
.project-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	background: var(--surface);
}
.project-art {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 28px;
	padding: 44px 30px;
	background:
		radial-gradient(ellipse at 20% 30%, var(--glow), transparent 70%),
		var(--pale);
	border-right: 1px solid var(--line);
}
.project-browser {
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	box-shadow: var(--shadow);
	overflow: hidden;
	transform: rotate(-2deg);
	transition: transform 0.3s;
}
.project-browser-bar {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--line);
	font: 11px monospace;
	color: var(--muted);
}
.project-browser-bar > span:first-child {
	color: var(--accent);
	letter-spacing: 3px;
}
.project-browser-body {
	padding: 26px;
}
.project-mini-label,
.project-art-caption {
	font: 10px/1.6 monospace;
	letter-spacing: 0.1em;
	color: var(--muted);
}
.project-browser-body strong {
	display: block;
	margin: 18px 0;
	font-size: clamp(1.5rem, 3vw, 2.4rem);
	line-height: 1.12;
	letter-spacing: -0.05em;
}
.project-browser-body em {
	font-style: normal;
	color: var(--accent);
}
.project-mini-code {
	font: 12px/1.8 monospace;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
}
.project-mini-code span {
	color: var(--purple);
}
.project-mini-code b {
	color: var(--accent);
	font-weight: 400;
}
.project-art-caption {
	text-align: center;
}
.project-content {
	min-width: 0;
	padding: 38px;
}
.project-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font: 11px/1.5 monospace;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 24px;
}
.project-status {
	color: var(--accent);
	border: 1px solid var(--line);
	border-radius: 99px;
	padding: 5px 10px;
}
.project-status:before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background: currentColor;
	border-radius: 50%;
	margin-right: 6px;
}
.project-content h3 {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	letter-spacing: -0.04em;
}
.project-content > p {
	color: var(--muted);
}
.project-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	padding: 0;
	margin: 24px 0;
}
.project-tech li {
	font: 12px/1.4 monospace;
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 7px 9px;
	color: var(--ink);
}
.project-details {
	border-block: 1px solid var(--line);
	margin-bottom: 24px;
}
.project-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	list-style: none;
	min-height: 48px;
	font-weight: 600;
}
.project-details summary::-webkit-details-marker {
	display: none;
}
.project-details summary > span {
	color: var(--accent);
	font-size: 1.5rem;
	transition: transform 0.2s;
}
.project-details[open] summary > span {
	transform: rotate(45deg);
}
.project-details ul {
	padding-left: 20px;
	color: var(--muted);
	font-size: 0.9rem;
}
.project-details li + li {
	margin-top: 7px;
}
.project-visit {
	width: fit-content;
}
.project-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.project-card:hover .project-browser {
		transform: rotate(0deg) translateY(-4px);
	}
}
@media (max-width: 800px) {
	.project-card {
		grid-template-columns: 1fr;
	}
	.project-art {
		border-right: 0;
		border-bottom: 1px solid var(--line);
		padding: 30px 24px;
	}
	.project-content {
		padding: 26px;
	}
	.project-browser-body strong {
		font-size: 2rem;
	}
}
@media (max-width: 380px) {
	.project-content {
		padding: 22px 18px;
	}
	.project-art {
		padding: 24px 18px;
	}
	.project-browser-body {
		padding: 20px;
	}
	.project-meta {
		font-size: 10px;
	}
}
/* Shared design tokens keep every section in sync with the selected theme. */
:root {
	color-scheme: dark;
	--paper: #0d1420;
	--pale: #111c2b;
	--surface: #162335;
	--hero: #0a111c;
	--ink: #edf3fa;
	--muted: #a9b9cc;
	--line: #304158;
	--accent: #c8f276;
	--accent-end: #77dfcb;
	--button-ink: #182615;
	--header: rgba(13, 20, 32, 0.95);
	--glow: rgba(112, 190, 151, 0.1);
	--grid: rgba(163, 190, 215, 0.055);
	--purple: #d0b4fa;
	--blue: #8ed2f4;
	--shadow: 0 22px 65px rgba(0, 0, 0, 0.2);
}
:root[data-theme="light"] {
	color-scheme: light;
	--paper: #fafbf8;
	--pale: #eef2ec;
	--surface: #fff;
	--hero: #f2f6ef;
	--ink: #192a2c;
	--muted: #506465;
	--line: #cdd9cf;
	--accent: #386526;
	--accent-end: #17685a;
	--button-ink: #fff;
	--header: rgba(250, 251, 248, 0.95);
	--glow: rgba(119, 170, 89, 0.13);
	--grid: rgba(42, 74, 48, 0.055);
	--purple: #7541a0;
	--blue: #176388;
	--shadow: 0 22px 65px rgba(32, 62, 43, 0.09);
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font:
		16px/1.7 system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
}
a {
	color: inherit;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
	text-underline-offset: 5px;
}
button,
a {
	-webkit-tap-highlight-color: transparent;
}
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 5px;
}
h1,
h2,
h3,
p {
	margin-top: 0;
}
h1,
h2,
h3 {
	line-height: 1.12;
	text-wrap: balance;
}
p {
	margin-bottom: 20px;
}
h1 {
	font-size: clamp(3rem, 5.5vw, 5.5rem);
	font-weight: 650;
	letter-spacing: -0.065em;
	margin-bottom: 28px;
}
h2 {
	font-size: clamp(2rem, 3.7vw, 3.5rem);
	font-weight: 600;
	letter-spacing: -0.045em;
	margin-bottom: 30px;
}
h3 {
	font-size: 1.2rem;
	letter-spacing: -0.02em;
}
.skip {
	position: fixed;
	top: -100px;
	left: 20px;
	padding: 12px 20px;
	background: var(--surface);
	z-index: 100;
}
.skip:focus {
	top: 12px;
}
.header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
	padding: 14px max(5%, calc((100% - 1268px) / 2));
	border-bottom: 1px solid var(--line);
	background: var(--header);
	backdrop-filter: blur(18px);
}
.brand {
	font-size: 1rem;
	font-weight: 750;
	letter-spacing: -0.03em;
	white-space: nowrap;
}
.brand span {
	margin: 0 10px;
	color: var(--accent);
}
nav {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
	font-size: 0.85rem;
}
nav a {
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 9px;
	white-space: nowrap;
	transition:
		background-color 0.2s,
		color 0.2s,
		border-color 0.2s;
}
nav a:hover {
	color: var(--accent);
	background: var(--surface);
}
nav a.active {
	color: var(--button-ink);
	background: var(--accent);
	border-color: var(--accent);
}
nav a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
.nav-contact span {
	margin-left: 8px;
}
.theme-toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	color: var(--accent);
	cursor: pointer;
}
.theme-toggle:hover {
	border-color: var(--accent);
}
.theme-toggle svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.theme-moon {
	display: none;
}
:root[data-theme="light"] .theme-sun {
	display: none;
}
:root[data-theme="light"] .theme-moon {
	display: block;
}
.hero {
	padding: 86px max(5%, calc((100% - 1268px) / 2)) 0;
	background-color: var(--hero);
	background-image:
		radial-gradient(ellipse at 80% 25%, var(--glow), transparent 60%),
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size:
		auto,
		56px 56px,
		56px 56px;
}
.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 6%;
	align-items: center;
}
.hero-inner > * {
	min-width: 0;
}
.eyebrow,
.section-label,
.timeline-date,
.credential-list article > span,
.interest-detail,
.hero-foot {
	font-family: "Courier New", monospace;
	font-size: 0.76rem;
	letter-spacing: 0.08em;
}
.eyebrow,
.section-label {
	color: var(--accent);
}
.eyebrow {
	margin-bottom: 28px;
}
.section-label {
	font-weight: 600;
}
h1 .accent-word {
	color: var(--accent);
	background: linear-gradient(100deg, var(--accent), var(--accent-end));
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.intro {
	max-width: 530px;
	color: var(--muted);
	font-size: 1.07rem;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}
.button {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 14px 19px;
	font-size: 0.88rem;
	font-weight: 650;
	transition:
		transform 0.2s,
		border-color 0.2s;
}
.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--button-ink);
}
.secondary {
	background: var(--surface);
	color: var(--ink);
}
.button:hover {
	text-decoration: none;
	transform: translateY(-3px);
	border-color: var(--accent);
}
.identity {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.identity-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 17px 22px;
	background: var(--pale);
	border-bottom: 1px solid var(--line);
	font:
		0.78rem "Courier New",
		monospace;
	color: var(--muted);
}
.window-dots {
	display: flex;
	gap: 7px;
}
.window-dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #df8073;
}
.window-dots i:nth-child(2) {
	background: #dbb75e;
}
.window-dots i:nth-child(3) {
	background: #7cba87;
}
.profile-code {
	padding: 28px 24px;
	font:
		clamp(0.8rem, 1.1vw, 1rem)/2 "Courier New",
		monospace;
	overflow-wrap: anywhere;
}
.code-indent {
	padding-left: 18px;
}
.code-indent.double {
	padding-left: 36px;
}
.syntax-purple {
	color: var(--purple);
}
.syntax-blue {
	color: var(--blue);
}
.syntax-green {
	color: var(--accent);
}
.terminal-line {
	padding: 15px 20px;
	border-top: 1px solid var(--line);
	font:
		0.75rem/1.7 "Courier New",
		monospace;
	color: var(--muted);
}
.terminal-line > span:first-child {
	color: var(--accent);
	margin-right: 8px;
}
.cursor {
	display: inline-block;
	width: 6px;
	height: 13px;
	background: var(--accent);
	margin-left: 7px;
	vertical-align: middle;
	animation: blink 1.2s step-end infinite;
}
.identity-bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 13px 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font:
		0.65rem/1.6 "Courier New",
		monospace;
}
.hero-foot {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding: 24px 0;
	margin-top: 70px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.7rem;
}
.section,
.interests {
	max-width: 1440px;
	margin: auto;
	padding: 100px 6%;
}
.section {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
	gap: 6%;
}
.section > div > p {
	max-width: 750px;
	color: var(--muted);
}
.section .large-copy {
	font-size: 1.35rem;
	color: var(--ink);
	line-height: 1.55;
}
.skills-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 36px;
}
.skills-grid > div,
.credential-list article,
.interest-grid article {
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface);
	transition:
		transform 0.2s,
		border-color 0.2s;
}
.skills-grid h3 {
	font-size: 1rem;
	margin-bottom: 18px;
}
.skill-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.skill-tags span {
	border: 1px solid var(--line);
	background: var(--paper);
	border-radius: 6px;
	padding: 4px 9px;
	font-size: 0.8rem;
	color: var(--muted);
}
.small {
	font-size: 0.85rem;
	color: var(--muted);
}
.projects-section,
.credentials {
	padding: 80px max(6%, calc((100% - 1268px) / 2));
	background: var(--pale);
	border-block: 1px solid var(--line);
}
.section-heading {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 28px;
	margin-bottom: 36px;
}
.section-heading h2 {
	margin: 0;
}
.text-link {
	font-size: 0.88rem;
	white-space: nowrap;
	border-bottom: 1px solid var(--accent);
}
.project-empty {
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 36px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
}
.project-empty h3 {
	margin-bottom: 10px;
}
.project-empty p {
	max-width: 580px;
	color: var(--muted);
	margin: 0;
}
.code-mark {
	font: 2rem monospace;
	padding: 18px;
	background: var(--pale);
	color: var(--accent);
	border: 1px solid var(--line);
	border-radius: 12px;
}
.outline-tag {
	white-space: nowrap;
	border: 1px solid var(--line);
	color: var(--accent);
	padding: 7px 12px;
	border-radius: 30px;
	font-size: 0.7rem;
	margin-left: auto;
}
.timeline-item {
	position: relative;
	padding: 0 0 35px 28px;
	margin-left: 5px;
}
.timeline-item:after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 3px;
	width: 1px;
	background: var(--line);
}
.timeline-item:last-child {
	padding-bottom: 0;
}
.timeline-item:before {
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	left: -4.5px;
	top: 6px;
	border: 2px solid var(--accent);
	background: var(--paper);
	border-radius: 50%;
	z-index: 1;
}
.timeline-date {
	color: var(--muted);
	margin-bottom: 14px;
}
.timeline-item h3 {
	font-size: 1.4rem;
	margin-bottom: 10px;
}
.timeline-item p,
.timeline-item ul {
	color: var(--muted);
}
.timeline-item .organization {
	color: var(--ink);
	font-weight: 600;
}
.timeline-item ul {
	padding-left: 20px;
}
.credentials {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: 7%;
}
.credential-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.credential-list article > span {
	color: var(--muted);
	font-size: 0.7rem;
}
.credential-list h3 {
	margin: 12px 0;
	line-height: 1.3;
}
.credential-list p {
	color: var(--muted);
	margin: 0;
	font-size: 0.95rem;
}
.timeline-current:before {
	width: 10px;
	height: 10px;
	left: -4.5px;
	top: 6px;
	border: 2px solid var(--accent);
	background: var(--accent);
	z-index: 1;
	animation: current-circle-glow 2.2s ease-in-out infinite;
}
@keyframes current-circle-glow {
	0%,
	100% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
	}
	50% {
		box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
	}
}
.interest-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 40px;
}
.interest-number {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	font: 0.85rem monospace;
	color: var(--accent);
	background: var(--pale);
}
.interest-grid h3 {
	font-size: 1.5rem;
	margin: 26px 0 15px;
}
.interest-grid p {
	color: var(--muted);
}
.interest-detail {
	color: var(--accent);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
}
.contact {
	padding: 80px max(6%, calc((100% - 1268px) / 2));
	background:
		radial-gradient(ellipse at 85% 85%, var(--glow), transparent 60%),
		var(--hero);
	border-top: 1px solid var(--line);
}
.contact h2 {
	font-size: clamp(3.2rem, 7vw, 7rem);
	line-height: 1.04;
}
.contact h2 span {
	color: var(--accent);
}

.contact-options {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
	gap: clamp(28px, 6vw, 88px);
	align-items: end;
	margin-top: 52px;
}
.contact-form {
	display: grid;
	gap: 10px;
	max-width: 620px;
}
.contact-form label {
	color: var(--ink);
	font-size: 0.82rem;
	margin-top: 8px;
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	border: 1px solid transparent;
	border-radius: 7px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	padding: 15px 16px;
}
.contact-form textarea {
	min-height: 124px;
	resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--muted);
	opacity: 0.75;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.contact-form .button {
	justify-content: center;
	margin-top: 16px;
	width: 100%;
}
.contact-form .button:disabled {
	cursor: wait;
	opacity: 0.65;
}
.contact-status {
	min-height: 1.2em;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 0.82rem;
}
.contact-status.success {
	color: var(--accent);
}
.contact-status.error {
	color: #ff9a9a;
}
.direct-email {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	color: var(--ink);
	min-height: 104px;
}
.direct-email:hover {
	border-color: var(--accent);
	color: var(--ink);
}
.direct-email-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 54px;
	height: 54px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--accent);
}
.direct-email strong,
.direct-email small {
	display: block;
}
.direct-email strong {
	font-size: 1rem;
}
.direct-email small {
	color: var(--muted);
	font-size: 0.78rem;
	margin-top: 5px;
	overflow-wrap: anywhere;
}
.direct-email-arrow {
	margin-left: auto;
	flex: none;
	color: var(--accent);
}
.contact-bottom {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 28px;
}
.contact-bottom p {
	color: var(--muted);
	margin: 0;
}
.email {
	font-size: clamp(1rem, 2.2vw, 2rem);
	letter-spacing: -0.03em;
	border-bottom: 1px solid var(--line);
	overflow-wrap: anywhere;
}
.email span {
	color: var(--accent);
}
.socials {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
	font-size: 0.88rem;
}
.socials a {
	padding: 9px 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}
.socials a:hover {
	border-color: var(--accent);
	text-decoration: none;
}
footer {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 25px 6%;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.78rem;
}
/* Content stays visible even when animation or JavaScript is unavailable. */
.reveal.visible {
	animation: reveal 0.5s ease both;
}
@keyframes reveal {
	from {
		transform: translateY(16px);
	}
	to {
		transform: none;
	}
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}
@media (hover: hover) {
	.skills-grid > div:hover,
	.credential-list article:hover,
	.interest-grid article:hover {
		transform: translateY(-4px);
		border-color: var(--accent);
	}
}
@media (max-width: 1050px) {
	.header {
		gap: 16px;
		padding-inline: 4%;
	}
	nav {
		gap: 15px;
		font-size: 0.8rem;
	}
	.hero-inner {
		gap: 4%;
	}
	.identity-top span:last-child {
		display: none;
	}
	.section-heading {
		align-items: start;
		flex-direction: column;
	}
	.project-empty {
		flex-wrap: wrap;
	}
	.outline-tag {
		margin-left: 0;
	}
	.credentials {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}
@media (max-width: 800px) {
	.header {
		flex-wrap: wrap;
		padding: 12px 6%;
		gap: 8px;
	}
	.theme-toggle {
		margin-left: auto;
	}
	nav {
		order: 2;
		width: 100%;
		margin: 0;
		justify-content: space-between;
		gap: 8px;
	}
	.nav-contact span {
		display: none;
	}
	html {
		scroll-padding-top: 145px;
	}
	.hero {
		padding-top: 48px;
	}
	.hero-inner {
		grid-template-columns: 1fr;
		gap: 38px;
	}
	.hero-copy {
		max-width: 640px;
	}
	h1 {
		font-size: clamp(2.8rem, 8.5vw, 4.5rem);
	}
	.identity {
		width: 100%;
		max-width: 560px;
	}
	.profile-code {
		font-size: 1rem;
	}
	.identity-top span:last-child {
		display: inline;
	}
	.hero-foot {
		margin-top: 44px;
		justify-content: start;
	}
	.section {
		grid-template-columns: 1fr;
		gap: 22px;
		padding-block: 65px;
	}
	.interest-grid {
		grid-template-columns: 1fr;
	}
	.contact-bottom {
		flex-direction: column;
		align-items: start;
	}
	.contact-options {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 520px) {
	.brand {
		font-size: 0.92rem;
	}
	.brand span {
		margin: 0 6px;
	}
	nav {
		font-size: 0.72rem;
		gap: 6px;
	}
	.eyebrow {
		font-size: 0.68rem;
		letter-spacing: 0.04em;
	}
	.profile-code {
		font-size: 0.81rem;
		padding: 24px 18px;
	}
	.code-indent {
		padding-left: 12px;
	}
	.code-indent.double {
		padding-left: 24px;
	}
	.terminal-line {
		font-size: 0.68rem;
		padding-inline: 16px;
	}
	.identity-bottom {
		font-size: 0.62rem;
		padding-inline: 16px;
	}
	.skills-grid,
	.credential-list {
		grid-template-columns: 1fr;
	}
	.projects-section,
	.credentials,
	.interests,
	.contact {
		padding: 60px 6%;
	}
	.project-empty {
		padding: 24px;
		gap: 20px;
	}
	.code-mark {
		font-size: 1.5rem;
		padding: 12px;
	}
	.button {
		padding: 13px 15px;
		font-size: 0.82rem;
		gap: 14px;
	}
	footer > span:nth-child(2) {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*:before,
	*:after {
		animation: none !important;
		transition: none !important;
	}
	.button:hover,
	.skills-grid > div:hover,
	.credential-list article:hover,
	.interest-grid article:hover {
		transform: none;
	}
}

/* Circular portrait replaces the header initials without changing the source photo. */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.brand .brand-name {
	margin: 0;
	color: var(--ink);
}
.profile-avatar {
	display: block;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 30%;
	border: 2px solid var(--line);
}
.brand:hover .profile-avatar {
	border-color: var(--accent);
}
@media (max-width: 520px) {
	.brand {
		gap: 9px;
	}
	.profile-avatar {
		width: 40px;
		height: 40px;
	}
}

/* Larger editorial section markers with finite, scroll-triggered motion. */
.section-label {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	font-family: inherit;
	font-size: clamp(1.35rem, 2.25vw, 2.15rem);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.035em;
	color: var(--ink);
	text-transform: uppercase;
	margin: 0 0 32px;
	padding: 0 0 20px;
	min-width: 0;
	isolation: isolate;
}
.section-label::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(100%, 320px);
	height: 2px;
	background: linear-gradient(90deg, var(--accent), var(--line));
	transform-origin: left;
}
.section-number {
	flex: none;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 1px solid var(--accent);
	border-radius: 14px;
	background: var(--surface);
	color: var(--accent);
	font:
		500 1.25rem/1 "Courier New",
		monospace;
	letter-spacing: -0.06em;
}
.section-title {
	min-width: 0;
	text-wrap: balance;
}

.section > .section-label {
	align-self: start;
	flex-wrap: wrap;
}
.section > .section-label .section-title {
	flex-basis: 100%;
	order: 2;
}

.section-heading .section-label {
	max-width: 580px;
}
.credentials > div:first-child .section-label {
	flex-wrap: wrap;
}
.credentials > div:first-child .section-title {
	flex-basis: 100%;
	order: 2;
}
.interests > .section-label,
.contact > .section-label {
	max-width: 720px;
}
.section-label.label-entered .section-number {
	animation: marker-arrive 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.section-label.label-entered .section-title {
	animation: title-arrive 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.section-label.label-entered::after {
	animation: line-arrive 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes marker-arrive {
	from {
		transform: translateY(12px) rotate(-10deg);
	}
	to {
		transform: none;
	}
}
@keyframes title-arrive {
	from {
		transform: translateX(18px);
	}
	to {
		transform: none;
	}
}
@keyframes line-arrive {
	from {
		transform: scaleX(0.12);
	}
	to {
		transform: scaleX(1);
	}
}
@media (max-width: 800px) {
	.section > .section-label {
		flex-wrap: nowrap;
		width: 100%;
	}
	.section > .section-label .section-title {
		flex-basis: auto;
		order: 0;
	}
	.credentials > div:first-child .section-title {
		flex-basis: auto;
		order: 0;
	}
	.section-label {
		gap: 12px;
	}
	.section-number {
		width: 46px;
		height: 46px;
		border-radius: 12px;
		font-size: 1.1rem;
	}
}
@media (max-width: 520px) {
	.section-label {
		font-size: 1.3rem;
		gap: 10px;
		margin-bottom: 26px;
		padding-bottom: 16px;
	}
	.section-number {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	.credentials > div:first-child .section-label {
		flex-wrap: nowrap;
	}
}
@media (prefers-reduced-motion: reduce) {
	.section-label *,
	.section-label::after {
		animation: none !important;
		transition: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.timeline-current:before {
		animation: none;
	}
}

/* Compact tabs remain usable in the mobile header. */
@media (max-width: 800px) {
	nav {
		gap: 4px;
	}
	nav a {
		padding: 8px 7px;
	}
}
@media (max-width: 380px) {
	nav {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
	nav a {
		padding: 7px 6px;
	}
}
@media (prefers-reduced-motion: reduce) {
	nav a {
		transition: none;
	}
}

/* Four disclosure tabs group related sections without crowding the header. */
nav {
	gap: 6px;
}
.nav-group {
	position: relative;
}
.nav-group summary {
	display: flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	list-style: none;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 9px;
	white-space: nowrap;
	transition:
		background-color 0.2s,
		color 0.2s;
}
.nav-group summary::-webkit-details-marker {
	display: none;
}
.nav-group summary:hover,
.nav-group[open] summary {
	background: var(--surface);
	color: var(--accent);
}
.nav-group.active summary {
	background: var(--accent);
	color: var(--button-ink);
	border-color: var(--accent);
}
.nav-group summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
.nav-chevron {
	display: block;
	flex: none;
	width: 12px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s;
}
.nav-group[open] .nav-chevron {
	transform: rotate(180deg);
}
.nav-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 180px;
	padding: 7px;
	display: grid;
	gap: 4px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 14px 36px #0003;
	z-index: 40;
}
.nav-dropdown a {
	display: block;
	color: var(--ink);
	padding: 10px 12px;
}
.nav-dropdown a:hover {
	background: var(--pale);
}
.nav-dropdown a.active,
.nav-dropdown a.active:hover {
	background: var(--accent);
	color: var(--button-ink);
}
@media (max-width: 800px) {
	nav {
		justify-content: space-between;
	}
	.nav-group summary {
		padding: 8px 9px;
	}
	.nav-group:last-of-type .nav-dropdown {
		left: auto;
		right: 0;
	}
}
@media (max-width: 380px) {
	nav {
		flex-wrap: nowrap;
		gap: 2px;
	}
	.nav-group summary {
		padding: 8px 5px;
		gap: 4px;
	}
	.nav-direct {
		padding-inline: 5px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.nav-group summary,
	.nav-chevron {
		transition: none;
	}
}

@media (max-width: 520px) {
	nav {
		gap: 2px;
		font-size: 0.68rem;
	}
	.nav-group summary {
		padding: 8px 5px;
		gap: 4px;
	}
	.nav-chevron {
		width: 10px;
		height: 10px;
	}
	.nav-direct {
		padding-inline: 5px;
	}
}

/* Preserve code layout while characters appear, with a gentle pointer tilt. */
.identity {
	transform: perspective(1000px) rotateX(var(--tilt-x, 0deg))
		rotateY(var(--tilt-y, 0deg));
	transition: transform 0.25s ease-out;
}
.typing-char {
	visibility: hidden;
}
.typing-char.typed {
	visibility: visible;
}
.typing-char.typing-head {
	box-shadow: 2px 0 var(--accent);
}
.profile-readable {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
@media (prefers-reduced-motion: reduce) {
	.identity {
		transform: none !important;
		transition: none;
	}
	.typing-char {
		visibility: visible;
	}
	.typing-char.typing-head {
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cursor {
		animation: none;
	}
}

/* Theme-aware SVG icons: no icon font or external dependency. */
.ui-icon {
	display: inline-block;
	flex: none;
	width: 22px;
	height: 22px;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ui-icon.icon-filled {
	fill: currentColor;
	stroke: none;
}
.text-link .ui-icon,
footer .ui-icon {
	width: 18px;
	height: 18px;
	margin-left: 7px;
}
.email .ui-icon {
	color: var(--accent);
	margin-left: 7px;
}
.socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 12px;
	color: var(--accent);
	background: var(--surface);
	transition:
		background-color 0.2s,
		color 0.2s,
		border-color 0.2s;
}
.socials a:hover {
	color: var(--button-ink);
	background: var(--accent);
	border-color: var(--accent);
}
.socials a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}
.socials .ui-icon {
	width: 23px;
	height: 23px;
}
