/* =============================================
   COGVIS — Cognitive Vision Research Laboratory
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Variables ---- */
:root {
  /* Core palette — navy/slate */
  --black:     #0f172a;
  --dark:      #1e293b;
  --gray-900:  #1e293b;
  --gray-800:  #334155;
  --gray-700:  #475569;
  --gray-600:  #64748b;
  --gray-500:  #94a3b8;
  --gray-400:  #cbd5e1;
  --gray-300:  #e2e8f0;
  --gray-200:  #f1f5f9;
  --gray-150:  #f5f7fa;
  --gray-100:  #f8fafc;
  --gray-50:   #fafcff;
  --white:     #ffffff;

  /* Indigo accent */
  --indigo:        #4f46e5;
  --indigo-dark:   #4338ca;
  --indigo-faint:  #eef2ff;
  --indigo-border: #c7d2fe;

  /* Semantic aliases */
  --bg:            var(--white);
  --surface:       var(--white);
  --text:          var(--gray-900);
  --text-muted:    var(--gray-600);
  --text-light:    var(--gray-400);
  --border:        var(--gray-300);
  --border-soft:   var(--gray-200);
  --accent:        var(--indigo);
  --accent-faint:  var(--indigo-faint);

  --shadow-sm:     0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --shadow:        0 4px 20px rgba(15,23,42,.09);
  --shadow-lg:     0 12px 40px rgba(15,23,42,.13);
  --shadow-accent: 0 4px 16px rgba(79,70,229,.3);

  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', 'Courier New', monospace;
  --transition: 0.18s ease;
  --max-w:      1100px;
  --section-py: 88px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--black); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gray-700); }
