:root {
	--bg: #f7f9fc;
	--panel: #ffffff;
	--text: #1d2733;
	--muted: #5f6f82;
	--line: #dce3ec;
	--accent: #256f8f;
	--accent-dark: #164d66;
	--accent-soft: #e4f1f6;
	--max-width: 1280px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

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

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 0.95rem max(1.25rem, calc((100vw - var(--max-width)) / 2));
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(14px);
}

.site-title {
	color: var(--text);
	font-size: 1.05rem;
	font-weight: 700;
	white-space: nowrap;
}

.site-title:hover {
	text-decoration: none;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.35rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.site-nav a {
	color: var(--muted);
}

.site-nav a:hover {
	color: var(--accent);
	text-decoration: none;
}

.section {
	width: min(var(--max-width), calc(100vw - 2.5rem));
	margin: 0 auto;
	padding: 4.2rem 0;
}

.section-narrow {
	max-width: var(--max-width);
}

.intro {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 3.25rem;
	align-items: start;
	min-height: calc(100vh - 66px);
}

.profile {
	position: sticky;
	top: 6rem;
	text-align: center;
}

.avatar {
	width: 190px;
	height: 190px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
	box-shadow: 0 14px 34px rgba(18, 42, 68, 0.16);
}

.profile h1 {
	margin: 1.35rem 0 0.25rem;
	font-size: 1.95rem;
	line-height: 1.1;
	letter-spacing: 0;
}

.role,
.affiliation {
	margin: 0.35rem auto;
	color: var(--muted);
	line-height: 1.45;
}

.role {
	max-width: 17rem;
	font-size: 1rem;
	font-weight: 650;
}

.affiliation {
	max-width: 18rem;
	font-size: 0.92rem;
}

.profile-links {
	display: flex;
	justify-content: center;
	gap: 0.8rem;
	margin-top: 1.1rem;
}

.profile-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--panel);
	color: var(--accent);
}

.profile-links a:hover {
	border-color: var(--accent);
	color: var(--accent-dark);
	text-decoration: none;
}

.bio {
	padding-top: 0.35rem;
}

.bio h2,
.section-heading h2 {
	margin: 0;
	color: var(--text);
	line-height: 1.15;
	letter-spacing: 0;
}

.bio h2 {
	max-width: 720px;
	font-size: clamp(2rem, 4vw, 3.1rem);
}

.bio p {
	margin: 1rem 0 0;
	color: #2c3745;
}

.bio-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 2.75rem;
	margin-top: 2.1rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.bio-grid h3,
.publication-group h3 {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
}

.compact-list,
.timeline,
.service-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.compact-list li {
	position: relative;
	padding-left: 1rem;
	margin: 0.35rem 0;
	color: var(--muted);
}

.compact-list li::before {
	position: absolute;
	left: 0;
	content: "";
	width: 0.38rem;
	height: 0.38rem;
	margin-top: 0.65rem;
	border-radius: 50%;
	background: var(--accent);
}

.timeline li {
	display: grid;
	grid-template-columns: 5.9rem minmax(0, 1fr);
	gap: 0.15rem;
	margin-bottom: 0.75rem;
}

.timeline span,
.venue {
	color: var(--muted);
	font-size: 0.9rem;
}

.timeline span {
	grid-row: span 2;
	padding-top: 0.08rem;
}

.timeline strong {
	font-weight: 700;
	line-height: 1.35;
}

.timeline a {
	line-height: 1.35;
}

@media (min-width: 861px) {
	.bio-grid .timeline strong {
		white-space: nowrap;
	}
}

.section-heading {
	margin-bottom: 1.5rem;
}

.section-heading h2 {
	font-size: 2rem;
}

.section-intro {
	max-width: 760px;
	margin: 0.75rem 0 0;
	color: var(--muted);
}

.news-list,
.publication-group,
.project-group,
.student-list,
.service-list {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(22, 50, 78, 0.06);
}

.news-list article {
	display: grid;
	grid-template-columns: 6rem minmax(0, 1fr);
	gap: 1.25rem;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid var(--line);
}

