@font-face {
	font-family: kepler-b;
	src: url(kepler-std/KeplerStd-BoldCapt.otf);
}

@font-face {
	font-family: AvenirNext-Bold;
	src: url(avenir/AvenirNext-Bold-01.ttf);
}

@font-face {
	font-family: AvenirNext-DemiBold;
	src: url(avenir/AvenirNext-DemiBold-03.ttf);
}

@font-face {
	font-family: AvenirNext-Medium;
	src: url(avenir/AvenirNext-Medium-06.ttf);
}

@font-face {
	font-family: AvenirNext-Regular;
	src: url(avenir/AvenirNext-Regular-08.ttf);
}

/* ======== Reset & Base ======== */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: #fff;
	color: #1d1d1f;
	font-family: 'AvenirNext-Regular', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: #1d1d1f;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover, a:focus {
	color: #5858E6;
	text-decoration: none;
}

p {
	font-family: 'AvenirNext-Regular', sans-serif;
	color: #424245;
	font-size: 15px;
	line-height: 1.7;
	margin: 0 0 16px 0;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: 'AvenirNext-DemiBold', sans-serif;
	color: #1d1d1f;
}

/* ======== Animations ======== */

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ======== Layout ======== */

.container-narrow {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 24px;
}

.page-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.page-content {
	flex: 1;
	padding-top: 120px;
	padding-bottom: 80px;
	animation: fadeIn 0.5s ease both;
}

@media (max-width: 600px) {
	.page-content {
		padding-top: 84px;
		padding-bottom: 48px;
	}
}

/* ======== Navigation ======== */

.site-nav {
	position: fixed;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	background: rgba(255, 255, 255, 0.45);
	backdrop-filter: blur(28px) saturate(180%);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 24px;
}

.nav-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}

.nav-link {
	font-family: 'AvenirNext-Regular', sans-serif;
	font-size: 14px;
	color: #86868b;
	text-decoration: none;
	padding: 4px 0;
	transition: color 0.2s ease;
	display: inline-block;
}

.nav-link:hover,
.nav-link:focus {
	color: #1d1d1f;
	text-decoration: none;
}

.nav-link.active {
	color: #5858E6;
	font-family: 'AvenirNext-DemiBold', sans-serif;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
}

.nav-toggle-bar {
	display: block;
	width: 20px;
	height: 1.5px;
	background: #1d1d1f;
	border-radius: 1px;
}

