/* =========================================================================
   PseudoWorld project page
   Palette and glass styles follow the WayPOP page; class accents follow the
   Occ3D colors used in the paper figures.
   ========================================================================= */

:root {
	--hero: #0b1f3a;
	--hero-glow: #2a63a8;
	--brand-50: #edf0fa;
	--brand-100: #d6daea;
	--brand-200: #adb6d6;
	--brand-300: #8591c2;
	--brand-400: #5c6dae;
	--brand-500: #34499a;
	--brand-800: #0d135d;
	--ink: #2a2a2a;
	--ink-muted: #6a6a6a;
	--line: #e3e6ef;

	/* Occ3D class colors from the figures */
	--c-drive: #00cfbf;
	--c-car: #ff9e00;
	--c-veg: #00af00;
	--c-manmade: #debe87;
	--c-bus: #ff7f50;

	/* Stage colors from the overview figure */
	--st-purple: #9c6fb5;
	--st-blue: #4a7fd0;
	--st-green: #5fae5f;
	--st-orange: #e09a3a;
	--st-red: #d0453a;

	--radius: 18px;
	--shadow: 0 1px 2px rgba(16, 24, 64, .06), 0 12px 32px -12px rgba(16, 24, 64, .18);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--brand-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 750; color: #111833; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }

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

.section { padding: 88px 0; }
.section-tint { background: var(--brand-50); }
.section-dark {
	background: radial-gradient(ellipse at top, #16335c 0%, var(--hero) 65%);
	color: #fff;
}
.section-dark h2 { color: #fff; }

.eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--brand-400);
	margin-bottom: .6rem;
}
.section-dark .eyebrow { color: var(--brand-200); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-muted); margin-top: 1rem; }

/* ------------------------------------------------------------------ */
/* Glass (from WayPOP)                                                 */
/* ------------------------------------------------------------------ */
.glass {
	background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
	-webkit-backdrop-filter: blur(28px) saturate(160%);
	backdrop-filter: blur(28px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .14);
	box-shadow:
		inset 0 1px rgba(255, 255, 255, .45),
		inset 0 -1px rgba(255, 255, 255, .08),
		inset 1px 0 rgba(255, 255, 255, .15),
		0 20px 60px -15px rgba(0, 0, 0, .45);
}

.glass-pill {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .62rem 1.25rem;
	border-radius: 999px;
	color: #fff;
	font-weight: 500;
	font-size: 1rem;
	text-decoration: none;
	background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .18);
	box-shadow: inset 0 1px rgba(255, 255, 255, .5), 0 6px 18px -6px rgba(0, 0, 0, .35);
	transition: transform .2s, background-color .2s, box-shadow .2s;
}
.glass-pill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .45), transparent 60%);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.glass-pill:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 1px rgba(255, 255, 255, .55), 0 10px 24px -8px rgba(0, 0, 0, .45); }
.glass-pill:hover::after { opacity: 1; }
.glass-pill i { font-size: .95em; }
.glass-pill small { opacity: .7; font-size: .78em; }
.glass-pill.is-disabled { cursor: default; opacity: .7; }
.glass-pill.is-disabled:hover { transform: none; }

/* ------------------------------------------------------------------ */
/* Top nav                                                             */
/* ------------------------------------------------------------------ */
.topnav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	background: rgba(11, 31, 58, .82);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	backdrop-filter: blur(16px) saturate(160%);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transform: translateY(-100%);
	transition: transform .3s ease;
}
.topnav.is-visible { transform: none; }
.topnav-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 24px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.topnav-brand {
	font-weight: 800;
	color: #fff;
	text-decoration: none;
	background: linear-gradient(90deg, #9ff0e6, #d9ccff 50%, #a98bff);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.topnav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topnav-links a {
	color: var(--brand-100);
	text-decoration: none;
	font-size: .9rem;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background .2s, color .2s;
}
.topnav-links a:hover,
.topnav-links a.is-current { color: #fff; background: rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--hero);
	color: #fff;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hero-bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
	user-select: none;
	background: var(--hero) url("../images/hero/hero_nuscenes.webp") center / cover no-repeat;
}
.hero-tint { position: absolute; inset: 0; background: rgba(11, 31, 58, .45); }
.hero-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at top, var(--hero-glow), transparent 70%);
	opacity: .45;
}

.hero-content { position: relative; padding: 32px 24px 96px; max-width: 1040px; margin: 0 auto; width: 100%; }

.hero-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 32px; }
.hero-logos .logo-ufr { height: 72px; width: auto; }
.hero-logos .logo-ellis { height: 54px; width: auto; }

