/* ==========================================================================
   Swartling Lab — site stylesheet
   ========================================================================== */

:root {
	--bg: #f6f8fb;
	--bg-2: #edf1f6;
	--bg-3: #e2e8f0;
	--surface: #ffffff;
	--surface-2: #f4f7fa;
	--border: #dde4ed;
	--border-strong: #c3cddb;
	--heading: #0f1b2d;
	--text: #26364d;
	--text-2: #475769;
	--muted: #6a798e;
	--shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 10px 30px -18px rgba(15, 27, 45, .22);

	/* Two hemispheres of the logo: teal and steel blue, darkened for text on white */
	--accent: #1c8279;
	--accent-dark: #2f8f86;
	--accent-2: #3f5fc4;
	--accent-2-dark: #4a68c9;
	--grad: linear-gradient(90deg, var(--accent), var(--accent-2));

	--font-display: "Inter Tight", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

	--radius: 18px;
	--radius-sm: 10px;
	--max: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--nav-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--heading); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 .6em;
	color: var(--heading);
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.55rem); }
h4 { font-size: 1.08rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; color: var(--text-2); }

::selection { background: rgba(28, 130, 121, .2); color: var(--heading); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.grad-text { color: var(--accent); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-family: var(--font-mono);
	font-size: .76rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 1.2rem;
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: currentColor;
}
.eyebrow.violet { color: var(--accent-2); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--text-2); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--nav-h);
	transition: background .3s, border-color .3s, backdrop-filter .3s;
	border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
	background: rgba(246, 248, 251, .85);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border-bottom-color: var(--border);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand img { width: 34px; height: 34px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name small {
	display: block;
	font-family: var(--font-mono);
	font-size: .6rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 5px;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
	position: relative;
	display: block;
	padding: 8px 14px;
	font-size: .92rem;
	font-weight: 500;
	color: var(--text-2);
	border-radius: 999px;
	transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--heading); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--heading); }
.nav-links a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--accent);
}
.nav-links .nav-cta a {
	margin-left: 10px;
	color: var(--bg);
	background: var(--accent);
	font-weight: 600;
}
.nav-links .nav-cta a:hover { background: var(--heading); color: var(--heading); }

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--heading);
	cursor: pointer;
	position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 1.5px;
	margin-left: -9px;
	background: currentColor;
	transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.nav-links {
		position: fixed;
		top: var(--nav-h);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 12px var(--gutter) 24px;
		background: rgba(246, 248, 251, .98);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		border-bottom: 1px solid var(--border);
		transform: translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s, transform .3s var(--ease);
	}
	.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
	.nav-open .nav { background: rgba(246, 248, 251, .98); border-bottom-color: var(--border); }
	.nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
	.nav-links a[aria-current="page"] { background: var(--surface-2); }
	.nav-links a[aria-current="page"]::after { left: auto; right: 18px; top: 50%; bottom: auto; margin: -2px 0 0; }
	.nav-links .nav-cta a { margin: 10px 0 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	padding: 14px 24px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
	background: var(--accent);
	color: #fff;
}
.btn-primary:hover { color: var(--heading); background: var(--heading); transform: translateY(-1px); }
.btn-ghost { color: var(--heading); border-color: var(--border-strong); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { color: var(--heading); border-color: var(--accent); background: rgba(92, 184, 173, .07); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-weight: 600;
	font-size: .95rem;
	color: var(--accent);
}
.arrow-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translate(3px, -3px); }

/* --------------------------------------------------------------------------
   Backgrounds
   -------------------------------------------------------------------------- */

.grid-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(70, 130, 210, .10) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(70, 130, 210, .10) 1px, transparent 1px);
	background-size: 20px 20px;
	-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%);
}

/* Soft light that drifts slowly behind the hero areas */
.glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(110px);
	pointer-events: none;
	opacity: .22;
	animation: drift 30s ease-in-out infinite alternate;
}
.glow-a { background: radial-gradient(circle, rgba(47, 143, 134, .6), transparent 70%); }
.glow-b { background: radial-gradient(circle, rgba(74, 104, 201, .6), transparent 70%); animation-duration: 38s; animation-direction: alternate-reverse; }
@keyframes drift {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(9vw, 5vh) scale(1.15); }
	100% { transform: translate(-5vw, 9vh) scale(.92); }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--nav-h) + 48px) 0 96px;
	overflow: hidden;
	isolation: isolate;
}
.hero .glow-a { width: 640px; height: 640px; left: -200px; top: 5%; }
.hero .glow-b { width: 700px; height: 700px; right: -220px; bottom: -15%; }

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	align-items: center;
	gap: 48px;
}