@media (max-width: 600px) {
	.site-nav {
		top: 0;
		left: 0;
		transform: none;
		width: 100%;
		border-radius: 0;
		border: none;
		box-shadow: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
		background: #fff;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.nav-inner {
		padding: 0 20px;
		justify-content: space-between;
		height: 48px;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-links {
		display: none;
		position: absolute;
		top: 48px;
		left: 0;
		width: 100%;
		background: #fff;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border-bottom: 1px solid rgba(0, 0, 0, 0.06);
		flex-direction: column;
		gap: 0;
		padding: 4px 0 12px 0;
	}

	.nav-links.open {
		display: flex;
	}

	.nav-link {
		display: block;
		padding: 10px 20px;
	}
}

/* ======== Home: Hero ======== */

.hero {
	display: flex;
	gap: 48px;
	align-items: center;
	margin-bottom: 0;
	animation: fadeUp 0.6s ease both;
}

.hero-photo {
	width: 140px;
	height: 140px;
	border-radius: 12px;
	object-fit: cover;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.hero-photo:hover {
	transform: scale(1.02);
}

.hero-name {
	font-family: 'kepler-b', serif;
	font-size: 64px;
	line-height: 0.95;
	margin-top: 0;
	margin-bottom: 8px;
	color: #1d1d1f;
}

.hero-buttons {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.btn-primary,
.btn-secondary {
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 13px;
	padding: 10px 24px;
	border-radius: 999px;
	display: inline-block;
	text-align: center;
	line-height: 1.4;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
	background: #1d1d1f;
	color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
	background: #5858E6;
	color: #fff !important;
	text-decoration: none;
}

.btn-secondary {
	background: #fff;
	color: #1d1d1f !important;
	border: 1px solid #e0e0e0;
}

.btn-secondary:hover,
.btn-secondary:focus {
	background: #f9f9fb;
	color: #1d1d1f !important;
	text-decoration: none;
}

.hero-location {
	font-family: 'AvenirNext-Regular', sans-serif;
	font-size: 14px;
	color: #86868b;
	margin: 0;
}

.hero-bio {
	font-size: 15px;
	line-height: 1.7;
	color: #424245;
	animation: fadeUp 0.6s ease 0.15s both;
}

.hero-bio a {
	color: #5858E6;
}

.hero-bio a:hover {
	color: #3d3de0;
}

@media (max-width: 600px) {
	.hero {
		gap: 24px;
	}

	.hero-photo {
		width: 110px;
		height: 110px;
	}

	.hero-name {
		font-size: 38px;
	}
}

/* ======== Page Title ======== */

.page-title {
	font-family: 'kepler-b', serif;
	font-size: 42px;
	line-height: 1.1;
	margin-bottom: 48px;
	color: #1d1d1f;
	animation: fadeUp 0.5s ease both;
}

@media (max-width: 600px) {
	.page-title {
		font-size: 32px;
		margin-bottom: 32px;
	}
}

/* ======== Publications ======== */

.pub-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.page-intro {
	margin-top: 4px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #6e6e73;
}

.pub-item {
	padding: 24px 0;
	border-bottom: 1px solid #f0f0f0;
	animation: fadeUp 0.5s ease both;
}

.pub-item:nth-child(1) { animation-delay: 0.05s; }
.pub-item:nth-child(2) { animation-delay: 0.1s; }
.pub-item:nth-child(3) { animation-delay: 0.15s; }
.pub-item:nth-child(4) { animation-delay: 0.2s; }
.pub-item:nth-child(5) { animation-delay: 0.25s; }
.pub-item:nth-child(6) { animation-delay: 0.3s; }
.pub-item:nth-child(7) { animation-delay: 0.35s; }
.pub-item:nth-child(8) { animation-delay: 0.4s; }
.pub-item:nth-child(9) { animation-delay: 0.45s; }

.pub-item:first-child {
	padding-top: 0;
}

.pub-item:last-child {
	border-bottom: none;
}

.pub-venue {
	font-family: 'AvenirNext-Regular', sans-serif;
	font-size: 13px;
	color: #5858E6;
	margin-bottom: 6px;
}

.pub-title {
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 17px;
	line-height: 1.4;
	margin-bottom: 6px;
}

.pub-title a {
	color: #1d1d1f;
	transition: color 0.2s ease;
}

.pub-title a:hover {
	color: #5858E6;
}

.pub-authors {
	font-size: 14px;
	color: #6e6e73;
	line-height: 1.5;
	margin-bottom: 6px;
}

.pub-authors .self {
	font-family: 'AvenirNext-Medium', sans-serif;
	font-style: italic;
}

.pub-links {
	font-size: 14px;
}

.pub-links a {
	color: #1d1d1f;
	text-decoration: underline;
	margin-right: 12px;
	transition: color 0.2s ease;
}

.pub-links a:hover {
	color: #5858E6;
}

/* ======== News Stack ======== */

.news-section {
	margin-top: 72px;
	animation: fadeUp 0.6s ease 0.25s both;
}

.news-heading {
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #86868b;
	margin-bottom: 20px;
}

.news-stack {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.news-card + .news-card:not(.news-hidden) {
	margin-top: 12px;
}

.news-card {
	padding: 20px 24px;
	background: #f9f9fb;
	border-radius: 12px;
}

.news-hidden {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	margin-top: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, margin-top 0.4s ease;
}

.news-stack.expanded .news-hidden {
	max-height: 200px;
	padding-top: 20px;
	padding-bottom: 20px;
	margin-top: 12px;
	opacity: 1;
}

.news-card-date {
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #86868b;
	display: block;
	margin-bottom: 6px;
}

.news-card-text {
	font-size: 14px;
	line-height: 1.6;
	color: #1d1d1f;
	margin: 0;
}

.news-card-text a {
	color: #5858E6;
	transition: color 0.2s ease;
}

.news-card-text a:hover {
	color: #3d3de0;
}

.news-toggle {
	display: inline-block;
	margin-top: 20px;
	padding: 0;
	background: none;
	border: none;
	font-family: 'AvenirNext-Medium', sans-serif;
	font-size: 14px;
	color: #5858E6;
	cursor: pointer;
	transition: color 0.2s ease;
}

.news-toggle:hover {
	color: #3d3de0;
}

/* ======== Work Grid ======== */

.container-wide {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

.work-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.work-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e0e0e0;
	transition: border-color 0.2s ease;
	animation: fadeUp 0.5s ease both;
	color: #1d1d1f;
	overflow: hidden;
}

.work-card:hover {
	border-color: #b0b0b0;
	color: #1d1d1f;
	text-decoration: none;
}

.work-card:nth-child(1) { animation-delay: 0.05s; }
.work-card:nth-child(2) { animation-delay: 0.1s; }
.work-card:nth-child(3) { animation-delay: 0.15s; }
.work-card:nth-child(4) { animation-delay: 0.2s; }

.work-card-img {
	width: 180px;
	height: 180px;
	flex-shrink: 0;
	background: #e8e8ed;
	align-self: center;
	margin-left: 10px;
}

.work-card-img-wrap {
	width: 180px;
	height: 180px;
	flex-shrink: 0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	align-self: center;
	margin-left: 10px;
}

.work-card-img-wrap img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

img.work-card-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.work-card-body {
	display: flex;
	flex-direction: column;
	padding: 24px;
	flex: 1;
}

.work-card-title {
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 17px;
	line-height: 1.35;
	color: #1d1d1f;
	margin-bottom: 10px;
}

.work-card-desc {
	font-family: 'AvenirNext-Regular', sans-serif;
	font-size: 13.5px;
	line-height: 1.6;
	color: #6e6e73;
	margin: 0 0 auto 0;
	padding-bottom: 16px;
}

.work-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.work-tag {
	font-family: 'AvenirNext-Medium', sans-serif;
	font-size: 11.5px;
	color: #6e6e73;
	background: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 999px;
	padding: 4px 12px;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.work-card {
		flex-direction: column;
	}

	.work-card-img {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
		background: #e8e8ed;
	}

	.work-card-img-wrap {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.work-card-img-wrap img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	.work-card-img-wrap {
		position: relative;
	}

	img.work-card-img {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}
}

/* ======== Work Detail ======== */

.work-detail-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'AvenirNext-Medium', sans-serif;
	font-size: 14px;
	color: #5858E6;
	margin-bottom: 32px;
	transition: color 0.2s ease;
}

.work-detail-back:hover {
	color: #3d3de0;
	text-decoration: none;
}

.work-detail-year {
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 14px;
	color: #5858E6;
	margin-bottom: 8px;
}

.work-detail-title {
	font-family: 'kepler-b', serif;
	font-size: 36px;
	line-height: 1.15;
	color: #1d1d1f;
	margin-bottom: 24px;
}

.work-detail-subtitle {
	font-family: 'AvenirNext-Regular', sans-serif;
	font-size: 17px;
	color: #6e6e73;
	margin-top: -16px;
	margin-bottom: 20px;
	line-height: 1.5;
}

.work-detail-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 32px;
	padding: 24px;
	background: #f9f9fb;
	border-radius: 12px;
	margin-bottom: 40px;
}

.work-meta-item {
	font-family: 'AvenirNext-Regular', sans-serif;
	font-size: 14px;
	color: #424245;
	line-height: 1.5;
}

.work-meta-label {
	display: block;
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #86868b;
	margin-bottom: 2px;
}

.work-detail-body {
	font-size: 15px;
	line-height: 1.7;
	color: #424245;
}

.work-detail-body h3 {
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 22px;
	margin-top: 40px;
	margin-bottom: 12px;
	color: #1d1d1f;
}

.work-detail-body h4 {
	font-family: 'AvenirNext-DemiBold', sans-serif;
	font-size: 15px;
	margin-top: 24px;
	margin-bottom: 8px;
	color: #1d1d1f;
}

.work-detail-body ul,
.work-detail-body ol {
	padding-left: 20px;
	margin: 0 0 16px 0;
}

.work-detail-body li {
	font-size: 15px;
	line-height: 1.7;
	color: #424245;
	margin-bottom: 4px;
}

.work-detail-body a {
	color: #5858E6;
}

.work-detail-body a:hover {
	color: #3d3de0;
}

.work-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

@media (max-width: 600px) {
	.work-detail-title {
		font-size: 28px;
	}

	.work-detail-meta {
		grid-template-columns: 1fr;
	}
}

/* ======== Resume ======== */

.resume-placeholder {
	text-align: center;
	padding: 80px 0;
	color: #86868b;
	font-size: 16px;
}

/* ======== Footer ======== */

.site-footer {
	padding: 32px 0;
	border-top: 1px solid #f0f0f0;
	animation: fadeIn 0.6s ease 0.4s both;
}

.footer-inner {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	justify-content: center;
	gap: 32px;
}

.footer-link {
	font-family: 'AvenirNext-Regular', sans-serif;
	font-size: 13px;
	color: #86868b;
	transition: color 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.footer-link:hover {
	color: #1d1d1f;
	text-decoration: none;
}

.footer-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.footer-inner {
		gap: 20px;
		flex-wrap: wrap;
	}
}