.news-list article:last-child,
.publication:last-child {
	border-bottom: 0;
}

.news-list time {
	color: var(--accent-dark);
	font-weight: 800;
}

.news-list p,
.publication p {
	margin: 0;
}

.publication-group {
	margin-top: 1.35rem;
	overflow: hidden;
}

.publication-group h3 {
	padding: 1rem 1.25rem;
	margin: 0;
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.publication {
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid var(--line);
}

.pub-title {
	font-size: 1.02rem;
	font-weight: 750;
}

.publication p + p {
	margin-top: 0.3rem;
}

.project-group {
	overflow: hidden;
}

.project-group-heading {
	padding: 1rem 1.25rem;
	background: var(--accent-soft);
	color: var(--accent-dark);
}

.project-group-heading h3 {
	margin: 0;
	font-size: 1.05rem;
}

.project-group-heading p {
	margin: 0.45rem 0 0;
	color: #335b6d;
}

.project-card {
	padding: 1.25rem;
	border-bottom: 1px solid var(--line);
}

.project-card:last-child {
	border-bottom: 0;
}

.project-label {
	margin: 0 0 0.35rem;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.project-card h3 {
	margin: 0 0 0.65rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.project-figure {
	margin: 0.85rem 0 1rem;
	padding: 0.75rem;
	overflow-x: auto;
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.project-figure img {
	display: block;
	width: 100%;
	min-width: 560px;
	height: auto;
}

.project-figure-compact img {
	width: 78%;
	min-width: 0;
	margin: 0 auto;
}

.project-card p {
	margin: 0;
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 0.75rem !important;
	font-size: 0.92rem;
	font-weight: 700;
}

.note {
	color: var(--muted);
	font-size: 0.92em;
}

.student-group {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--line);
}

.student-group:last-child {
	border-bottom: 0;
}

.student-group h3 {
	margin: 0 0 0.7rem;
	font-size: 1rem;
	font-style: italic;
	font-weight: 500;
}

.student {
	display: grid;
	grid-template-columns: 7.8rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: baseline;
}

.student + .student {
	margin-top: 0.4rem;
}

.student time {
	color: var(--muted);
	font-size: 0.92rem;
}

.student p {
	margin: 0;
}

.student-role {
	display: inline-block;
	margin-left: 0.45rem;
	padding: 0.08rem 0.42rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.82rem;
}

.service-list {
	padding: 0.45rem 1.25rem;
}

.service-group {
	padding: 0.78rem 0;
	border-bottom: 1px solid var(--line);
}

.service-group:last-child {
	border-bottom: 0;
}

.service-group h3 {
	margin: 0 0 0.25rem;
	font-size: 1rem;
}

.service-group p {
	margin: 0;
	color: var(--muted);
}

.site-footer {
	width: min(var(--max-width), calc(100vw - 2.5rem));
	margin: 0 auto;
	padding: 1.5rem 0 2.5rem;
	color: var(--muted);
	font-size: 0.9rem;
	border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
	.site-header {
		position: static;
		align-items: flex-start;
		flex-direction: column;
		gap: 0.75rem;
	}

	.site-nav {
		width: 100%;
		gap: 0.85rem;
		overflow-x: auto;
		padding-bottom: 0.1rem;
	}

	.intro {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		min-height: auto;
	}

	.profile {
		position: static;
	}

	.bio-grid {
		grid-template-columns: 1fr;
		gap: 1.35rem;
	}
}

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

	.section {
		width: min(100% - 1.5rem, var(--max-width));
		padding: 2.8rem 0;
	}

	.avatar {
		width: 160px;
		height: 160px;
	}

	.bio h2 {
		font-size: 2rem;
	}

	.news-list article {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.timeline li {
		grid-template-columns: 5.8rem minmax(0, 1fr);
	}

	.student {
		grid-template-columns: 1fr;
		gap: 0.05rem;
	}

	.project-figure-compact img {
		width: 100%;
		min-width: 560px;
	}
}