.hero h1 { margin-bottom: .25em; }
.hero h1 .line { display: block; }
.hero .tagline {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	font-weight: 500;
	letter-spacing: -0.015em;
	color: var(--text);
	margin-bottom: 1rem;
}
.hero .lead { max-width: 560px; margin-bottom: 2.2rem; }

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin-top: 3rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--heading); margin-top: 4px; }

/* Large logo */
.brain-visual {
	position: relative;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 1;
	margin-left: auto;
	display: grid;
	place-items: center;
}
.brain-visual::before {
	content: "";
	position: absolute;
	inset: 4%;
	border-radius: 50%;
	border: 1px solid var(--border);
}
.brain-visual::after {
	content: "";
	position: absolute;
	inset: 14%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(92, 184, 173, .10), rgba(123, 155, 232, .06) 45%, transparent 70%);
}
.brain-visual .mark { position: relative; z-index: 1; width: 58%; height: auto; }

.scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	width: 24px;
	height: 38px;
	border: 1px solid var(--border-strong);
	border-radius: 999px;
}
.scroll-cue::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 8px;
	width: 3px;
	height: 8px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: var(--accent);
	animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
	.hero { min-height: auto; padding-top: calc(var(--nav-h) + 40px); }
	.hero-inner { grid-template-columns: 1fr; }
	.brain-visual { max-width: min(300px, 70vw); margin: 20px auto 0; }
	.scroll-cue { display: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section.alt { background: var(--bg-2); }
.section.tight { padding: clamp(56px, 7vw, 88px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.split {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.section-head.split > div { max-width: 680px; }
.section-head p { margin: 0; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); border: 0; margin: 0; }

/* Mission / approach */
.mission {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}
.mission h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.mission .sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.mission-figure {
	margin: 32px 0 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	position: relative;
	aspect-ratio: 16 / 10;
}
.mission-figure img { width: 100%; height: 100%; object-fit: cover; }
.mission-figure figcaption {
	position: absolute;
	left: 14px;
	bottom: 12px;
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(11, 18, 32, .7);
	padding: 5px 10px;
	border-radius: 6px;
}

.approach { display: grid; gap: 14px; }
.approach-item {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 18px;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.approach-item:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateX(4px); }
.approach-item .icon {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: linear-gradient(140deg, rgba(92, 184, 173, .14), rgba(123, 155, 232, .14));
	border: 1px solid var(--border);
	color: var(--accent);
}
.approach-item:nth-child(even) .icon { color: var(--accent-2); }
.approach-item .icon svg { width: 26px; height: 26px; }
.approach-item h3 { font-size: 1.12rem; margin-bottom: .35em; }
.approach-item p { margin: 0; font-size: .97rem; }
.mission-close {
	margin-top: 28px;
	padding: 22px 26px;
	border-left: 2px solid var(--accent);
	background: linear-gradient(90deg, rgba(92, 184, 173, .07), transparent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-family: var(--font-display);
	font-size: 1.15rem;
	line-height: 1.5;
	color: var(--heading);
}

@media (max-width: 900px) {
	.mission { grid-template-columns: 1fr; }
	.mission .sticky { position: static; }
}

/* Explore cards (bento) */
.bento {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-rows: 260px;
	gap: 16px;
}
.bento-card { grid-column: span 6; }
.bento-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.bento-card:nth-child(2) { grid-column: span 5; }
.bento-card:nth-child(3) { grid-column: span 5; }
.bento-card:nth-child(4) { grid-column: span 12; }

.card-media {
	position: relative;
	display: block;
	height: 100%;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--bg-3);
	color: #fff;
	isolation: isolate;
}
.card-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform 1s var(--ease), filter .6s;
	filter: saturate(1.05) brightness(.8);
}
.card-media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(11, 18, 32, .05) 20%, rgba(11, 18, 32, .9) 100%);
}
.card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(92, 184, 173, 0);
	transition: box-shadow .4s;
}
.card-media:hover { color: #fff; }
.card-media:hover img { transform: scale(1.06); filter: saturate(1.2) brightness(.9); }
.card-media:hover::after { box-shadow: inset 0 0 0 1px rgba(92, 184, 173, .55), 0 0 0 0 transparent; }

.card-media .card-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}
.card-media .tag {
	display: block;
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #9fe0d7;
	margin-bottom: 8px;
}
.card-media h3 { color: #fff; margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.card-media .go {
	flex: none;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .3);
	background: rgba(11, 18, 32, .4);
	backdrop-filter: blur(6px);
	transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.card-media .go svg { width: 18px; height: 18px; }
