/* ---------- fonts ---------- */
@font-face {
	font-family: "SF Pro Text";
	src: url("fonts/sf-pro-text_light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "SF Pro Text";
	src: url("fonts/sf-pro-text_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "SF Pro Text";
	src: url("fonts/sf-pro-text_regular-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "SF Pro Text";
	src: url("fonts/sf-pro-text_semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "SF Pro Display";
	src: url("fonts/sf-pro-display_regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "SF Pro Display";
	src: url("fonts/sf-pro-display_semibold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "SF Pro Display";
	src: url("fonts/sf-pro-display_bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---------- tokens ---------- */
:root {
	--bg: #fff;
	--bg-alt: #f5f5f7;
	--surface: #fff;
	--text: #1d1d1f;
	--text-muted: #6e6e73;
	--accent: #0071e3;
	--nav-bg: rgba(255, 255, 255, 0.8);
	--border: rgba(0, 0, 0, 0.12);
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	--max: 980px;
	--font: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #000;
		--bg-alt: #101010;
		--surface: #1c1c1e;
		--text: #f5f5f7;
		--text-muted: #a1a1a6;
		--accent: #2997ff;
		--nav-bg: rgba(22, 22, 23, 0.8);
		--border: rgba(255, 255, 255, 0.12);
		--shadow: none;
	}
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -0.022em;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
	font-family: var(--mono);
	font-size: 0.85em;
	padding: 1px 5px;
	border-radius: 5px;
	background: var(--bg-alt);
	letter-spacing: 0;
}

/* ---------- nav ---------- */
.localnav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--nav-bg);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--border);
}

.localnav-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 22px;
	height: 52px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.localnav-title {
	font-family: var(--font-display);
	color: var(--text);
	font-size: 21px;
	font-weight: 600;
	margin-right: auto;
}
.localnav-title:hover { text-decoration: none; }

.localnav-links {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 12px;
}
.localnav-links a, .localnav-clock { color: var(--text-muted); }
.localnav-links a:hover { color: var(--text); text-decoration: none; }
.localnav-clock { font-variant-numeric: tabular-nums; }

.pill {
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	padding: 4px 11px;
	border-radius: 980px;
	white-space: nowrap;
}
.pill:hover { text-decoration: none; filter: brightness(1.1); }

.menu-toggle, .menu-chevron { display: none; }

/* ---------- layout ---------- */
.hero {
	text-align: center;
	padding: 100px 22px 60px;
}

.section {
	padding: 80px 22px;
	scroll-margin-top: 52px;
}
.section-dark { background: var(--bg-alt); }

.copy {
	max-width: 820px;
	margin: 0 auto;
}
.copy-wide { max-width: var(--max); }

.copy p { color: var(--text-muted); margin: 0 0 1.2em; }
.copy p b { color: var(--text); }

.headline-super {
	font-family: var(--font-display);
	font-size: clamp(40px, 8vw, 80px);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 32px;
}

.intro {
	font-family: var(--font-display);
	font-size: clamp(21px, 2.5vw, 28px);
	line-height: 1.3;
	font-weight: 600;
	color: var(--text) !important;
}

.social span { color: var(--border); margin: 0 4px; }

/* ---------- timeline ---------- */
.timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 28px;
	border-left: 2px solid var(--border);
}

.timeline > li {
	position: relative;
	padding-bottom: 40px;
}
.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
	content: "";
	position: absolute;
	left: -36px;
	top: 8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid var(--bg);
}
.section-dark .timeline > li::before { border-color: var(--bg-alt); }

.timeline-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.timeline h3 {
	font-family: var(--font-display);
	font-size: 24px;
	line-height: 1.2;
	margin: 0;
}

.timeline-date {
	color: var(--text-muted);
	font-size: 14px;
	white-space: nowrap;
}

.copy .timeline-org {
	color: var(--accent);
	font-weight: 600;
	margin: 4px 0 12px;
}

.timeline ul {
	margin: 0;
	padding-left: 20px;
	color: var(--text-muted);
}
.timeline ul li { margin-bottom: 6px; }

.badge {
	display: inline-block;
	vertical-align: middle;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 8px;
	border-radius: 980px;
	color: var(--accent);
	border: 1px solid var(--accent);
	margin-left: 6px;
}

/* ---------- project cards ---------- */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 28px;
	box-shadow: var(--shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
}
.card:hover { transform: translateY(-4px); }

.card h3 {
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.copy .card p { font-size: 15px; margin-bottom: 16px; }

.copy .card .card-kicker {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.card > a { margin-top: auto; font-size: 15px; }

/* ---------- skills ---------- */
.skill-group { margin-bottom: 32px; }

.skill-group h3 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin: 0 0 12px;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tags li {
	padding: 6px 14px;
	border-radius: 980px;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	font-size: 15px;
}

/* ---------- scroll reveal ---------- */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- footer ---------- */
.footer {
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 12px;
}
.footer-inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 20px 22px 32px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}
.footer p { margin: 0; }
.footer-links { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-muted); }

/* ---------- small screens ---------- */
@media (max-width: 734px) {
	.localnav-inner { flex-wrap: wrap; height: auto; min-height: 48px; gap: 12px; }
	.localnav-title { font-size: 19px; }

	.menu-chevron {
		display: block;
		width: 12px;
		height: 12px;
		border-right: 1.5px solid var(--text-muted);
		border-bottom: 1.5px solid var(--text-muted);
		transform: rotate(45deg) translateY(-3px);
		cursor: pointer;
		transition: transform 0.3s;
	}
	.menu-toggle:checked + .menu-chevron { transform: rotate(-135deg) translateY(-3px); }

	.localnav-links {
		order: 10;
		flex-basis: 100%;
		flex-direction: column;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}
	.localnav-links li { padding: 12px 0; border-top: 1px solid var(--border); font-size: 14px; }
	.menu-toggle:checked ~ .localnav-links { max-height: 300px; }

	.hero { padding-top: 56px; }
	.section { padding: 56px 16px; scroll-margin-top: 48px; }

	.timeline { padding-left: 22px; }
	.timeline > li::before { left: -30px; }
	.timeline-head { flex-direction: column; gap: 2px; }
	.timeline h3 { font-size: 20px; }
}