ul { list-style: none; }
button { font-family: var(--font); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  line-height: 1.18;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { max-width: 72ch; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: var(--section-py) 0; }
.section-header { margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--indigo);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-desc { color: var(--text-muted); font-size: 1.02rem; max-width: 56ch; }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.badge-green  { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.badge-indigo { background: var(--indigo-faint); color: var(--indigo-dark); border-color: var(--indigo-border); }
.badge-sky    { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge-amber  { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.badge-purple { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }
.badge-rose   { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.badge-gray   { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-300); }
.badge-active { background: var(--indigo); color: var(--white); border-color: var(--indigo); }

/* ---- Venue Badges ---- */
.venue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.venue-cvpr    { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.venue-neurips { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.venue-iccv    { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }
.venue-eccv    { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }
.venue-miccai  { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.venue-arxiv   { background: #fefce8; color: #a16207; border-color: #fde68a; }
.venue-fg      { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.venue-acm     { background: #f0f9ff; color: #0369a1; border-color: #bae6fd; }
.venue-cviu    { background: #fdf4ff; color: #86198f; border-color: #f0abfc; }
.venue-lrec    { background: #f8fafc; color: #475569; border-color: #cbd5e1; }
.venue-eccvws  { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-primary {
  background: var(--indigo);
  color: var(--white);
  border-color: var(--indigo);
}
.btn-primary:hover {
  background: var(--indigo-dark);
  border-color: var(--indigo-dark);
  color: var(--white);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--black);
  color: var(--black);
}
.btn-ghost-white {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.18);
  color: var(--white);
}
.btn-sm  { padding: 6px 14px;  font-size: 0.8rem;  border-radius: 6px; }
.btn-xs  { padding: 4px 10px;  font-size: 0.74rem; border-radius: 5px; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-400);
  transform: translateY(-2px);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none !important;
  color: var(--black);
}
.nav-logo .cog { color: var(--black); }
.nav-logo .vis { color: var(--indigo); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--black);
  background: var(--gray-100);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--white);
  background: var(--black);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO (landing page)
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      #0f172a 0%,
      #0f172a 40%,
      rgba(15,23,42,.80) 60%,
      rgba(15,23,42,.25) 100%),
    url('https://images.unsplash.com/photo-1592530392525-9d8469678dac?auto=format&fit=crop&w=1920&q=85')
      right center / cover no-repeat;
  padding: 104px 0 84px;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 8% 55%, rgba(79,70,229,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(90deg, black 40%, transparent 70%);
  mask-image: linear-gradient(90deg, black 40%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  margin-bottom: 30px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,.55);
}
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.78;
  color: rgba(255,255,255,.6);
  margin-bottom: 36px;
  max-width: 60ch;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   RESEARCH AREAS
   ============================================= */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.area-card {
  background: var(--surface);
  padding: 32px 26px;
  transition: background var(--transition);
  position: relative;
}
.area-card::before { display: none; }
.area-card:hover { background: var(--gray-50); }
.area-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.area-icon { font-size: 1.6rem; margin-bottom: 14px; }
.area-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.area-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; max-width: none; }

/* =============================================
   PUBLICATIONS
   ============================================= */
.pub-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pub-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 24px;
  transition: background var(--transition);
}
.pub-item:last-child { border-bottom: none; }
.pub-item:hover { background: var(--gray-50); }
.pub-thumb {
  width: 82px;
  height: 82px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--gray-100);
  border: 1px solid var(--border-soft);
  color: var(--gray-500);
}
.pub-body { flex: 1; min-width: 0; }
.pub-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 6px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.pub-title a { color: inherit; }
.pub-title a:hover { color: var(--gray-600); }
.pub-authors {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.pub-authors strong { color: var(--text); font-weight: 600; }
.pub-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pub-links { display: flex; gap: 6px; align-items: flex-start; flex-shrink: 0; flex-wrap: wrap; }

/* =============================================
   NEWS
   ============================================= */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 72px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 3px;
  flex-shrink: 0;
}
.news-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  max-width: none;
}
.news-text a { font-weight: 600; color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.news-text a:hover { color: var(--gray-600); }

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e1b4b 100%);
  color: var(--white);
  padding: 68px 0 58px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 52px 52px;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  font-size: 0.7rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--white); margin-bottom: 12px; }
.page-header p { font-size: 1.02rem; color: rgba(255,255,255,.55); max-width: 52ch; }

/* =============================================
   PEOPLE
   ============================================= */
.pi-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  margin-bottom: 56px;
  display: flex;
  gap: 44px;
  align-items: flex-start;
}
.pi-photo-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.avatar-lg {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  background: var(--black);
}
.pi-social { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--gray-600);
  font-size: 0.8rem;
  text-decoration: none !important;
  transition: all var(--transition);
}
.icon-btn:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.pi-info { flex: 1; }
.pi-name { font-size: 1.8rem; margin-bottom: 4px; }
.pi-role { color: var(--gray-600); font-weight: 500; font-size: 0.92rem; margin-bottom: 18px; }
.pi-bio { font-size: 0.95rem; color: var(--text-muted); line-height: 1.78; margin-bottom: 20px; max-width: 65ch; }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.interest-tag {
  padding: 4px 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 500;
}
.pi-links { display: flex; gap: 8px; flex-wrap: wrap; }

.subsection-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-400);
  margin-bottom: 24px;
  margin-top: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.subsection-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.person-card {
  background: var(--surface);
  padding: 28px 20px 20px;
  text-align: center;
  transition: background var(--transition);
}
.person-card:hover { background: var(--gray-50); }
.avatar-md {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 16px;
  background: var(--gray-800);
}
.person-name { font-size: 0.975rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.person-role { font-size: 0.78rem; color: var(--gray-500); margin-bottom: 10px; }
.person-research { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.55; max-width: none; }
.person-links { display: flex; justify-content: center; gap: 8px; }

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.alumni-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  padding: 16px 20px;
  transition: background var(--transition);
}
.alumni-row:hover { background: var(--gray-50); }
.avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  background: var(--gray-700);
}
.alumni-info { flex: 1; }
.alumni-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.alumni-period { font-size: 0.75rem; color: var(--gray-500); }
.alumni-now { font-size: 0.75rem; color: var(--gray-700); margin-top: 2px; font-weight: 500; }