.card-media:hover .go { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: rotate(-45deg); }
.card-media .index {
	position: absolute;
	top: 20px;
	left: 24px;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: rgba(255, 255, 255, .7);
	letter-spacing: .1em;
}

@media (max-width: 900px) {
	.bento { grid-auto-rows: 240px; }
	.bento-card, .bento-card:nth-child(n) { grid-column: span 12; grid-row: auto; }
}

/* News + link panels */
.panel-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.panel {
	position: relative;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	overflow: hidden;
}
.panel h3 { margin-bottom: .5em; }

.news-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; }
.news-card .glow-b { width: 360px; height: 360px; right: -120px; top: -120px; opacity: .45; }
.news-card .badge-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.news-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 560px; }
.news-card h3 a { color: var(--heading); }
.news-card h3 a:hover { color: var(--accent); }
.news-card .url {
	display: block;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--muted);
	word-break: break-all;
	margin-bottom: 22px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	font-family: var(--font-mono);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	border-radius: 999px;
	color: var(--accent);
	background: rgba(92, 184, 173, .08);
	border: 1px solid rgba(92, 184, 173, .25);
}
.badge.violet { color: var(--accent-2); background: rgba(123, 155, 232, .08); border-color: rgba(123, 155, 232, .28); }
.badge.muted { color: var(--text-2); background: var(--surface-2); border-color: var(--border); }
.badge .pulse {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 0 currentColor;
	animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 184, 173, .6); } 100% { box-shadow: 0 0 0 10px rgba(92, 184, 173, 0); } }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--border); }
