@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: #fff;
	--ink: #111;
	--muted: #6d6d69;
	--line: #e5e5e1;
	--accent: #2457e6;
	--media-bg: #f1f1ee;
	--nav-link: #575753;
	--nav-height: 64px;
	--max-width: 1440px;
	--gutter: clamp(1rem, 3vw, 3rem);
	--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-x: clip;
	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;
}

/* Clipped and scrolling media need inset focus rings to remain visible. */
.project-media a:focus-visible,
.project-media button:focus-visible,
.tool-strip a:focus-visible,
.github-chart:focus-visible {
	outline-offset: -3px;
}

.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: #fff;
	/* biome-ignore lint/suspicious/noDuplicateProperties: opaque fallback for color-mix() */
	background: color-mix(in srgb, var(--bg) 94%, transparent);
	border-bottom: 1px solid transparent;
	backdrop-filter: blur(10px);
	transition: border-color 180ms ease;
}

.site-nav.is-scrolled {
	border-bottom-color: var(--line);
}

.brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	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 {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--nav-link);
	font-size: 0.9rem;
	font-weight: 650;
	transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
	color: var(--accent);
}

.nav-toggle {
	display: none;
}

.hero {
	min-height: calc(76svh - var(--nav-height));
	padding: clamp(2rem, 4vw, 4rem) var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: stretch;
}

.hero-copy {
	align-self: center;
	min-width: 0;
}

.eyebrow,
.section-kicker,
.project-index {
	margin: 0;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 760;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.hero-copy h1 {
	max-width: 14ch;
	margin: 0.65rem 0 0;
	font-size: clamp(2.75rem, 5.6vw, 5.25rem);
	font-weight: 830;
	line-height: 0.88;
	letter-spacing: -0.06em;
	text-wrap: balance;
}

.hero-copy h1 span {
	display: block;
}

.hero-discipline {
	margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
	font-size: clamp(1.1rem, 1.6vw, 1.4rem);
	font-weight: 720;
	letter-spacing: -0.025em;
}

.hero-summary {
	max-width: 34rem;
	margin: 0.45rem 0 0;
	color: var(--muted);
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	text-wrap: pretty;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 1.1rem;
}

.hero-actions a,
.text-link {
	width: fit-content;
	min-height: 44px;
	padding: 0.55rem 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: 420px;
	object-fit: cover;
	object-position: center 17%;
	transform: translateY(var(--portrait-shift, 0px)) scale(1.025);
	will-change: transform;
}

.section {
	width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
	margin-inline: auto;
	padding-block: clamp(3rem, 5vw, 5rem);
	border-top: 1px solid var(--line);
}

.compact-section {
	padding-block: clamp(3rem, 5vw, 5rem);
}

.section-heading {
	display: grid;
	gap: 0.5rem;
	margin-bottom: clamp(1.75rem, 3vw, 3rem);
}

.section-heading--split {
	grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
	align-items: start;
}

.section-heading h2 {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(2.25rem, 4vw, 4rem);
	font-weight: 780;
	letter-spacing: -0.055em;
	line-height: 0.94;
	text-wrap: balance;
}

.work-section {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
}

.work-section > .section-heading {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.project {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: 1.25rem;
	min-width: 0;
	padding: 0;
}

.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: 16 / 10;
	object-fit: cover;
	transition:
		transform 180ms var(--ease),
		filter 180ms ease;
}

.project-media a:hover img,
.project-media button:hover img {
	transform: scale(1.002);
	filter: saturate(1.03);
}

.project-copy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.6rem 1rem;
	align-items: start;
	min-width: 0;
}

.project-index,
.project-copy h3,
.project-copy > p:not(.project-index) {
	grid-column: 1 / -1;
}

.project-copy h3 {
	margin: 0;
	font-size: clamp(2rem, 3vw, 3.4rem);
	font-weight: 790;
	letter-spacing: -0.06em;
	line-height: 0.92;
	text-wrap: balance;
}

.project-copy > p:not(.project-index) {
	max-width: 38rem;
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
	line-height: 1.5;
	text-wrap: pretty;
}

.project-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin: 0;
	padding-top: 0.35rem;
}

.project-facts div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: baseline;
}

