/* ==========================================================================
   Quanquan Gu — site styles
   ========================================================================== */

:root {
	--bg: #ffffff;
	--bg-2: #f3f7fb;
	--card: #ffffff;
	--card-2: #f7fafd;
	--line: #e3e9f1;
	--line-2: #cfd9e6;
	--text: #374151;
	--hi: #003B5C;
	--mute: #687387;
	--blue: #2774AE;
	--violet: #005587;
	--teal: #8BB8E8;
	--pink: #003B5C;
	--grad: linear-gradient(100deg, #005587 0%, #2774AE 100%);
	--grad-2: linear-gradient(100deg, #2774AE 0%, #8BB8E8 100%);
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--display: "Inter Tight", "Inter", -apple-system, sans-serif;
	--serif: "Instrument Serif", Georgia, serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--w: 1180px;
	--r: 20px;
}

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

html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
	margin: 0;
	color: var(--text);
	background: var(--bg);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

::selection { background: rgba(39,116,174,.22); color: inherit; }

a { color: #005587; text-decoration: none; transition: color .2s; }
a:hover { color: #2774AE; }

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

.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 28px; }

.grad-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mute);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--grad); }

/* noise overlay for texture */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100;
	opacity: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
	position: fixed;
	top: 14px;
	left: 0;
	right: 0;
	z-index: 60;
	pointer-events: none;
}

.nav-wrap {
	pointer-events: auto;
	max-width: var(--w);
	margin: 0 auto;
	width: calc(100% - 32px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 8px 8px 16px;
	border: 1px solid transparent;
	border-radius: 16px;
	transition: background .3s, border-color .3s, box-shadow .3s;
}

.nav.scrolled .nav-wrap,
.nav.solid .nav-wrap {
	background: rgba(255,255,255,.85);
	border-color: var(--line);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	box-shadow: 0 10px 40px -20px rgba(20,50,90,.16);
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--hi); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.logo:hover { color: var(--hi); }
.logo-mark {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: var(--grad);
	color: #fff;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 6px 20px -6px rgba(39,116,174,.8);
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
	position: relative;
	padding: 8px 13px;
	border-radius: 10px;
	color: var(--mute);
	font-size: 14px;
	font-weight: 500;
}
.nav-links a:hover { color: var(--hi); background: rgba(0,59,92,.05); }
.nav-links a.active { color: var(--hi); }
.nav-links a.active::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 3px;
	height: 2px;
	border-radius: 2px;
	background: var(--grad);
}
.nav-links .ext::after { content: " ↗"; font-size: 11px; opacity: .6; }

.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 16px;
	border-radius: 11px;
	background: var(--violet);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -8px rgba(0,59,92,.5); }