/* =============================================
   PROJECTS
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gray-400);
}
.project-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.project-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.project-title { font-size: 0.95rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.project-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; max-width: none; flex: 1; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.project-tag {
  padding: 3px 9px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--gray-600);
  font-weight: 500;
}
.project-foot { display: flex; justify-content: space-between; align-items: center; }

.projects-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.project-row {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  padding: 22px 24px;
  transition: background var(--transition);
}
.project-row:hover { background: var(--gray-50); }
.project-row-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  background: var(--gray-900);
}
.project-row-info { flex: 1; }
.project-row-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.project-row-desc { font-size: 0.82rem; color: var(--text-muted); max-width: none; }
.project-row-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 12px; }
.footer-logo .cog { color: var(--white); }
.footer-logo .vis { color: #818cf8; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,.35); line-height: 1.78; max-width: 30ch; }
.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.3);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,.25); }

/* =============================================
   PAPER PAGE (kept minimal — uses own template)
   ============================================= */
.paper-hero {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.paper-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
}
.paper-hero-inner { position: relative; z-index: 1; }
.paper-conf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.paper-title {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 30px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
  letter-spacing: -0.025em;
}
.paper-authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 8px;
}
.paper-author { font-size: 1rem; color: rgba(255,255,255,.85); }
.paper-author a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.paper-author a:hover { color: var(--white); }
.paper-author sup { font-size: 0.65em; color: rgba(255,255,255,.5); margin-left: 1px; }
.paper-affils {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-bottom: 36px;
}
.paper-affil { font-size: 0.85rem; color: rgba(255,255,255,.45); }
.paper-affil sup { font-size: 0.65em; color: rgba(255,255,255,.5); margin-right: 2px; }
.paper-link-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.paper-lbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: var(--white);
  text-decoration: none !important;
  transition: all var(--transition);
}
.paper-lbtn:hover { background: rgba(255,255,255,.16); color: var(--white); transform: translateY(-1px); }
.paper-lbtn.primary { background: var(--white); border-color: var(--white); color: var(--black); }
.paper-lbtn.primary:hover { background: var(--gray-100); border-color: var(--gray-100); color: var(--black); }

.paper-section { padding: 56px 0; }
.paper-section + .paper-section { border-top: 1px solid var(--border-soft); }
.paper-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}
.paper-section-title::before {
  content: '';
  width: 3px; height: 20px;
  background: var(--black);
  border-radius: 2px;
  flex-shrink: 0;
}
.paper-fig-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.paper-abstract {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 74ch;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.results-table thead { background: var(--gray-50); }
.results-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.results-table td { padding: 11px 16px; border-bottom: 1px solid var(--border-soft); }
.results-table tr:last-child td { border-bottom: none; }
.results-table tr.ours td {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--black);
}
.results-table tr.ours td:first-child { border-left: 3px solid var(--black); }
.table-caption { font-size: 0.84rem; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }

.bibtex-wrap { margin-top: 4px; }
.bibtex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: var(--font);
}
.copy-btn:hover { color: var(--black); border-color: var(--black); }
.bibtex-block {
  background: var(--black);
  color: rgba(255,255,255,.75);
  padding: 24px 28px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.75;
  overflow-x: auto;
}
.bibtex-block .k { color: rgba(255,255,255,.45); }
.bibtex-block .v { color: rgba(255,255,255,.75); }
.bibtex-block .s { color: rgba(255,255,255,.9); }

.ack-box {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  :root { --section-py: 72px; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .pi-wrap { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .interest-list, .pi-links { justify-content: center; }
}
@media (max-width: 640px) {
  :root { --section-py: 56px; }
  .area-grid,
  .people-grid,
  .projects-grid,
  .alumni-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .pub-item { flex-direction: column; }
  .pub-thumb { width: 100%; height: 90px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .pub-links { flex-direction: row; flex-wrap: wrap; }
  .hero-stats { gap: 28px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .pi-wrap { padding: 28px 20px; }
}
