/* Theme tokens */
:root {
	--bg: #f6f9ff;
	--bg-alt: #eef3ff;
	--card: rgba(255, 255, 255, 0.82);
	--card-strong: rgba(255, 255, 255, 0.94);
	--text: #1f2a44;
	--muted: rgba(31, 42, 68, 0.7);
	--accent: #2a6df6;
	--accent-2: #1aa6c9;
	--shadow: 0 28px 70px rgba(20, 50, 110, 0.16);
	--radius-lg: 28px;
	--radius-md: 18px;
	--font-serif: "Crimson Pro", "Times New Roman", serif;
	--font-sans: "Manrope", "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html, body {
	min-height: 100%;
	margin: 0;
	color: var(--text);
	font-family: var(--font-sans);
	background: radial-gradient(circle at top, rgba(42, 109, 246, 0.14), transparent 50%),
		linear-gradient(180deg, #f9fbff 0%, #eef4ff 55%, #f4f7ff 100%);
}

body {
	position: relative;
	overflow-x: hidden;
	padding: 56px 16px 72px;
}

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

/* Background elements */
.bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.bg .orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(0px);
	opacity: 0.8;
	animation: float 18s ease-in-out infinite;
}

.bg .orb-1 {
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(42, 109, 246, 0.3), transparent 70%);
	top: -120px;
	left: -80px;
}

.bg .orb-2 {
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(26, 166, 201, 0.28), transparent 70%);
	bottom: -140px;
	right: -60px;
	animation-delay: -6s;
}

.bg .grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(transparent 95%, rgba(42, 109, 246, 0.08) 96%),
		linear-gradient(90deg, transparent 95%, rgba(42, 109, 246, 0.08) 96%);
	background-size: 48px 48px;
	opacity: 0.4;
}

/* Layout */
.page {
	position: relative;
	z-index: 1;
	max-width: 980px;
	margin: 0 auto;
	background: linear-gradient(180deg, rgba(42, 109, 246, 0.06), transparent 45%),
		var(--card);
	border-radius: var(--radius-lg);
	padding: 48px clamp(20px, 4vw, 56px) 56px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(42, 109, 246, 0.12);
	animation: rise 0.9s ease both;
}

/* Intro */
.intro {
	text-align: center;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(42, 109, 246, 0.12);
}

.intro h1 {
	font-family: var(--font-serif);
	font-size: clamp(30px, 4vw, 44px);
	margin: 12px 0 4px;
	letter-spacing: 0.6px;
}

.tagline {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 16px;
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.contact {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

.email-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(42, 109, 246, 0.12);
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	border: 1px solid rgba(42, 109, 246, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-link:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(42, 109, 246, 0.2);
}

.links {
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.links a {
	color: var(--accent);
	text-decoration: none;
	font-size: 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(42, 109, 246, 0.1);
	border: 1px solid rgba(42, 109, 246, 0.18);
	transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.links a:hover {
	transform: translateY(-2px);
	background: rgba(42, 109, 246, 0.2);
	border-color: rgba(42, 109, 246, 0.5);
}

/* Sections */
.section {
	margin-top: 36px;
	padding: 28px clamp(18px, 3vw, 28px);
	background: var(--card-strong);
	border-radius: var(--radius-md);
	border: 1px solid rgba(42, 109, 246, 0.14);
	box-shadow: 0 18px 40px rgba(25, 60, 120, 0.12);
}

.section-header {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 2.8px;
	font-size: 11px;
	color: var(--accent);
}

.section h2 {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 26px;
}

.section p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
}

/* Publications list */
.publications ol {
	margin: 0;
	padding-left: 1.2em;
	display: grid;
	gap: 16px;
}

.publications li {
	padding: 16px 18px;
	background: rgba(245, 248, 255, 0.9);
	border-radius: 14px;
	border: 1px solid rgba(42, 109, 246, 0.12);
	line-height: 1.6;
	font-size: 15px;
	color: var(--text);
}

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

.publications a:hover {
	text-decoration: underline;
}

/* Figures and videos */
.paper-figure img {
	margin: 12px auto 0;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(25, 60, 120, 0.18);
}

.paper-video {
	display: flex;
	justify-content: center;
	margin-top: 12px;
}

.paper-video iframe {
	width: 100%;
	max-width: 860px;
	aspect-ratio: 16/9;
	height: auto;
	border-radius: 12px;
	border: 0;
	box-shadow: 0 12px 28px rgba(25, 60, 120, 0.18);
}

/* Avatar */
.avatar {
	width: 168px;
	height: 168px;
	border-radius: 24px;
	object-fit: cover;
	margin: 0 auto 14px;
	border: 3px solid rgba(42, 109, 246, 0.18);
	box-shadow: 0 14px 30px rgba(25, 60, 120, 0.18);
}

/* Motion */
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(16px); }
}

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

/* Responsive */
@media (max-width: 768px) {
	body { padding: 40px 12px 56px; }
	.page { padding: 36px 18px 40px; }
	.section { margin-top: 28px; }
	.publications li { font-size: 14px; }
	.avatar { width: 130px; height: 130px; border-radius: 20px; }
}

@media (max-width: 520px) {
	.links { gap: 8px; }
	.links a { padding: 6px 10px; }
	.section h2 { font-size: 22px; }
}