.link-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 2px;
	color: var(--heading);
	font-weight: 500;
}
.link-list a small {
	display: block;
	font-family: var(--font-mono);
	font-size: .72rem;
	font-weight: 400;
	color: var(--muted);
	margin-top: 2px;
	word-break: break-all;
}
.link-list a svg { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.link-list a:hover { color: var(--accent); }
.link-list a:hover svg { color: var(--accent); transform: translate(3px, -3px); }

.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.collab {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	min-height: 170px;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--heading);
	overflow: hidden;
	transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.collab::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(92, 184, 173, .12), transparent 45%);
	opacity: 0;
	transition: opacity .3s;
}
.collab:hover { color: var(--heading); border-color: var(--border-strong); transform: translateY(-4px); }
.collab:hover::before { opacity: 1; }
.collab .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; position: relative; }
.collab .kind {
	font-family: var(--font-mono);
	font-size: .68rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.collab svg { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.collab:hover svg { color: var(--accent); transform: translate(3px, -3px); }
.collab h4 { position: relative; margin: 0 0 4px; font-size: 1.2rem; }
.collab .host { position: relative; font-family: var(--font-mono); font-size: .75rem; color: var(--accent); word-break: break-all; }
.collab.featured {
	background: linear-gradient(140deg, rgba(92, 184, 173, .1), rgba(123, 155, 232, .12));
	border-color: rgba(123, 155, 232, .35);
}
.collab.featured .kind { color: var(--accent-2); }
.collab-grid .collab.featured:nth-child(3n+1):last-child { grid-column: 1 / -1; }

@media (max-width: 900px) {
	.panel-grid { grid-template-columns: 1fr; }
	.collab-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.collab-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-card {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: clamp(28px, 5vw, 64px);
	padding: clamp(26px, 4vw, 48px);
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
}
.contact-person { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start; }
.contact-person img { width: 96px; height: 120px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border-strong); }
.contact-person h3 { margin-bottom: .4em; }
.contact-person p { margin: 0; line-height: 1.6; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-cols h4 {
	margin: 0 0 12px;
	font-family: var(--font-mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}
.contact-cols p { color: var(--text); line-height: 1.65; margin-bottom: 14px; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.contact-lines a { color: var(--text); border-bottom: 1px dotted var(--border-strong); word-break: break-word; }
.contact-lines a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
	.contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.contact-cols { grid-template-columns: 1fr; }
	.contact-person { grid-template-columns: 72px 1fr; }
	.contact-person img { width: 72px; height: 90px; }
}

/* Location map band: flat street map with a pin at the lab (pin sits at 58% / 50% of the image) */
.map-band {
	position: relative;
	height: clamp(320px, 30vw, 460px);
	overflow: hidden;
	background: #15233a;
}
.map-img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.map-pin {
	position: absolute;
	left: 58%;
	top: 50%;
	width: 32px;
	height: 44px;
	transform: translate(-50%, -100%);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}
.map-pin svg { width: 100%; height: 100%; display: block; }
.map-card {
	position: absolute;
	left: calc(58% + 34px);
	top: 50%;
	transform: translateY(-62%);
	padding: 18px 22px;
	background: rgba(15, 27, 45, .92);
	color: #e8edf5;
	border-radius: 6px;
	box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
}
.map-card p { margin: 0 0 6px; color: #e8edf5; font-size: .95rem; line-height: 1.55; }
.map-card a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
}
.map-card a svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.map-card a:hover { color: #7fd3c9; }
.map-card a:hover svg { transform: translateX(3px); }
.map-credit {
	position: absolute;
	right: 10px;
	bottom: 8px;
	font-size: .7rem;
	color: rgba(232, 237, 245, .6);
}
.map-credit:hover { color: #fff; }

@media (max-width: 760px) {
	.map-band { height: 380px; }
	.map-card { left: 16px; right: 16px; top: auto; bottom: 36px; transform: none; }
}

/* --------------------------------------------------------------------------
   Page hero (subpages)
   -------------------------------------------------------------------------- */

.page-hero {
	position: relative;
	padding: calc(var(--nav-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px);
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid var(--border);
}
.page-hero .bg-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	opacity: .32;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, var(--bg) 30%, rgba(246, 248, 251, .7) 70%, rgba(246, 248, 251, .35)), linear-gradient(0deg, var(--bg), transparent 40%);
}
.page-hero .glow-a { width: 500px; height: 500px; left: -200px; top: -100px; opacity: .45; }
.page-hero .glow-b { width: 500px; height: 500px; right: 10%; bottom: -260px; opacity: .4; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: .3em; }
.page-hero .lead { max-width: 640px; margin-bottom: 0; }
.breadcrumb {
	display: flex;
	gap: 10px;
	align-items: center;
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: .08em;
	color: var(--muted);
	margin-bottom: 22px;
	text-transform: uppercase;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* --------------------------------------------------------------------------
   Research page
   -------------------------------------------------------------------------- */

.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.overview-card {
	position: relative;
	padding: clamp(26px, 3.4vw, 42px);
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	overflow: hidden;
}
.overview-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), transparent);
}
.overview-card:nth-child(2)::before { background: linear-gradient(90deg, var(--accent-2), transparent); }
.overview-card .num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; color: var(--muted); display: block; margin-bottom: 14px; text-transform: uppercase; }
.overview-card p:last-child { margin-bottom: 0; }

.keyword-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

@media (max-width: 900px) {
	.overview-grid { grid-template-columns: 1fr; }
}

.projects-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.toc h4 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 6px;
	padding: 10px 0 10px 16px;
	margin-left: -1px;
	border-left: 1px solid transparent;
	font-size: .88rem;
	line-height: 1.4;
	color: var(--muted);
	transition: color .2s, border-color .2s;
}
.toc a span { font-family: var(--font-mono); font-size: .75rem; padding-top: 1px; }
.toc a:hover { color: var(--heading); }
.toc a.is-active { color: var(--heading); border-left-color: var(--accent); }
.toc a.is-active span { color: var(--accent); }

.project {
	position: relative;
	padding: clamp(28px, 4vw, 48px);
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	margin-bottom: 20px;
}
.project-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.project-num {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 5vw, 3.6rem);
	font-weight: 600;
	line-height: .9;
	letter-spacing: -0.04em;
	color: var(--accent);
}
.project-head h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.project-head .eyebrow { margin-bottom: .6rem; }
.project h4 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 1.8em 0 .7em;
	color: var(--heading);
}
.project h4::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--accent-2);
}
.project p:last-child { margin-bottom: 0; }

.figure {
	margin: 28px 0;
	padding: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1px solid var(--border);
	background: #fff;
}
.figure img { margin: 0 auto; max-height: 640px; width: auto; }
.figure figcaption {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	background: var(--bg-3);
	border-top: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}
