@font-face {
	font-family: "Urbanist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/urbanist-var.woff2") format("woff2");
}

:root {
	--bg: #f3f2ed;
	--surface: #fbfaf7;
	--ink: #101114;
	--muted: #686d77;
	--line: #d8d9d4;
	--accent: #2557e0;
	--media-bg: #111216;
	--nav-link: #585d66;
	--nav-height: 52px;
	--max-width: 1240px;
	--gutter: clamp(1rem, 3vw, 2.5rem);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
	scrollbar-gutter: stable;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}
body.is-locked {
	overflow: hidden;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	color: inherit;
	font: inherit;
}
img {
	display: block;
	max-width: 100%;
}
button,
a {
	-webkit-tap-highlight-color: transparent;
}
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
}
/* These targets sit in clipping containers (image crop, horizontal scroll),
   so the ring is inset to stay visible on all four sides. */
.project-media a:focus-visible,
.project-media button:focus-visible,
.tool-strip a:focus-visible {
	outline-offset: -3px;
}
/* An inset ring over arbitrary screenshot pixels can fall below 3:1, so the
   media container carries a second ring outside its own clip. */
.project-media:has(a:focus-visible),
.project-media:has(button:focus-visible) {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
}

:target,
.section,
.hero {
	scroll-margin-top: var(--nav-height);
}

.sr-only,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	padding: 0.65rem 0.9rem;
	background: var(--ink);
	color: #fff;
}