.project-facts dt {
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.project-facts dd {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 680;
}

.project-copy > .text-link,
.project-links {
	justify-self: end;
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem 0.85rem;
}

.archive-section > .section-heading h2 {
	max-width: 16ch;
	font-size: clamp(2rem, 3vw, 3.25rem);
}

.archive-list {
	border-top: 1px solid var(--line);
}

.archive-item {
	display: grid;
	grid-template-columns: minmax(110px, 0.35fr) minmax(160px, 0.65fr) minmax(
			0,
			1.5fr
		) auto;
	gap: clamp(1rem, 2.5vw, 2.5rem);
	align-items: start;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--line);
}

.archive-index {
	margin: 0;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 760;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.archive-item h3,
.archive-item > p {
	margin: 0;
}

.archive-item h3 {
	font-size: clamp(1.35rem, 2vw, 2rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

.archive-item > p:not(.archive-index) {
	max-width: 52rem;
	color: var(--muted);
}

.archive-item > .text-link {
	align-self: start;
	white-space: nowrap;
}

.paired-sections {
	width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
	margin-inline: auto;
	display: grid;
	gap: clamp(2rem, 4vw, 4rem);
	border-top: 1px solid var(--line);
}

.profile-grid {
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.practice-grid {
	grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.paired-sections > .section {
	width: auto;
	margin: 0;
	border-top: 0;
}

.paired-sections .section-heading--split {
	grid-template-columns: minmax(0, 1fr);
}

.timeline,
.credential-list {
	border-top: 1px solid var(--line);
}

.timeline-row {
	display: grid;
	grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr) auto;
	gap: clamp(1rem, 2vw, 2rem);
	align-items: start;
	padding-block: 1.1rem;
	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.3rem, 2vw, 1.75rem);
	letter-spacing: -0.035em;
}

.timeline-row div p {
	max-width: 48rem;
	color: var(--muted);
	text-wrap: pretty;
}

.credential-list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.75rem;
	min-height: 44px;
	padding-block: 0.85rem;
	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(2, minmax(0, 1fr));
	gap: 0.35rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tool-strip a {
	min-height: 44px;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.82rem;
	font-weight: 680;
	transition: color 160ms ease;
}

.tool-strip img {
	width: 26px;
	height: 26px;
	object-fit: contain;
	filter: grayscale(1);
	transition:
		filter 180ms ease,
		transform 180ms var(--ease);
}

.tool-strip a:hover {
	color: var(--accent);
}

.tool-strip a:hover img {
	filter: grayscale(0);
	transform: translateY(-2px);
}

.github-chart {
	display: grid;
	justify-items: start;
	gap: 1rem;
	min-width: 0;
	padding-block: 1.25rem;
	border-block: 1px solid var(--line);
}

.github-chart-viewport {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
}

.github-chart img {
	width: 828px;
	max-width: none;
	min-height: 128px;
}

.github-chart-link {
	display: inline-block;
	font-weight: 700;
	border-bottom: 1px solid currentColor;
	transition: color 160ms ease;
}

.github-chart:hover .github-chart-link {
	color: var(--accent);
}

.contact-section {
	display: grid;
	grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
}

.about-copy h2 {
	max-width: 12ch;
	margin: 0.65rem 0 0.85rem;
	font-size: clamp(2.25rem, 4vw, 4rem);
	line-height: 0.94;
	letter-spacing: -0.06em;
	text-wrap: balance;
}

.about-copy > p:last-child {
	max-width: 34rem;
	margin: 0;
	color: var(--muted);
	text-wrap: pretty;
}

.contact-block > p {
	margin: 0 0 0.8rem;
	color: var(--muted);
}

.contact-block > a {
	display: inline;
	font-size: clamp(2rem, 5vw, 5rem);
	font-weight: 790;
	line-height: 0.86;
	letter-spacing: -0.075em;
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-decoration-thickness: 0.045em;
	text-underline-offset: 0.1em;
	transition: color 160ms ease;
}

.contact-block > a:hover,
.contact-links a:hover {
	color: var(--accent);
}

.contact-links {
	display: flex;
	gap: 1.25rem;
	margin-top: 2rem;
}

.contact-links a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	color: var(--muted);
	font-weight: 680;
	transition: color 160ms ease;
}

.site-footer {
	width: min(calc(100% - (2 * var(--gutter))), var(--max-width));
	margin-inline: auto;
	padding-block: 0.75rem 1.25rem;
	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;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.site-footer a:hover {
	color: var(--accent);
}

.showcase {
	width: min(1180px, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100svh - 2rem);
	padding: 0;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink);
}

.showcase::backdrop {
	background: rgb(17 17 17 / 72%);
}

.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: 1.25rem 1.5rem;
}

.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.6rem);
	letter-spacing: -0.045em;
}