.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line-2);
	border-radius: 11px;
	background: rgba(0,59,92,.04);
	color: var(--hi);
	cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	display: block;
	width: 16px;
	height: 1.5px;
	margin: 0 auto;
	background: currentColor;
	position: relative;
	transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 20px;
	border-radius: 13px;
	border: 1px solid var(--line-2);
	background: rgba(0,59,92,.035);
	color: var(--hi);
	font-size: 15px;
	font-weight: 500;
	transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { color: var(--violet); background: rgba(0,59,92,.08); border-color: rgba(0,59,92,.3); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary {
	border: 0;
	background: var(--grad);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 12px 40px -12px rgba(39,116,174,.9), inset 0 1px 0 rgba(0,59,92,.35);
}
.btn-primary:hover { color: #fff; background: var(--grad); box-shadow: 0 16px 50px -10px rgba(39,116,174,1), inset 0 1px 0 rgba(0,59,92,.35); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 140px 0 90px;
	overflow: hidden;
	isolation: isolate;
}

.aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.aurora i {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: .55;
	animation: drift 18s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -120px; background: #a9cdee; }
.aurora i:nth-child(2) { width: 520px; height: 520px; right: -120px; top: 40px; background: #c4dcf3; animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 460px; height: 460px; left: 40%; bottom: -260px; background: #d7ebf8; opacity: .35; animation-duration: 26s; animation-delay: -12s; }

@keyframes drift {
	0% { transform: translate3d(0,0,0) scale(1); }
	50% { transform: translate3d(60px,40px,0) scale(1.1); }
	100% { transform: translate3d(-40px,80px,0) scale(.95); }
}

.grid-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(0,59,92,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0,59,92,.045) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 200px;
	z-index: -1;
	background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
	gap: 64px;
	align-items: center;
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px 7px 10px;
	margin-bottom: 28px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: rgba(0,59,92,.04);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 13.5px;
	color: var(--text);
}
.status b { color: var(--hi); font-weight: 600; }
.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3ee08f;
	box-shadow: 0 0 0 0 rgba(62,224,143,.6);
	animation: ping 2.2s infinite;
}
@keyframes ping {
	0% { box-shadow: 0 0 0 0 rgba(62,224,143,.55); }
	70% { box-shadow: 0 0 0 9px rgba(62,224,143,0); }
	100% { box-shadow: 0 0 0 0 rgba(62,224,143,0); }
}

.hero h1 {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(56px, 9vw, 124px);
	line-height: .92;
	letter-spacing: -0.055em;
	color: var(--hi);
}
.hero h1 .serif { display: inline-block; font-size: 1.04em; letter-spacing: -0.02em; padding-right: .06em; }

.hero-lede {
	max-width: 600px;
	margin: 30px 0 0;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.6;
	color: #4b5563;
}
.hero-lede strong { color: var(--hi); font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero-social { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; font-family: var(--mono); font-size: 13px; }
.hero-social a { color: var(--mute); white-space: nowrap; }
.hero-social a:hover { color: var(--hi); }

/* portrait card */
.portrait {
	position: relative;
	justify-self: end;
	width: 100%;
	max-width: 400px;
	perspective: 1000px;
}
.portrait-card {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	padding: 1.5px;
	background: linear-gradient(140deg, rgba(0,59,92,.5), rgba(0,59,92,.04) 40%, rgba(39,116,174,.6));
	box-shadow: 0 50px 120px -30px rgba(39,116,174,.55);
	transform: rotate(2.5deg);
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.portrait:hover .portrait-card { transform: rotate(0deg) scale(1.01); }
.portrait-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	border-radius: 27px;
	filter: saturate(1.05) contrast(1.03);
}
.portrait-card::after {
	content: "";
	position: absolute;
	inset: 1.5px;
	border-radius: 27px;
	background: linear-gradient(to top, rgba(5,6,8,0), transparent 45%);
}

.float-tag {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--line-2);
	border-radius: 14px;
	background: rgba(255,255,255,.9);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 50px -20px rgba(20,50,90,.28);
	font-size: 13px;
	line-height: 1.3;
	color: var(--text);
	white-space: nowrap;
	animation: bob 6s ease-in-out infinite;
}
.float-tag b { display: block; color: var(--hi); font-weight: 600; font-size: 13.5px; }
.float-tag .ico {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: var(--grad);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}
.float-tag.t1 { left: -46px; top: 14%; }
.float-tag.t2 { right: -26px; bottom: 16%; animation-delay: -3s; }
.float-tag.t2 .ico { background: var(--grad-2); }
@keyframes bob { 50% { transform: translateY(-10px); } }

.scroll-hint {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mute);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.scroll-hint::after {
	content: "";
	width: 1px;
	height: 36px;
	background: linear-gradient(var(--mute), transparent);
	animation: drip 2s ease-in-out infinite;
	transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
	position: relative;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
	display: flex;
	gap: 56px;
	width: max-content;
	animation: scroll 40s linear infinite;
}
.marquee-track span {
	font-family: var(--display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: rgba(0,59,92,.28);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 56px;
}
.marquee-track span::after { content: "✦"; font-size: 12px; color: rgba(39,116,174,.6); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 130px 0 0; position: relative; }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 48px;
}
.section-head h2 {
	margin: 0;
	font-family: var(--display);
	font-weight: 600;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1;
	letter-spacing: -0.045em;
	color: var(--hi);
}
.section-head p { max-width: 420px; margin: 0; color: var(--mute); font-size: 15.5px; }

/* about */
.about {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 64px;
	align-items: start;
}
.about-big {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 500;
	line-height: 1.22;
	letter-spacing: -0.03em;
	color: var(--hi);
}
.about-body p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; color: #4b5563; }
.about-body a { color: var(--hi); border-bottom: 1px solid rgba(39,116,174,.6); }
.about-body a:hover { border-color: var(--blue); color: var(--blue); }

/* stats */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 80px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--card);
	overflow: hidden;
}
.stat { padding: 30px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num {
	font-family: var(--display);
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--hi);
}
.stat .num sup { font-size: .5em; vertical-align: top; position: relative; top: .25em; }
.stat .lbl { margin-top: 12px; font-size: 14px; color: var(--mute); }

