@charset "utf-8";

:root {
	--bg: #f5f3ee;
	--bg-soft: #ede9e2;
	--surface: #ffffff;
	--surface-alt: #f8f6f1;
	--text: #14253c;
	--text-soft: #556476;
	--accent: #1f4d7a;
	--accent-soft: #edf3f9;
	--border: rgba(20, 37, 60, 0.12);
	--shadow: 0 12px 32px rgba(20, 37, 60, 0.08);
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-pill: 999px;
	--shell: min(1080px, calc(100vw - 2.5rem));
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 320px;
	background: linear-gradient(180deg, var(--bg) 0%, #f2efe8 100%);
	color: var(--text);
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.is-preload *,
body.is-preload *:before,
body.is-preload *:after {
	animation: none !important;
	transition: none !important;
}

body.nav-open {
	overflow: hidden;
}

a {
	color: inherit;
}

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

button,
input,
select,
textarea {
	font: inherit;
}

::selection {
	background: rgba(31, 77, 122, 0.16);
}

.skip-link {
	position: absolute;
	top: 1rem;
	left: 1rem;
	transform: translateY(-160%);
	padding: 0.7rem 1rem;
	border-radius: var(--radius-pill);
	background: var(--text);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	z-index: 100;
	transition: transform 0.2s ease;
}

.skip-link:focus {
	transform: translateY(0);
}

.site-shell {
	width: var(--shell);
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	border-bottom: 1px solid var(--border);
	background: rgba(245, 243, 238, 0.94);
	backdrop-filter: blur(16px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.95rem 0;
}

.site-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.site-mark__monogram {
	display: grid;
	place-items: center;
	width: 2.7rem;
	height: 2.7rem;
	border: 1px solid rgba(31, 77, 122, 0.22);
	border-radius: 50%;
	background: var(--surface);
	color: var(--accent);
	font-family: "Newsreader", serif;
	font-size: 1rem;
	font-weight: 700;
}

.site-mark__text {
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.site-nav a {
	padding: 0.5rem 0.85rem;
	border-radius: var(--radius-pill);
	color: var(--text-soft);
	font-size: 0.94rem;
	font-weight: 500;
	text-decoration: none;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	background: var(--surface);
	color: var(--text);
	outline: none;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.65rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--text);
	padding: 0.7rem 0.95rem;
}

.nav-toggle__bars {
	position: relative;
	display: inline-block;
	width: 1rem;
	height: 0.7rem;
}

.nav-toggle__bars:before,
.nav-toggle__bars:after,
.nav-toggle__bars {
	background: transparent;
}

.nav-toggle__bars:before,
.nav-toggle__bars:after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition:
		transform 0.2s ease,
		top 0.2s ease,
		opacity 0.2s ease;
}

.nav-toggle__bars:before {
	top: 0.1rem;
	box-shadow: 0 0.26rem 0 currentColor;
}

.nav-toggle__bars:after {
	top: 0.62rem;
}

body.nav-open .nav-toggle__bars:before {
	top: 0.36rem;
	transform: rotate(45deg);
	box-shadow: none;
}

body.nav-open .nav-toggle__bars:after {
	top: 0.36rem;
	transform: rotate(-45deg);
}

.nav-toggle__label {
	font-size: 0.92rem;
	font-weight: 600;
}

.hero,
.section {
	scroll-margin-top: 5.5rem;
}

.hero {
	padding: 4.5rem 0 1.5rem;
}

.hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
	gap: 1.25rem;
	align-items: start;
}

.hero__copy {
	padding: 2rem 2rem 1.9rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.eyebrow,
.card-label {
	margin: 0;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

h1,
h2,
h3 {
	margin: 0;
	font-family: "Newsreader", serif;
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

h1 {
	max-width: 12ch;
	margin-top: 0.8rem;
	font-size: clamp(3rem, 5vw, 4.8rem);
}

h2 {
	font-size: clamp(2.1rem, 4vw, 3.1rem);
}

h3 {
	font-size: 1.4rem;
}

p {
	margin: 0 0 1rem;
}

.hero__lead,
.section-head p,
.image-card__caption p:last-child,
.about-copy p:last-child,
.project-card p,
.research-card p,
.course-item p,
.site-footer__text,
.section-note {
	color: var(--text-soft);
}

.hero__lead {
	max-width: 57ch;
	margin-top: 1.2rem;
	font-size: 1.04rem;
}

.button-row,
.document-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.button-row {
	margin-top: 1.6rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.15rem;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-weight: 600;
	text-decoration: none;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(20, 37, 60, 0.08);
	outline: none;
}

.button--primary {
	background: var(--accent);
	color: #fff;
}

.button--secondary {
	border-color: var(--border);
	background: rgba(20, 37, 60, 0.08);
	color: var(--text);
}

.button--ghost,
.button--light {
	border-color: var(--border);
	background: var(--surface);
	color: var(--text);
}

.hero-facts,
.meta-list,
.clean-list,
.detail-list {
	margin: 0;
}

.hero-facts {
	display: grid;
	gap: 0.55rem;
	padding: 1.5rem 0 0;
	list-style: none;
}

.hero-facts li {
	padding-top: 0.55rem;
	border-top: 1px solid rgba(20, 37, 60, 0.08);
	color: var(--text-soft);
}

.hero__visual {
	display: grid;
	gap: 1rem;
}

.image-card,
.surface-card {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.image-card img {
	aspect-ratio: 1.45;
	object-fit: cover;
}

.image-card--portrait img {
	aspect-ratio: 0.9;
	object-position: center top;
}

.image-card__caption,
.stack-note,
.about-copy,
.key-points,
.project-card,
.research-card,
.course-item {
	padding: 1.35rem 1.4rem;
}

.image-card__caption p:last-child,
.about-copy p:last-child,
.course-item p:last-child {
	margin-bottom: 0;
}

.clean-list {
	padding-left: 1.05rem;
}

.clean-list li + li,
.detail-list li + li {
	margin-top: 0.45rem;
}

.section {
	padding: 1.5rem 0 4.25rem;
}

.section-muted {
	background: linear-gradient(180deg, rgba(237, 233, 226, 0.78), rgba(237, 233, 226, 0.28));
	border-top: 1px solid rgba(20, 37, 60, 0.05);
	border-bottom: 1px solid rgba(20, 37, 60, 0.05);
}

.section-head {
	max-width: 42rem;
	margin-bottom: 1.6rem;
}

.section-head h2 {
	margin: 0.4rem 0 0.7rem;
}

.section-head p:last-child {
	margin-bottom: 0;
}

.about-layout {
	display: grid;
	grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1.58fr);
	gap: 1.25rem;
	align-items: start;
}

.card-grid {
	display: grid;
	gap: 1rem;
}

.research-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.95rem;
}

.pill {
	display: inline-flex;
	align-items: center;
	padding: 0.33rem 0.68rem;
	border-radius: var(--radius-pill);
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.research-meta {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-soft);
}

.meta-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 1rem 0 0;
	list-style: none;
}

.meta-list li {
	padding: 0.32rem 0.68rem;
	border-radius: var(--radius-pill);
	background: var(--bg-soft);
	color: var(--text-soft);
	font-size: 0.87rem;
}

.card-role {
	margin: -0.2rem 0 0.75rem;
	color: var(--accent);
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.detail-list {
	padding-left: 1.05rem;
	color: var(--text-soft);
}

.link-inline {
	color: var(--accent);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
}

.card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.link-inline:hover,
.link-inline:focus-visible,
.research-card a:hover,
.research-card a:focus-visible,
.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__emails a:hover,
.site-footer__emails a:focus-visible {
	color: #163a5d;
	outline: none;
}

.section-note {
	margin: 1rem 0 0;
	max-width: 44rem;
}

.coursework-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.site-footer {
	padding: 0 0 2.2rem;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.4rem 0 1rem;
	border-top: 1px solid var(--border);
}

.site-footer__title {
	margin: 0;
	font-family: "Newsreader", serif;
	font-size: 1.35rem;
	font-weight: 700;
}

.site-footer__text {
	margin: 0.35rem 0 0;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-footer__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.45rem;
}

.site-footer__emails {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	justify-content: flex-end;
}

.site-footer__links a,
.site-footer__emails a,
.site-footer__credit {
	color: var(--text-soft);
	text-decoration: none;
}

.site-footer__credit {
	margin: 0;
	font-size: 0.9rem;
}

body.js-enabled [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.65s ease,
		transform 0.65s ease;
}

body.js-enabled [data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media screen and (max-width: 1080px) {
	body {
		font-size: 16px;
	}

	.hero__layout,
	.about-layout,
	.research-grid {
		grid-template-columns: 1fr;
	}

	.projects-grid,
	.coursework-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 840px) {
	.site-header__inner {
		position: relative;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: calc(100% + 0.75rem);
		right: 0;
		display: grid;
		width: min(18rem, calc(100vw - 2.5rem));
		padding: 0.7rem;
		border: 1px solid var(--border);
		border-radius: 20px;
		background: var(--surface);
		box-shadow: var(--shadow);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-0.5rem);
		transition:
			opacity 0.2s ease,
			transform 0.2s ease;
	}

	body.nav-open .site-nav {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.site-nav a {
		padding: 0.8rem 0.95rem;
	}
}

@media screen and (max-width: 720px) {
	:root {
		--shell: min(1080px, calc(100vw - 1.35rem));
	}

	.hero {
		padding-top: 3rem;
	}

	h1 {
		max-width: none;
		font-size: clamp(2.6rem, 11vw, 4rem);
	}

	h2 {
		font-size: clamp(2rem, 9vw, 2.7rem);
	}

	.projects-grid,
	.coursework-list {
		grid-template-columns: 1fr;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer__contact,
	.site-footer__emails {
		align-items: flex-start;
		justify-content: flex-start;
	}
}

@media screen and (max-width: 520px) {
	body {
		font-size: 15px;
	}

	.site-mark__text {
		display: none;
	}

	.hero__copy,
	.image-card__caption,
	.stack-note,
	.about-copy,
	.key-points,
	.project-card,
	.research-card,
	.course-item {
		padding: 1.15rem;
	}

	.button {
		width: 100%;
	}

	.button-row {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*:before,
	*:after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