.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--nav-height);
	width: 100%;
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--bg);
	/* biome-ignore lint/suspicious/noDuplicateProperties: opaque fallback for color-mix() */
	background: color-mix(in srgb, var(--bg) 96%, transparent);
	border-bottom: 1px solid transparent;
	backdrop-filter: blur(14px);
	transition:
		border-color 180ms ease,
		background 180ms ease;
}
.site-nav.is-scrolled {
	border-bottom-color: var(--line);
	background: var(--surface);
	/* biome-ignore lint/suspicious/noDuplicateProperties: opaque fallback for color-mix() */
	background: color-mix(in srgb, var(--surface) 96%, transparent);
}
.brand {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.04em;
}
.brand span {
	color: var(--accent);
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav-links a {
	color: var(--nav-link);
	font-size: 0.88rem;
	font-weight: 650;
	transition: color 160ms ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
	color: var(--ink);
}
.nav-toggle {
	display: none;
}

.hero {
	min-height: calc(100svh - var(--nav-height));
	padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: stretch;
}
.hero-copy {
	align-self: center;
	min-width: 0;
}
.eyebrow,
.section-kicker,
.project-index {
	margin: 0;
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 760;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}
.hero h1 {
	margin: 1rem 0 0;
	font-size: clamp(2.6rem, 8vw, 7.2rem);
	font-weight: 850;
	line-height: 0.9;
	letter-spacing: -0.055em;
	text-wrap: balance;
}
.hero h1 span {
	display: block;
}
.hero-role {
	margin: clamp(1.75rem, 4vw, 3.5rem) 0 0;
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	font-weight: 720;
	letter-spacing: -0.025em;
}
.hero-summary {
	max-width: 35rem;
	margin: 0.5rem 0 0;
	color: var(--muted);
	font-size: clamp(1rem, 1.35vw, 1.16rem);
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-top: 1.5rem;
}
.hero-actions a,
.text-link {
	width: fit-content;
	padding: 0.2rem 0 0.35rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	color: var(--ink);
	font-weight: 720;
	cursor: pointer;
	transition:
		color 160ms ease,
		transform 160ms var(--ease);
}
.hero-actions a:hover,
.text-link:hover {
	color: var(--accent);
	transform: translateY(-2px);
}
.hero-portrait {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	background: var(--media-bg);
}
.hero-portrait img {
	width: 100%;
	height: 100%;
	min-height: 480px;
	object-fit: cover;
	object-position: center 18%;
}

.section {
	width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
	margin-inline: auto;
	padding-block: clamp(3.5rem, 6vw, 5.5rem);
	border-top: 1px solid var(--line);
}
.compact-section {
	padding-block: clamp(2.5rem, 4.5vw, 4rem);
}
.section-heading {
	display: grid;
	gap: 0.6rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-heading--split {
	grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
	align-items: start;
}
.section-heading h2 {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(2.2rem, 5vw, 4.6rem);
	font-weight: 780;
	letter-spacing: -0.06em;
	line-height: 0.96;
	text-wrap: balance;
}

.project {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: end;
	padding-block: clamp(2rem, 4vw, 3.25rem);
	border-top: 1px solid var(--line);
}
.project--lead {
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.55fr);
}
.project-media {
	min-width: 0;
	overflow: hidden;
	background: var(--media-bg);
}
.project-media a,
.project-media button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.project-media img {
	width: 100%;
	height: auto;
	aspect-ratio: 1919 / 920;
	object-fit: cover;
	transition:
		transform 500ms var(--ease),
		filter 300ms ease;
}
.project-media a:hover img,
.project-media button:hover img {
	transform: scale(1.018);
	filter: saturate(1.04);
}
.project-copy {
	padding-bottom: 0.25rem;
}
.project--reverse .project-media {
	order: 2;
}
.project--reverse .project-copy {
	order: 1;
}
.project-copy h3 {
	margin: 0.85rem 0 0;
	font-size: clamp(2.25rem, 5vw, 4.8rem);
	font-weight: 790;
	letter-spacing: -0.065em;
	line-height: 0.92;
}
.project-copy > p:not(.project-index) {
	max-width: 34rem;
	margin: 1rem 0 0;
	color: var(--muted);
	font-size: 1rem;
}
.project-facts {
	display: grid;
	gap: 0;
	margin: 1.6rem 0;
	border-block: 1px solid var(--line);
}
.project-facts div {
	display: grid;
	grid-template-columns: 5rem 1fr;
	gap: 0.75rem;
	padding-block: 0.55rem;
	border-bottom: 1px solid var(--line);
}
.project-facts div:last-child {
	border-bottom: 0;
}
.project-facts dt {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.project-facts dd {
	margin: 0;
	font-weight: 680;
}
.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.timeline,
.credential-list {
	border-top: 1px solid var(--line);
}
.timeline-row {
	display: grid;
	grid-template-columns: minmax(135px, 0.35fr) minmax(0, 1fr) auto;
	gap: 1.5rem;
	align-items: start;
	padding-block: 1.4rem;
	border-bottom: 1px solid var(--line);
}
.timeline-row p {
	margin: 0;
}
.timeline-period,
.timeline-status {
	color: var(--muted);
	font-size: 0.88rem;
	font-weight: 650;
}
.timeline-row h3 {
	margin: 0 0 0.3rem;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	letter-spacing: -0.03em;
}
.timeline-row div p {
	max-width: 48rem;
	color: var(--muted);
}
.credential-list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	padding-block: 1rem;
	border-bottom: 1px solid var(--line);
	font-weight: 680;
	transition: color 160ms ease;
}
.credential-list a span:last-child {
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
}
.credential-list a:hover {
	color: var(--accent);
}

.tool-strip {
	display: grid;
	grid-template-columns: repeat(6, minmax(130px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-block: 1px solid var(--line);
	overflow-x: auto;
}
.tool-strip li {
	display: grid;
	min-width: 0;
}
.tool-strip a {
	min-width: 130px;
	min-height: 118px;
	padding: 1.25rem 0.8rem;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 0.75rem;
	border-right: 1px solid var(--line);
	text-align: center;
	font-size: 0.86rem;
	font-weight: 680;
}
.tool-strip li:last-child a {
	border-right: 0;
}
.tool-strip img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	filter: grayscale(1);
	transition:
		filter 180ms ease,
		transform 180ms var(--ease);
}
.tool-strip a:hover img {
	filter: grayscale(0);
	transform: translateY(-2px);
}

.github-chart {
	display: grid;
	justify-items: center;
	padding-block: 1rem;
	border-block: 1px solid var(--line);
}
.github-chart-viewport {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}
.github-chart img {
	width: 828px;
	max-width: none;
	min-height: 128px;
}
.github-chart-link {
	display: inline-block;
	margin-top: 0.9rem;
	font-weight: 700;
	border-bottom: 1px solid currentColor;
}

.contact-section {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: end;
}
.about-copy h2 {
	max-width: 12ch;
	margin: 0.75rem 0 1rem;
	font-size: clamp(2.4rem, 5vw, 5rem);
	line-height: 0.93;
	letter-spacing: -0.065em;
}
.about-copy > p:last-child {
	max-width: 34rem;
	margin: 0;
	color: var(--muted);
}
.contact-block > p {
	margin: 0 0 0.65rem;
	color: var(--muted);
}
.contact-block > a {
	display: inline-block;
	max-width: 100%;
	font-size: clamp(2rem, 5vw, 5.6rem);
	font-weight: 780;
	line-height: 0.95;
	letter-spacing: -0.065em;
	overflow-wrap: anywhere;
	border-bottom: 0.06em solid currentColor;
}
.contact-links {
	display: flex;
	gap: 1.25rem;
	margin-top: 1.5rem;
}
.contact-links a {
	color: var(--muted);
	font-weight: 680;
}

.site-footer {
	width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
	margin-inline: auto;
	padding-block: 1.4rem 2rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.84rem;
}
.site-footer p {
	margin: 0;
}
.site-footer div {
	display: flex;
	gap: 1rem;
}
.site-footer a:hover {
	color: var(--ink);
}

.showcase {
	width: min(1120px, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100svh - 2rem);
	padding: 0;
	border: 0;
	background: var(--surface);
	color: var(--ink);
}
.showcase::backdrop {
	background: rgb(16 17 20 / 78%);
	backdrop-filter: blur(6px);
}
.showcase-shell {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	max-height: calc(100svh - 2rem);
}
.showcase-shell > header,
.showcase-shell > footer {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 1.2rem;
}
.showcase-shell > header {
	border-bottom: 1px solid var(--line);
}
.showcase-shell > footer {
	border-top: 1px solid var(--line);
	color: var(--muted);
}
.showcase-shell h2,
.showcase-shell p {
	margin: 0;
}
.showcase-shell h2 {
	margin-top: 0.25rem;
	font-size: clamp(1.5rem, 3vw, 2.4rem);
	letter-spacing: -0.04em;
}
.showcase-close {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	background: transparent;
	cursor: pointer;
	font-size: 1.5rem;
}
.showcase-stage {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background: var(--media-bg);
}
.showcase-track {
	height: 100%;
	display: flex;
	transition: transform 320ms var(--ease);
}
.showcase-slide {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	place-items: center;
}
.showcase-slide img {
	width: auto;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}
.showcase-arrow {
	position: absolute;
	top: 50%;
	width: 44px;
	height: 44px;
	border: 0;
	background: var(--surface);
	cursor: pointer;
	/* `translate` not `transform`, so a global `button:active { transform: … }`
	   cannot drop the centering offset. */
	translate: 0 -50%;
}
.showcase-arrow--prev {
	left: 0.75rem;
}
.showcase-arrow--next {
	right: 0.75rem;
}

@media (max-width: 960px) {
	.hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
	}
	.project,
	.project--lead {
		grid-template-columns: minmax(0, 1fr) minmax(230px, 0.72fr);
	}
	.tool-strip {
		grid-template-columns: repeat(6, 150px);
	}
}

@media (max-width: 720px) {
	.nav-links {
		gap: 0.9rem;
	}
	.js .nav-toggle {
		display: grid;
		width: 44px;
		height: 44px;
		padding: 12px;
		place-content: center;
		gap: 6px;
		border: 0;
		background: transparent;
		cursor: pointer;
	}
	.js .nav-toggle > span[aria-hidden="true"] {
		display: block;
		width: 20px;
		height: 2px;
		background: var(--ink);
		transition: transform 160ms var(--ease);
	}
	.js .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
		transform: translateY(4px) rotate(45deg);
	}
	.js .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
		transform: translateY(-4px) rotate(-45deg);
	}
	.js .nav-links {
		position: absolute;
		top: var(--nav-height);
		left: 0;
		right: 0;
		display: none;
		padding: 0.75rem 1rem 1rem;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
	}
	.js .nav-links.is-open {
		display: grid;
		gap: 0;
	}
	.js .nav-links a {
		display: block;
		min-height: 44px;
		padding-block: 0.7rem;
		border-bottom: 1px solid var(--line);
	}
	.showcase {
		width: calc(100% - 1rem);
		max-height: calc(100svh - 1rem);
	}
	.showcase-shell {
		max-height: calc(100svh - 1rem);
	}
	.showcase-shell > header,
	.showcase-shell > footer {
		padding: 0.8rem;
	}
	.showcase-slide img {
		max-height: 62svh;
	}
	.site-nav {
		padding-inline: 1rem;
	}
	.hero {
		min-height: auto;
		padding: 1.5rem 1rem 3rem;
		grid-template-columns: 1fr;
	}
	.hero-copy {
		order: 1;
	}
	.hero-portrait {
		order: 2;
		max-height: 430px;
	}
	.hero-portrait img {
		min-height: 0;
		height: min(62svh, 430px);
		object-position: center 16%;
	}
	.hero h1 {
		font-size: clamp(2.5rem, 12vw, 3.6rem);
	}
	.section {
		width: calc(100% - 2rem);
		padding-block: 3.5rem;
	}
	.section-heading--split {
		grid-template-columns: 1fr;
	}
	.project,
	.project--lead {
		grid-template-columns: 1fr;
		gap: 1.4rem;
	}
	.project--reverse .project-media,
	.project--reverse .project-copy {
		order: initial;
	}
	.project-copy h3 {
		font-size: clamp(2.5rem, 14vw, 4rem);
	}
	.timeline-row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
	.timeline-status {
		justify-self: start;
	}
	.credential-list a {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}
	.contact-section {
		grid-template-columns: 1fr;
	}
	.contact-block > a {
		font-size: clamp(2rem, 11vw, 3.6rem);
	}
	.site-footer {
		width: calc(100% - 2rem);
		flex-direction: column;
	}
}