.hero-card {
	margin-top: 44px;
	border-radius: 28px;
	padding: 52px 40px 44px;
	text-align: center;
}

.hero-title {
	font-size: clamp(3.2rem, 9vw, 5.4rem);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.05;
	padding-bottom: .1em;
	background: linear-gradient(90deg, #9ff0e6 0%, #d9ccff 50%, #a98bff 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.hero-subtitle {
	margin: 12px auto 0;
	max-width: 720px;
	font-size: clamp(1.25rem, 2.6vw, 1.8rem);
	font-weight: 500;
	line-height: 1.35;
	text-wrap: balance;
}
.hero-authors { margin: 30px 0 0; font-size: 1.15rem; }
.hero-authors a { color: #fff; text-decoration: none; transition: color .2s; white-space: nowrap; }
.hero-authors a:hover { color: #a6a8ff; }
.hero-authors .dot { color: var(--brand-200); margin: 0 .7rem; visibility: hidden; } /* keeps the spacing, hides the dot */
.hero-affil { margin: 4px 0 0; color: var(--brand-100); font-size: 1rem; }

.hero-buttons { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .75);
	font-size: 1.2rem;
	animation: bob 2.2s ease-in-out infinite;
}
.hero-scroll:hover { color: #fff; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ------------------------------------------------------------------ */
/* Overview / teaser                                                   */
/* ------------------------------------------------------------------ */
.lead {
	max-width: 840px;
	margin: 0 auto 64px;
	text-align: center;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	line-height: 1.55;
	color: #3a3f55;
}
.lead strong { color: var(--brand-500); }
.lead:last-child { margin-bottom: 0; }

.teaser-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
}
.teaser-text h2 { margin-bottom: 1rem; }
.teaser-text p { color: #444a5e; }
.teaser-media { max-width: 440px; justify-self: center; }

.legend-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.chip-muted { background: #eef0f4; color: #555; }
.chip-brand { background: var(--brand-500); color: #fff; }

.stats {
	margin: 64px 0 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.stat {
	display: flex;
	flex-direction: column;
	padding: 22px 20px;
	border-radius: 16px;
	background: var(--brand-50);
	text-align: center;
	transition: transform .25s, box-shadow .25s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat dd {
	order: -1;
	margin: 0 0 4px;
	font-size: 2.1rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--brand-500);
}
.stat dt { font-size: .88rem; line-height: 1.4; color: var(--ink-muted); }

/* ------------------------------------------------------------------ */
/* Media cards                                                         */
/* ------------------------------------------------------------------ */
.media-card {
	margin: 0;
	background: #fff;
	border-radius: var(--radius);
	padding: 10px;
	box-shadow: var(--shadow);
	outline: 1px solid var(--brand-100);
	outline-offset: -1px;
}
.media-card video,
.media-card img { width: 100%; height: auto; border-radius: 10px; }
.media-card figcaption { padding: 12px 8px 4px; font-size: .9rem; line-height: 1.5; color: var(--ink-muted); }
.media-card figcaption strong { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Abstract                                                            */
/* ------------------------------------------------------------------ */
.abstract { margin-top: 1.2rem; text-align: justify; hyphens: auto; color: #3a3f55; }

/* ------------------------------------------------------------------ */
/* Method                                                              */
/* ------------------------------------------------------------------ */
.figure-card {
	margin: 0 0 56px;
	background: #fff;
	border-radius: var(--radius);
	padding: 16px;
	box-shadow: var(--shadow);
	outline: 1px solid var(--brand-100);
	outline-offset: -1px;
}
.figure-card figcaption { margin: 14px 8px 4px; color: var(--ink-muted); font-size: .93rem; text-align: center; }

.zoomable {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.zoomable img { width: 100%; height: auto; }
.zoom-hint {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(11, 31, 58, .75);
	color: #fff;
	font-size: .82rem;
	font-weight: 500;
	opacity: 0;
	transition: opacity .2s;
}
.zoomable:hover .zoom-hint,
.zoomable:focus-visible .zoom-hint { opacity: 1; }

.stage {
	position: relative;
	border-radius: 24px;
	padding: 34px 30px 30px;
	margin-bottom: 32px;
}
.stage-1 { background: linear-gradient(160deg, #f3f0fa 0%, #edf2fc 45%, #eef7ee 100%); }
.stage-2 { background: linear-gradient(160deg, #fdf4e6 0%, #fcefe9 100%); }
.stage-label {
	font-weight: 700;
	font-size: 1.15rem;
	margin-bottom: 22px;
	color: #1c2440;
}
.stage-label span {
	display: inline-block;
	margin-right: 10px;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	background: var(--brand-500);
	vertical-align: 2px;
}
.stage-2 .stage-label span { background: var(--st-orange); }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-grid-2 { grid-template-columns: repeat(2, 1fr); }

.step {
	--accent: var(--brand-500);
	background: rgba(255, 255, 255, .85);
	border-radius: 16px;
	padding: 20px 20px 16px;
	border-top: 4px solid var(--accent);
	box-shadow: 0 1px 2px rgba(16, 24, 64, .05);
	transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step h3 { margin: 12px 0 8px; font-size: 1.02rem; }
.step p { font-size: .9rem; line-height: 1.55; color: #4a5064; margin: 0; }
.step-icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	color: #fff;
	background: var(--accent);
}
.step-purple { --accent: var(--st-purple); }
.step-blue { --accent: var(--st-blue); }
.step-green { --accent: var(--st-green); }
.step-orange { --accent: var(--st-orange); }
.step-red { --accent: var(--st-red); }

/* Interactive Stage 1: cards open their visualization panel */
.stage-hint { margin: -10px 0 16px; font-size: .88rem; color: var(--ink-muted); }
.stage-hint i { color: var(--brand-400); margin-right: 4px; }

button.step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	border-left: 0;
	border-right: 0;
	border-bottom: 0;
	outline: 2px solid transparent;
	outline-offset: -2px;
	transition: transform .25s, box-shadow .25s, outline-color .25s, background-color .25s;
}
button.step:focus-visible { outline-color: var(--accent); }
button.step.is-open {
	background: #fff;
	outline-color: var(--accent);
	box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}
button.step.is-open::after {
	/* small pointer from the open card down to its panel */
	content: "";
	position: absolute;
	left: 50%;
	bottom: -9px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-right: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: translateX(-50%) rotate(45deg);
}
.step-num {
	position: absolute;
	top: 18px;
	right: 18px;
	font-size: .78rem;
	font-weight: 700;
	color: var(--accent);
	opacity: .55;
}
.step-toggle {
	margin-top: auto;
	padding-top: 12px;
	font-size: .82rem;
	font-weight: 600;
	color: var(--accent);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.step-toggle i { transition: transform .25s; font-size: .75rem; }
button.step.is-open .step-toggle i { transform: rotate(180deg); }

.step-panels { margin-top: 22px; }
.step-panel {
	--accent: var(--brand-500);
	background: #fff;
	border-radius: 20px;
	padding: 22px;
	border-top: 4px solid var(--accent);
	box-shadow: var(--shadow);
	animation: panelIn .35s ease;
}
.step-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.step-panel .media-card { box-shadow: none; }
.panel-caption { margin: 14px 4px 0; font-size: .93rem; color: var(--ink-muted); text-align: center; }
.panel-narrow { max-width: 760px; margin: 0 auto; }

.recon-flow {
	display: grid;
	grid-template-columns: 1.55fr auto 1fr;
	gap: 14px;
	align-items: center;
}
.flow-arrow {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--st-purple);
	font-size: .78rem;
	font-weight: 700;
	white-space: nowrap;
}
.flow-arrow i { font-size: 1.4rem; }

.mgl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.tag-grey { background: #b9bcc4; color: #222; }

/* Time stepper for the static-consistency stills */
.stepper-frame { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1600 / 1000; }
.stepper-frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
	opacity: 0;
	transition: opacity .35s ease;
}
.stepper-frame img.is-active { opacity: 1; }
.stepper-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 0 0 16px; }
.stepper-label { font-size: .8rem; font-weight: 600; color: var(--ink-muted); margin-right: 6px; }
.stepper-buttons button {
	font: inherit;
	font-size: .82rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--brand-100);
	background: #fff;
	color: var(--brand-500);
	transition: background .2s, color .2s;
}
.stepper-buttons button.is-active { background: var(--st-red); border-color: var(--st-red); color: #fff; }

.vox-layout { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 28px; align-items: center; }
.vox-text h4 { margin: 0 0 8px; font-size: 1.1rem; color: #1c2440; }
.vox-text p { font-size: .93rem; color: #4a5064; }

.stage-note { margin: 20px 4px 0; font-size: .92rem; color: #5a5f70; }
.stage-note i { color: var(--st-orange); margin-right: 4px; }

.tag { font-weight: 600; padding: 1px 8px; border-radius: 6px; font-size: .85em; }
.tag-red { background: #e5332a; color: #fff; }
.tag-yellow { background: #f6ea3d; color: #333; }

/* Before / after comparison */
.compare {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	user-select: none;
	touch-action: pan-y;
}
.compare img { width: 100%; height: auto; border-radius: 0 !important; }
.compare .compare-top {
	position: absolute;
	inset: 0;
	height: 100%;
	clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 3px;
	margin-left: -1.5px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 0 12px rgba(0, 0, 0, .3);
	pointer-events: none;
}
.compare-handle i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #fff;
	color: var(--brand-500);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.compare input[type="range"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}
.compare-tag {
	position: absolute;
	top: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(11, 31, 58, .78);
	color: #fff;
	font-size: .78rem;
	font-weight: 600;
	pointer-events: none;
}
.compare-tag-l { left: 10px; }
.compare-tag-r { right: 10px; background: var(--brand-500); }

/* ------------------------------------------------------------------ */
/* Video                                                               */
/* ------------------------------------------------------------------ */
.video-wrap { max-width: 980px; margin: 0 auto; }
.video-frame {
	border-radius: 20px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }

.chapters { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chapter {
	font: inherit;
	font-size: .86rem;
	font-weight: 500;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(255, 255, 255, .07);
	transition: background .2s, border-color .2s, transform .2s;
}
.chapter span { font-variant-numeric: tabular-nums; color: var(--brand-200); font-size: .8rem; }
.chapter:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.chapter.is-current { background: #fff; color: var(--hero); border-color: #fff; }
.chapter.is-current span { color: var(--brand-400); }

/* ------------------------------------------------------------------ */
/* Results gallery                                                     */
/* ------------------------------------------------------------------ */
.gallery { max-width: 1000px; margin: 0 auto; }
.tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 22px;
}
.tab {
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--brand-100);
	background: #fff;
	color: var(--brand-500);
	transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.tab i { margin-right: 4px; opacity: .8; }
.tab:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.tab.is-active { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }

.slides { position: relative; }

/* Data collection vehicle placed under the camera view, as in the presentation video */
.car-overlay { position: relative; }
.car-overlay img {
	position: absolute;
	left: 10.06%;
	top: 47.6%;
	width: 14.34% !important;
	height: auto;
	border-radius: 0 !important;
	pointer-events: none;
}
.slide { margin: 0; display: none; }
.slide.is-active { display: block; animation: fadeIn .35s ease; }
.slide figcaption { max-width: 820px; margin: 16px auto 0; text-align: center; color: var(--ink-muted); font-size: .95rem; }
.slide figcaption strong { color: var(--ink); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */
.quant-head { margin-top: 96px; }

.table-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-bottom: 20px; }
.table-grid > *, .teaser-grid > *, .recon-flow > *, .vox-layout > *, .mgl-grid > *, .step-grid > * { min-width: 0; }
.table-card {
	background: #fff;
	border-radius: var(--radius);
	padding: 24px 24px 18px;
	box-shadow: var(--shadow);
	outline: 1px solid var(--brand-100);
	outline-offset: -1px;
}
.table-card h3 { font-size: 1.05rem; }
.table-sub { margin: 4px 0 14px; font-size: .84rem; color: var(--ink-muted); }
.table-note { margin: 12px 0 0; font-size: .84rem; color: var(--ink-muted); }
.table-wide { margin-bottom: 20px; }
.table-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; text-align: center; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { font-weight: 650; color: #1c2440; border-bottom: 2px solid var(--brand-100); }
thead th.span { border-bottom: 1px solid var(--brand-100); }
tbody tr { border-bottom: 1px solid #f0f1f6; }
tbody tr:last-child { border-bottom: 0; }
tbody tr.group td {
	text-align: left;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--brand-400);
	padding-top: 14px;
}
tbody tr.muted td { color: #9a9eab; }
tbody tr.ours { background: linear-gradient(90deg, rgba(52, 73, 154, .1), rgba(52, 73, 154, .04)); }
tbody tr.ours td:first-child { font-weight: 650; color: var(--brand-500); box-shadow: inset 3px 0 var(--brand-500); }
td.yes { color: #2f9a55; }
td.no { color: #c64a4a; }
tr.muted td.yes, tr.muted td.no { opacity: .6; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--brand-50); }
.seg-btn {
	font: inherit;
	font-size: .82rem;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	padding: 6px 14px;
	border-radius: 999px;
	background: transparent;
	color: var(--brand-400);
	transition: background .2s, color .2s;
}
.seg-btn.is-active { background: #fff; color: var(--brand-500); box-shadow: 0 1px 4px rgba(16, 24, 64, .12); }

/* ------------------------------------------------------------------ */
/* Code                                                                */
/* ------------------------------------------------------------------ */
.code-card {
	display: flex;
	gap: 28px;
	align-items: center;
	background: #fff;
	border-radius: 24px;
	padding: 34px 36px;
	box-shadow: var(--shadow);
}
.code-card h2 { margin-bottom: .5rem; }
.code-card p { margin: 0; color: var(--ink-muted); }
.code-icon {
	flex: none;
	width: 84px;
	height: 84px;
	border-radius: 22px;
	display: grid;
	place-items: center;
	font-size: 2.6rem;
	color: #fff;
	background: linear-gradient(135deg, var(--brand-500), var(--hero));
}

/* ------------------------------------------------------------------ */
/* Citation                                                            */
/* ------------------------------------------------------------------ */
.pub-card {
	margin: 1.4rem 0 1.2rem;
	padding: 22px 24px;
	border-left: 4px solid var(--brand-500);
	border-radius: 0 14px 14px 0;
	background: var(--brand-50);
}
.pub-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; color: #111833; }
.pub-authors { margin: 0 0 2px; color: #3a3f55; }
.pub-venue { margin: 0; color: var(--ink-muted); }
.cite-note { color: var(--ink-muted); font-size: .95rem; }

.bibtex { position: relative; }
.bibtex pre {
	margin: 0;
	padding: 22px 24px;
	border-radius: 14px;
	background: var(--hero);
	color: #dfe6f5;
	font-size: .86rem;
	line-height: 1.6;
	overflow-x: auto;
}
.copy-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	font: inherit;
	font-size: .8rem;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .2);
	background: rgba(255, 255, 255, .1);
	transition: background .2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .22); }
.copy-btn.is-done { background: #2f9a55; border-color: #2f9a55; }

/* ------------------------------------------------------------------ */
/* Authors                                                             */
/* ------------------------------------------------------------------ */
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.author {
	width: 240px;
	padding: 28px 20px 22px;
	border-radius: 20px;
	background: #fff;
	text-align: center;
	text-decoration: none;
	color: var(--ink);
	box-shadow: var(--shadow);
	transition: transform .25s, box-shadow .25s;
}
.author:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 20px 40px -16px rgba(16, 24, 64, .35); }
.author img {
	width: 128px;
	height: 128px;
	margin: 0 auto 16px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--brand-200);
	transition: box-shadow .25s;
}
.author:hover img { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--brand-500); }
.author h3 { font-size: 1.05rem; color: #111833; }
.author p { margin: 4px 0 0; font-size: .88rem; color: var(--ink-muted); }

/* ------------------------------------------------------------------ */
/* Acknowledgment & footer                                             */
/* ------------------------------------------------------------------ */
.ack { margin-top: 1.2rem; color: #4a5064; font-size: .95rem; text-align: justify; hyphens: auto; }

.footer { background: var(--hero); color: var(--brand-100); padding: 48px 0 40px; text-align: center; font-size: .9rem; }
.footer a { color: #fff; }
.footer-logo { height: 52px; width: auto; margin: 0 auto 20px; opacity: .9; }
.footer p { margin: 0 0 .6rem; }

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */
.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 3vh 3vw;
	border: 0;
	background: transparent;
	overflow: auto;
}
.lightbox::backdrop { background: rgba(8, 16, 32, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 94vh; border-radius: 10px; background: #fff; cursor: zoom-out; }
.lightbox-close {
	position: fixed;
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25);
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                       */
/* ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.hero-scroll { animation: none; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 980px) {
	.step-grid { grid-template-columns: repeat(2, 1fr); }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.table-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.section { padding: 64px 0; }
	.teaser-grid { grid-template-columns: 1fr; gap: 32px; }
	.recon-flow { grid-template-columns: 1fr; }
	.flow-arrow { flex-direction: row; justify-content: center; }
	.flow-arrow i { transform: rotate(90deg); }
	.vox-layout { grid-template-columns: 1fr; }
	.mgl-grid { grid-template-columns: 1fr; }
	.vox-layout .media-card { max-width: 360px; margin: 0 auto; }
	.hero-card { padding: 40px 20px 32px; border-radius: 22px; }
	.hero-logos .logo-ufr { height: 44px; }
	.hero-logos .logo-ellis { height: 34px; }
	.hero-content { padding: 24px 16px 80px; }
	.hero-card { margin-top: 28px; }
	.hero-title { font-size: clamp(2.4rem, 13vw, 3.4rem); }
	.hero-authors .dot { margin: 0 .4rem; }
	.stage { padding: 26px 16px 18px; }
	.code-card { flex-direction: column; text-align: center; padding: 28px 22px; }
	.topnav-brand { display: none; }
}

@media (max-width: 520px) {
	.step-grid, .step-grid-2 { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.stat dd { font-size: 1.7rem; }
	.glass-pill { padding: .55rem 1rem; font-size: .95rem; }
}