.showcase-close,
.showcase-arrow {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	background: #fff;
	cursor: pointer;
}

.showcase-close {
	flex: 0 0 auto;
	font-size: 1.5rem;
}

.showcase-stage {
	position: relative;
	min-height: 0;
	overflow: hidden;
	background: #111;
}

.showcase-track {
	height: 100%;
	display: flex;
	transition: transform 200ms 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%;
	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, 1fr) minmax(260px, 0.72fr);
		gap: clamp(2rem, 5vw, 4rem);
	}

	.credential-list a {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.35rem;
	}
}

@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.5rem 1rem 0.75rem;
		background: #fff;
		border-bottom: 1px solid var(--line);
	}

	.js .nav-links.is-open {
		display: grid;
		gap: 0;
	}

	.js .nav-links a {
		display: flex;
		min-height: 44px;
		padding-block: 0.7rem;
		border-bottom: 1px solid var(--line);
	}

	.site-nav {
		padding-inline: 1rem;
	}

	.hero {
		min-height: auto;
		padding: 2rem 1rem 4rem;
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.hero-copy {
		order: 1;
	}

	.hero-portrait {
		order: 2;
		max-height: 480px;
	}

	.hero-portrait img {
		min-height: 0;
		height: min(66svh, 480px);
		object-position: center 16%;
		transform: none;
		will-change: auto;
	}

	.hero-copy h1 {
		max-width: none;
		font-size: clamp(2.15rem, 9.3vw, 3.25rem);
	}

	.hero-copy h1 span:last-child {
		white-space: nowrap;
	}

	.section,
	.paired-sections {
		width: calc(100% - 2rem);
	}

	.section,
	.compact-section {
		padding-block: 3rem;
	}

	.work-section,
	.profile-grid,
	.practice-grid,
	.section-heading--split,
	.project-copy,
	.timeline-row,
	.credential-list a,
	.contact-section {
		grid-template-columns: minmax(0, 1fr);
	}

	.work-section > .section-heading,
	.project-index,
	.project-copy h3,
	.project-copy > p:not(.project-index),
	.project-facts,
	.project-copy > .text-link,
	.project-links {
		grid-column: auto;
	}

	.work-section {
		gap: 2.5rem;
	}

	.paired-sections {
		gap: 0;
	}

	.paired-sections > .section + .section {
		border-top: 1px solid var(--line);
	}

	.project {
		gap: 1rem;
	}

	.project-copy {
		gap: 0.6rem;
	}

	.project-copy > .text-link,
	.project-links {
		justify-self: start;
	}

	.project-links {
		justify-content: flex-start;
	}

	.archive-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.65rem;
	}

	.archive-item > .text-link {
		justify-self: start;
	}

	.project-copy h3 {
		font-size: clamp(2rem, 10vw, 3rem);
	}

	.project-facts {
		margin-top: 0.25rem;
	}

	.timeline-row {
		gap: 0.5rem;
	}

	.timeline-status {
		justify-self: start;
	}

	.credential-list a {
		gap: 0.35rem;
	}

	.tool-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.github-chart {
		justify-items: stretch;
	}

	.github-chart-link {
		justify-self: start;
	}

	.contact-section {
		gap: 3rem;
	}

	.contact-block > a {
		font-size: clamp(2rem, 11vw, 3.75rem);
	}

	.site-footer {
		width: calc(100% - 2rem);
		flex-direction: column;
	}

	.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;
	}
}

.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 {
	clip-path: inset(0 0 100% 0);
	transform: translateY(14px);
	transition:
		clip-path 620ms var(--ease),
		transform 620ms var(--ease);
}

.js .hero-copy.is-visible h1 {
	clip-path: inset(-0.08em -0.04em -0.18em);
	transform: translateY(0);
}

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

@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 {
		clip-path: inset(-0.08em -0.04em -0.18em) !important;
		transform: none !important;
	}

	.hero-portrait img,
	.project-media img {
		transform: none !important;
		will-change: auto !important;
	}
}