/* ---------- Cards / bento ---------- */
.card {
	position: relative;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--card);
	overflow: hidden;
	isolation: isolate;
	transition: border-color .3s, transform .3s, background .3s;
}
.card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	transition: opacity .3s;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(39,116,174,.16), transparent 45%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

.bento {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}
.bento .card { padding: 32px; min-height: 260px; display: flex; flex-direction: column; }
.bento .span-4 { grid-column: span 4; }
.bento .span-3 { grid-column: span 3; }
.bento .span-2 { grid-column: span 2; }

.area-ico {
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	margin-bottom: auto;
	border: 1px solid var(--line-2);
	background: rgba(0,59,92,.04);
	color: var(--hi);
}
.area-ico svg { width: 22px; height: 22px; }
.bento h3 {
	margin: 40px 0 10px;
	font-family: var(--display);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--hi);
}
.bento p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.6; }
.bento .feature p, .bento .feature h3 { max-width: 62%; }
@media (max-width: 640px) { .bento .feature p, .bento .feature h3 { max-width: none; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags span {
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 11.5px;
	color: #5b6678;
}

.card.feature {
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(39,116,174,.22), transparent 60%),
		radial-gradient(500px 300px at 0% 100%, rgba(39,116,174,.18), transparent 60%),
		var(--card);
}
.feature-art {
	position: absolute;
	right: -30px;
	top: -30px;
	width: 300px;
	height: 300px;
	opacity: .55;
	z-index: -1;
}

/* ---------- Selected work ---------- */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work {
	display: flex;
	flex-direction: column;
	padding: 28px;
	min-height: 230px;
}
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.venue {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .04em;
	color: var(--hi);
	padding: 5px 10px;
	border-radius: 8px;
	background: rgba(0,59,92,.06);
	border: 1px solid var(--line);
}
.venue::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
.badge {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .04em;
	padding: 4px 10px;
	border-radius: 999px;
	color: #c0392b;
	background: rgba(220,53,69,.06);
	border: 1px solid rgba(220,53,69,.28);
	white-space: nowrap;
}
.work h3 {
	margin: 0 0 12px;
	font-family: var(--display);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: var(--hi);
}
.work h3 a { color: inherit; }
.work h3 a:hover { color: #2774AE; }
.work .authors { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mute); }
.work .authors b { color: #003B5C; font-weight: 500; }
.work-links { display: flex; gap: 14px; margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 12.5px; }
.work-links a { color: #005587; display: inline-flex; align-items: center; gap: 4px; }
.work-links a::after { content: "→"; transition: transform .2s; }
.work-links a:hover::after { transform: translateX(3px); }

.work.lg { grid-column: span 2; min-height: 0; padding: 40px; }
.work.lg h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; max-width: 820px; }

.works .work.hidden { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- News / timeline ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split .card { padding: 34px; }
.split h3.card-title {
	margin: 0 0 24px;
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mute);
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time { font-family: var(--mono); font-size: 12.5px; color: var(--mute); padding-top: 2px; }
.timeline p { margin: 0; color: var(--text); }

.awards { list-style: none; margin: 0; padding: 0; }
.awards li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--hi); font-size: 15px; }
.awards li:first-child { border-top: 0; padding-top: 0; }
.awards li span { font-family: var(--mono); font-size: 12.5px; color: var(--mute); }

/* ---------- Contact CTA ---------- */
.cta {
	position: relative;
	margin-top: 130px;
	padding: 90px 48px;
	border: 1px solid var(--line-2);
	border-radius: 32px;
	text-align: center;
	overflow: hidden;
	isolation: isolate;
	background: var(--bg-2);
}
.cta .aurora i { opacity: .45; }
.cta .aurora i:nth-child(1) { width: 500px; height: 500px; left: -100px; top: -260px; }
.cta .aurora i:nth-child(2) { width: 460px; height: 460px; right: -120px; top: auto; bottom: -280px; }
.cta h2 {
	margin: 0 auto;
	max-width: 820px;
	font-family: var(--display);
	font-size: clamp(40px, 6vw, 80px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--hi);
}
.cta p { margin: 22px auto 0; max-width: 520px; color: #4b5563; font-size: 17px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.cta-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; font-family: var(--mono); font-size: 13px; color: var(--mute); }

/* ---------- Footer ---------- */
.footer {
	margin-top: 100px;
	padding: 32px 0 40px;
	border-top: 1px solid var(--line);
}
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--mute); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { font-size: 13.5px; color: var(--mute); }
.footer nav a:hover { color: var(--hi); }
.footer-word {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(64px, 15vw, 210px);
	line-height: .8;
	letter-spacing: -0.065em;
	text-align: center;
	margin: 70px 0 -0.08em;
	background: linear-gradient(180deg, rgba(0,59,92,.14), rgba(0,59,92,0) 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	user-select: none;
	white-space: nowrap;
	overflow: hidden;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.hero .reveal { transition-duration: 1.1s; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ==========================================================================
   Sub pages
   ========================================================================== */
.page-hero {
	position: relative;
	padding: 170px 0 70px;
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid var(--line);
}
.page-hero .aurora i { opacity: .38; }
.page-hero .aurora i:nth-child(1) { width: 520px; height: 520px; top: -300px; }
.page-hero .aurora i:nth-child(2) { width: 420px; height: 420px; top: -240px; }
.page-hero .aurora i:nth-child(3) { display: none; }
.page-hero h1 {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(54px, 9vw, 120px);
	font-weight: 600;
	line-height: .92;
	letter-spacing: -0.055em;
	color: var(--hi);
}
.page-hero .lede { max-width: 640px; margin: 26px 0 0; font-size: 18px; color: #4b5563; }

.page-body { padding-top: 64px; }

/* prose: legacy content rendered inside the new design */
.prose { max-width: 920px; }
.prose > p, .prose li p { margin: 0 0 1em; }
.prose p { color: var(--text); }
.prose h2 {
	margin: 96px 0 28px;
	font-family: var(--display);
	font-size: clamp(30px, 3.6vw, 44px);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.05;
	color: var(--hi);
}
.prose > h2:first-child, .prose > .toolbar + h2 { margin-top: 0; }
.prose h3 {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 56px 0 20px;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #005587;
}
.prose h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.prose h2 + h3 { margin-top: 0; }

.prose ul, .prose ol { list-style: none; margin: 0 0 1.2em; padding: 0; }
.prose li { position: relative; margin: 0 0 10px; padding-left: 24px; }
.prose li p { margin: 0; }
.prose ul > li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: .62em;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	transform: rotate(45deg);
	background: var(--grad);
}
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before {
	content: counter(n, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: .25em;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--mute);
}

/* items with a line break (papers, talks) become cards */
.prose li:has(br) {
	margin: 0 0 12px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card);
	color: #4b5563;
	font-size: 15px;
	line-height: 1.65;
	transition: border-color .25s, background .25s, transform .25s;
}
.prose li:has(br):hover { border-color: rgba(39,116,174,.45); background: var(--card-2); transform: translateX(4px); }
.prose ul > li:has(br)::before { display: none; }
.prose ol > li:has(br) { padding-left: 68px; }
.prose ol > li:has(br)::before { left: 24px; top: 25px; }
.prose li > p > a:first-child:has(+ br),
.prose li > a:first-child:has(+ br) {
	font-family: var(--display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.35;
	color: var(--hi);
}
.prose li > p > a:first-child:has(+ br):hover { color: #2774AE; }
.prose li i { color: #6b7280; }
.prose font[color] {
	display: inline-block;
	padding: 0 9px;
	margin: 0 2px;
	border: 1px solid rgba(220,53,69,.28);
	border-radius: 999px;
	background: rgba(220,53,69,.06);
	color: #c0392b !important;
	font-family: var(--mono);
	font-size: 11px;
	line-height: 1.9;
	vertical-align: 1px;
}
.prose img { border-radius: 12px; }

/* publications toolbar */
.toolbar {
	position: sticky;
	top: 84px;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 0 0 48px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: rgba(255,255,255,.9);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.search {
	flex: 1 1 260px;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: 11px;
	background: rgba(0,59,92,.03);
}
.search svg { width: 16px; height: 16px; color: var(--mute); flex: none; }
.search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--hi);
	font: inherit;
	font-size: 15px;
}
.search input::placeholder { color: var(--mute); }
.search:focus-within { border-color: rgba(39,116,174,.7); box-shadow: 0 0 0 4px rgba(39,116,174,.15); }
.years { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.years::-webkit-scrollbar { display: none; }
.years a {
	padding: 7px 10px;
	border-radius: 9px;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--mute);
	white-space: nowrap;
}
.years a:hover { background: rgba(0,59,92,.06); color: var(--hi); }
.count { font-family: var(--mono); font-size: 12.5px; color: var(--mute); padding: 0 6px; white-space: nowrap; }
.empty { display: none; padding: 40px 0; color: var(--mute); font-family: var(--mono); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
	.nav-links, .nav-cta { display: none; }
	.nav-toggle { display: block; }
	.nav.open .nav-wrap { background: rgba(255,255,255,.98); border-color: var(--line); flex-wrap: wrap; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
	.nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; padding: 8px 0 4px; }
	.nav.open .nav-links a { padding: 12px 10px; font-size: 16px; }
	.nav.open .nav-links a.active::after { display: none; }
	.nav.open .nav-cta { display: inline-flex; order: 4; width: 100%; justify-content: center; margin-bottom: 4px; }

	.hero { min-height: auto; padding: 120px 0 80px; }
	.hero-inner { grid-template-columns: 1fr; gap: 56px; }
	.portrait { justify-self: start; max-width: 320px; margin-left: 40px; }
	.scroll-hint { display: none; }
	.about { grid-template-columns: 1fr; gap: 28px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.bento .span-4, .bento .span-3, .bento .span-2 { grid-column: span 6; }
	.split { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 640px) {
	.container { padding: 0 18px; }
	.nav { top: 8px; }
	.nav-wrap { width: calc(100% - 16px); }
	.hero h1 { font-size: 58px; }
	.portrait { max-width: 260px; margin-left: 30px; }
	.float-tag.t1 { left: -30px; }
	.float-tag.t2 { right: -14px; }
	.works { grid-template-columns: 1fr; }
	.work.lg { grid-column: auto; padding: 28px; }
	.section { padding-top: 96px; }
	.bento .card { padding: 26px; min-height: 0; }
	.bento h3 { margin-top: 28px; }
	.stat { padding: 22px 18px; }
	.cta { padding: 64px 22px; border-radius: 24px; }
	.timeline li { grid-template-columns: 1fr; gap: 4px; }
	.page-hero { padding: 130px 0 48px; }
	.prose li:has(br) { padding: 18px; }
	.prose ol > li:has(br) { padding-left: 54px; }
	.prose ol > li:has(br)::before { left: 18px; top: 21px; }
	.toolbar { top: 76px; }
	.prose { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- light theme refinements ---------- */
.card { box-shadow: 0 1px 2px rgba(20,50,90,.04); }
.card:hover { box-shadow: 0 18px 40px -22px rgba(20,50,90,.28); }
.prose li:has(br) { box-shadow: 0 1px 2px rgba(20,50,90,.04); }
.prose li:has(br):hover { box-shadow: 0 14px 34px -22px rgba(20,50,90,.3); }
.hero h1, .page-hero h1, .section-head h2, .cta h2 { color: #003B5C; }
.portrait-card { background: linear-gradient(140deg, #ffffff, #cfe2f3 50%, #2774AE); }
.marquee-track span { color: rgba(37,77,122,.32); }
.marquee-track span::after { color: rgba(39,116,174,.55); }
.aurora i { opacity: .6; }
.cta { background: linear-gradient(180deg, #f3f7fb, #eaf2fa); }
.status, .chips span, .btn:not(.btn-primary) { background: #fff; }
.work .venue { background: #f0f6fb; color: #005587; }
.toolbar, .search { background: rgba(255,255,255,.92); }
.btn:not(.btn-primary):hover { background: #f0f6fb; }

/* ==========================================================================
   Academic mode: calm, static, no decoration
   ========================================================================== */
.reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
.aurora, .grid-bg, .scroll-hint, .marquee, .float-tag, .footer-word { display: none; }

.hero {
	min-height: 0;
	padding: 150px 0 72px;
	background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
	border-bottom: 1px solid var(--line);
}
.hero::after { display: none; }
.hero-inner { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
p.role {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .01em;
	color: #2774AE;
}
.hero h1 {
	font-size: clamp(44px, 6vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 700;
}
.hero-lede { margin-top: 22px; font-size: 18px; color: #4b5563; }
.hero-actions { margin-top: 30px; }
.hero-social { margin-top: 22px; }

.portrait { max-width: 300px; }
.portrait-card,
.portrait:hover .portrait-card {
	transform: none;
	padding: 0;
	border-radius: 14px;
	background: none;
	box-shadow: 0 1px 2px rgba(20,50,90,.06), 0 12px 32px -16px rgba(20,50,90,.28);
}
.portrait-card img { border-radius: 14px; }
.portrait-card::after { display: none; }

.btn, .btn:hover, .btn-primary, .btn-primary:hover { transform: none; }
.btn { height: 42px; padding: 0 18px; border-radius: 8px; font-size: 14.5px; }
.btn-primary, .btn-primary:hover { background: #005587; box-shadow: none; }
.btn-primary:hover { background: #003B5C; }
.nav-cta { border-radius: 8px; height: 36px; }
.nav-cta:hover { transform: none; box-shadow: none; background: #003B5C; }
.logo-mark { box-shadow: none; border-radius: 8px; }

.section { padding-top: 96px; }
.section-head { margin-bottom: 32px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-head h2, h2.plain-h {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: #003B5C;
}
.about { grid-template-columns: 220px 1fr; gap: 48px; }
.stats { margin-top: 56px; }
.stat .num { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.03em; color: #003B5C; }

.card::before { display: none; }
.card, .card:hover { transform: none; }
.card:hover { box-shadow: 0 1px 2px rgba(20,50,90,.04); border-color: var(--line-2); }
.card.feature { background: #fff; }
.feature-art { display: none; }
.bento .feature p, .bento .feature h3 { max-width: none; }
.bento .card { min-height: 0; padding: 28px; }
.bento h3 { margin-top: 22px; font-size: 20px; letter-spacing: -0.02em; }
.area-ico { border-radius: 10px; color: #005587; background: #f0f6fb; border-color: #d6e5f1; }

.work.lg h3 { font-size: clamp(22px, 2.4vw, 28px); }
.work h3 { font-size: 19px; }
.venue::before { background: #2774AE; }

.prose li:has(br):hover { transform: none; box-shadow: 0 1px 2px rgba(20,50,90,.04); }

.page-hero {
	padding: 140px 0 44px;
	background: linear-gradient(180deg, #f3f7fb 0%, #ffffff 100%);
}
.page-hero h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; color: #003B5C; font-weight: 700; }
.page-hero .lede { font-size: 17px; margin-top: 16px; }
.kicker::before { background: #2774AE; }

.contact { display: grid; gap: 0; padding: 8px 28px; }
.contact > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact > div:first-child { border-top: 0; }
.contact .lbl { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding-top: 2px; }

.footer { margin-top: 96px; }

@media (max-width: 980px) {
	.hero { padding: 120px 0 56px; }
	.hero-inner { grid-template-columns: 1fr; gap: 40px; }
	.portrait { margin-left: 0; max-width: 240px; order: -1; }
	.about { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
	.hero h1 { font-size: 42px; }
	.portrait { max-width: 160px; }
	.contact { padding: 4px 18px; }
	.contact > div { grid-template-columns: 1fr; gap: 4px; }
	.page-hero { padding: 110px 0 36px; }
}
.container.page-body { padding-top: 56px; }

/* ==========================================================================
   UCLA palette: Blue #2774AE, Darkest Blue #003B5C, Gold #FFD100
   ========================================================================== */
:root { --gold: #FFD100; --gold-dk: #FFB81C; }
::selection { background: rgba(255,209,0,.4); color: #003B5C; }

.logo-mark { background: #2774AE; color: #FFD100; }
.nav-links a.active::after { background: var(--gold); height: 3px; bottom: 2px; }
.nav-cta, .btn-primary { background: #2774AE !important; color: #fff !important; }
.nav-cta:hover, .btn-primary:hover { background: #005587 !important; }

.hero { border-top: 4px solid var(--gold); }
.page-hero { border-top: 4px solid var(--gold); }
p.role { color: #2774AE; }

.section-head { position: relative; }
.section-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 56px;
	height: 3px;
	background: var(--gold);
}
.kicker::before { background: var(--gold-dk); height: 2px; }

.prose ul > li::before, ul.timeline li::before { background: var(--gold-dk); }
.prose h3 { color: #2774AE; }
.prose h2 { color: #003B5C; }
.venue::before { background: var(--gold-dk); }
.area-ico { color: #2774AE; }

.badge, .prose font[color] {
	color: #6b5200 !important;
	background: #fff7d1 !important;
	border-color: #f5d55a !important;
}

.stat .num { color: #003B5C; }
.stats { border-top: 3px solid var(--gold); }
.contact { border-top: 3px solid var(--gold); }

/* three stats */
.stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
	.stats { grid-template-columns: repeat(3, 1fr); }
	.stat:nth-child(3) { border-left: 1px solid var(--line); }
	.stat:nth-child(n+3) { border-top: 0; }
}
@media (max-width: 640px) {
	.stats { grid-template-columns: 1fr; }
	.stat, .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
	.stat:first-child { border-top: 0; }
}

.x-ico { display: inline-block; width: .9em; height: .9em; margin-right: 6px; vertical-align: -0.1em; }

/* photo on the left, name on the right */
.hero-inner { grid-template-columns: 300px minmax(0, 1fr); }
.portrait { order: -1; justify-self: start; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }

/* research support logos */
.sponsors {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	margin-top: 28px;
}
.sponsor {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 96px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}
.sponsor img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; border-radius: 0; }
@media (max-width: 760px) { .sponsors { grid-template-columns: repeat(3, 1fr); } .sponsor { height: 80px; padding: 14px; } }