.hero-portrait img {
	transform: translateY(var(--portrait-shift, 0px)) scale(1.025);
	will-change: transform;
}

.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 520ms var(--ease),
		transform 520ms var(--ease);
}
.js [data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}
.js .project[data-reveal] {
	transition-duration: 600ms;
}
.js .hero-copy[data-reveal] {
	transition-delay: 40ms;
}
.js .hero-portrait[data-reveal] {
	transition-delay: 120ms;
}
.js .hero-copy h1 span {
	clip-path: inset(0 0 100% 0);
	transform: translateY(14px);
	transition:
		clip-path 620ms var(--ease),
		transform 620ms var(--ease);
}
.js .hero-copy h1 span:nth-child(2) {
	transition-delay: 80ms;
}
.js .hero-copy.is-visible h1 span {
	clip-path: inset(0 0 0 0);
	transform: translateY(0);
}

button:active,
.hero-actions a:active,
.text-link:active {
	transform: translateY(1px) scale(0.985);
}

/* The mobile portrait is a short fixed crop, so scale(1.025) leaves only ~5px
   of headroom — less than the shift range. Drop the parallax instead of
   letting the figure background show through at the top edge. */
@media (max-width: 720px) {
	.hero-portrait img {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
	.js [data-reveal] {
		opacity: 1 !important;
		transform: none !important;
	}
	.js .hero-copy h1 span {
		clip-path: inset(0 0 0 0) !important;
		transform: none !important;
	}
	.hero-portrait img,
	.project-media img {
		transform: none !important;
	}
}