.figure figcaption b { color: var(--accent); font-weight: 500; }

.cite { color: var(--text); white-space: nowrap; }

@media (max-width: 900px) {
	.projects-layout { grid-template-columns: 1fr; }
	.toc { display: none; }
	.project-head { grid-template-columns: 1fr; gap: 10px; }
}

/* --------------------------------------------------------------------------
   Members page
   -------------------------------------------------------------------------- */

.team-banner {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	aspect-ratio: 2.67;
	margin: 0 0 clamp(56px, 8vw, 96px);
}
.team-banner img { width: 100%; height: 100%; object-fit: cover; }
.team-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(11, 18, 32, .55), transparent 45%);
}
.team-banner .badge { position: absolute; left: 20px; bottom: 18px; z-index: 1; background: rgba(11, 18, 32, .7); }

.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.group-head h2 { margin: 0; }
.group-head .count { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.member-group + .member-group { margin-top: clamp(64px, 8vw, 104px); }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.member-grid + .member-grid { margin-top: 16px; }
.member {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	transition: border-color .3s, transform .3s var(--ease);
}
.member:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.member .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.member .photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 22%;
	filter: grayscale(.25) contrast(1.02);
	transition: transform .8s var(--ease), filter .5s;
}
.member:hover .photo img { transform: scale(1.04); filter: none; }
.member .info { padding: 16px 18px 18px; }
.member h3 { font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.member .role { margin: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.avatar {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-size: 3rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	color: var(--heading);
	background:
		radial-gradient(circle at 30% 30%, rgba(92, 184, 173, .35), transparent 60%),
		radial-gradient(circle at 70% 75%, rgba(123, 155, 232, .4), transparent 60%),
		var(--bg-3);
}

.member.pi { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.member.pi .photo { aspect-ratio: auto; height: 100%; min-height: 280px; }
.member.pi .info { display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: linear-gradient(160deg, rgba(92, 184, 173, .07), rgba(123, 155, 232, .1)); }
.member.pi h3 { font-size: 1.5rem; }
.member.pi .pi-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: auto; }

@media (max-width: 560px) {
	.member-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.member-grid + .member-grid { margin-top: 12px; }
	.member.pi { grid-template-columns: 1fr; }
	.member.pi .photo { min-height: 0; aspect-ratio: 4 / 5; }
	.member .info { padding: 12px 14px 14px; }
	.member h3 { font-size: .95rem; }
	.member .role { font-size: .64rem; }
}

.collab-members .member .role { color: var(--accent-2); }

.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.alum {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 18px;
	align-items: center;
	padding: 18px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	transition: border-color .3s;
}
.alum:hover { border-color: var(--border-strong); }
.alum img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--border-strong); filter: grayscale(.3); }
.alum h3 { font-size: 1.05rem; margin: 0 0 3px; }
.alum p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--text-2); }
.alum .now { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }

@media (max-width: 560px) {
	.alumni-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Publications page
   -------------------------------------------------------------------------- */

.pub-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.search {
	position: relative;
	flex: 1 1 320px;
	max-width: 460px;
}
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.search input {
	width: 100%;
	padding: 14px 18px 14px 46px;
	font: inherit;
	font-size: .95rem;
	color: var(--heading);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	outline: none;
	transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); background: var(--surface-2); }
.pub-count { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

.pub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.pub {
	display: grid;
	grid-template-columns: 120px 1fr auto;
	gap: clamp(16px, 3vw, 40px);
	padding: 30px 0;
	border-bottom: 1px solid var(--border);
	transition: background .3s;
	position: relative;
}
.pub::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	height: 1px;
	width: 0;
	background: var(--grad);
	transition: width .6s var(--ease);
}
.pub:hover::before { width: 100%; }
.pub .year { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; color: var(--heading); line-height: 1; }
.pub .journal { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.pub h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin-bottom: .55em; line-height: 1.3; }
.pub .authors { margin: 0 0 6px; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.pub .authors b { color: var(--text); font-weight: 600; }
.pub .source { margin: 0; font-size: .9rem; color: var(--text-2); }
.pub .actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pill-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px;
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .06em;
	border-radius: 999px;
	border: 1px solid var(--border-strong);
	color: var(--text);
	white-space: nowrap;
	transition: border-color .2s, color .2s, background .2s;
}
.pill-link svg { width: 12px; height: 12px; }
.pill-link:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.pub[hidden] { display: none; }
.pub-empty { padding: 40px 0; color: var(--muted); text-align: center; }
.footnote { margin-top: 24px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }

@media (max-width: 760px) {
	.pub { grid-template-columns: 1fr; gap: 10px; }
	.pub .meta { display: flex; align-items: baseline; gap: 14px; }
	.pub .journal { margin: 0; }
	.pub .year { font-size: 1.4rem; }
	.pub .actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Career page
   -------------------------------------------------------------------------- */

.join-card {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 32px;
	align-items: center;
	padding: clamp(28px, 5vw, 56px);
	border-radius: calc(var(--radius) + 6px);
	background: linear-gradient(130deg, rgba(47, 143, 134, .16), rgba(74, 104, 201, .2));
	border: 1px solid rgba(123, 155, 232, .3);
	overflow: hidden;
	isolation: isolate;
}
.join-card .grid-bg { z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.join-card h2 { margin-bottom: .4em; }
.join-card p { margin: 0; font-size: 1.1rem; color: var(--text); max-width: 620px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #f5b04a; }

@media (max-width: 760px) {
	.join-card { grid-template-columns: 1fr; }
}

.affil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.affil {
	display: flex;
	flex-direction: column;
	gap: 20px;
	justify-content: space-between;
	padding: 28px;
	min-height: 200px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--heading);
	transition: border-color .3s, transform .3s var(--ease);
}
.affil:hover { color: var(--heading); border-color: var(--border-strong); transform: translateY(-4px); }
.affil h3 { margin: 0 0 6px; font-size: 1.3rem; }
.affil p { margin: 0; color: var(--text-2); }
.affil .top { display: flex; justify-content: space-between; align-items: center; }
.affil .top img { height: 44px; width: auto; opacity: .9; }
.affil .top svg { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.affil:hover .top svg { color: var(--accent); transform: translate(3px, -3px); }

@media (max-width: 760px) {
	.affil-grid { grid-template-columns: 1fr; }
}

.funder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.funder {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	padding: 26px 24px 20px;
	min-height: 190px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-2);
	transition: border-color .3s, background .3s;
}
.funder:hover { color: var(--heading); border-color: var(--border-strong); background: var(--surface-2); }
.funder .logo { flex: 1; display: grid; place-items: center; }
.funder .logo img {
	max-height: 70px;
	max-width: 100%;
	width: auto;
	filter: brightness(0);
	opacity: .6;
	transition: opacity .3s;
}
.funder:hover .logo img { opacity: .9; }
.funder span { font-size: .85rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.funder span svg { width: 14px; height: 14px; flex: none; }

@media (max-width: 900px) {
	.funder-grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   CTA band & footer
   -------------------------------------------------------------------------- */

.cta-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
	padding: clamp(72px, 10vw, 120px) 0;
	border-top: 1px solid var(--border);
}
.cta-band .glow-a { width: 480px; height: 480px; left: 15%; top: -200px; }
.cta-band .glow-b { width: 480px; height: 480px; right: 15%; bottom: -220px; }
.cta-band h2 { max-width: 760px; margin-inline: auto; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }

.footer {
	position: relative;
	border-top: 1px solid var(--border);
	background: var(--bg);
	padding: 64px 0 32px;
	font-size: .92rem;
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand { margin-bottom: 16px; }
.footer p { color: var(--muted); max-width: 360px; font-size: .92rem; }
.footer h4 { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--text-2); }
.footer li a:hover { color: var(--accent); }
.footer address { font-style: normal; color: var(--text-2); line-height: 1.7; }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: .04em;
	color: var(--muted);
}
.uu-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); }
.uu-link img { width: 40px; height: 40px; opacity: .85; transition: opacity .2s; }
.uu-link:hover { color: var(--heading); }
.uu-link:hover img { opacity: 1; }

@media (max-width: 760px) {
	.footer-top { grid-template-columns: 1fr 1fr; }
	.footer-top > :first-child { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: .4s; }
.js .reveal-stagger.is-in > *:nth-child(n+7) { transition-delay: .46s; }

/* Reduced motion: keep the slow background drift, drop scroll-in effects and smooth scrolling */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Light theme: cards sit on white with a soft shadow */
.approach-item, .panel, .collab, .overview-card, .project, .member, .alum, .contact-card, .affil, .funder, .join-card { box-shadow: var(--shadow); }
.uu-link img, .affil .top img { filter: brightness(0); opacity: .75; }
