/* ================================================================
   AI-ISA Research Group — Main Stylesheet
   Palette: white/light-grey base + blue accent (#2563EB)
   ================================================================ */

/* ── Custom properties ──────────────────────────────────────────── */
:root {
  --blue:        #3a5aad;
  --blue-dark:   #1a2a5e;
  --blue-accent: #4a7fe8;
  --blue-light:  #EEF3FB;
  --blue-mid:    #b8ccf0;
  --teal:        #3a9abf;
  --grey-100:    #F8FAFC;
  --grey-200:    #F1F5F9;
  --grey-300:    #E2E8F0;
  --grey-400:    #CBD5E1;
  --grey-600:    #475569;
  --grey-700:    #334155;
  --grey-900:    #0F172A;
  --white:       #FFFFFF;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius:    0.5rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(26,42,94,.14), 0 4px 8px rgba(0,0,0,.06);

  --nav-h: 88px;
  --section-gap: 6rem;
  --container: 1200px;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography helpers ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; }
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--grey-900);
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--grey-600);
  max-width: 60ch;
}

/* ── Layout helpers ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: var(--section-gap) 0; }
.section-header { margin-bottom: 3rem; }
.section-header .eyebrow { margin-bottom: .5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-white-outline {
  border: 2px solid rgba(255,255,255,.55);
  color: var(--white);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.85);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.btn-ghost:hover { gap: .6rem; }

/* ── Badges / Tags ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-blue     { background: var(--blue-light); color: var(--blue-dark); }
.badge-teal     { background: #F0F9FF; color: #0369A1; }
.badge-green    { background: #F0FDF4; color: #15803D; }
.badge-amber    { background: #FFFBEB; color: #B45309; }
.badge-purple   { background: #F5F3FF; color: #6D28D9; }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-300);
  z-index: 1000;
  transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-text strong {
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: .02em;
}
.nav-logo-text span {
  font-size: .72rem;
  font-weight: 400;
  color: var(--grey-500);
  letter-spacing: .03em;
}
.nav-logo-img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  padding: .45rem .75rem;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 500;
  color: var(--grey-700);
  transition: all .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}
.nav-cta {
  margin-left: .5rem;
  padding: .45rem 1.1rem !important;
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--blue-dark) !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--grey-700);
  border-radius: 2px;
  transition: all .3s;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: .25rem;
  z-index: 999;
  box-shadow: var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: .65rem .75rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--grey-700);
  transition: all .15s;
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--blue);
  background: var(--blue-light);
}
.nav-mobile .nav-cta {
  margin-top: .5rem;
  background: var(--blue) !important;
  color: var(--white) !important;
  text-align: center;
}

/* ── Page offset for fixed nav ───────────────────────────────────── */
.page-body { padding-top: var(--nav-h); }

/* ── Hero (inner pages) ──────────────────────────────────────────── */
.page-hero {
  background-color: #eef2fc;
  background-image:
    url('../assets/images/bg-pixels.svg'),
    linear-gradient(135deg, #e8eeff 0%, #f5f8ff 60%, #eef6ff 100%);
  background-size: 72px 72px, 100%;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--grey-300);
}
.page-hero .eyebrow { margin-bottom: .6rem; color: var(--blue); }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--grey-900);
  margin-bottom: .75rem;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--grey-600);
  max-width: 55ch;
}

/* ── Home Hero ───────────────────────────────────────────────────── */
.home-hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background-color: #f4f7ff;
  background-image:
    url('../assets/images/bg-neural.svg'),
    linear-gradient(140deg, #eef2ff 0%, #f8faff 50%, #f0f6ff 100%);
  background-size: 300px 300px, 100%;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(74,127,232,.10) 0%, transparent 65%);
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(58,90,173,.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}
.hero-eyebrow { margin-bottom: 1rem; }
.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--grey-900);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: normal;
  color: var(--blue);
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--grey-600);
  max-width: 64ch;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-300);
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: var(--grey-600);
  font-weight: 500;
  margin-top: .2rem;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.hero-graphic,
.hero-logo-card {
  width: 100%;
  max-width: 800px;
  background: var(--white);
  border-radius: 2rem;
  border-top: 4px solid var(--blue);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 60px rgba(26,42,94,.14),
    0 6px 16px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}
.hero-logo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/bg-pixels.svg') repeat;
  background-size: 72px 72px;
  opacity: .45;
  pointer-events: none;
}
.hero-logo-svg {
  width: 100%;
  max-width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}
/* legacy inner (hidden, kept for safety) */
.hero-graphic-inner { display: none; }
.hero-badge-1, .hero-badge-2, .hero-badge-3 {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: .75rem;
  padding: .6rem .9rem;
  box-shadow: var(--shadow);
  font-size: .78rem;
  font-weight: 600;
  color: var(--grey-700);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hero-badge-1 { top: 10%; left: -20px; }
.hero-badge-2 { bottom: 20%; right: -20px; }
.hero-badge-3 { bottom: 8%; left: 10%; }
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dot-blue  { background: var(--blue); }
.dot-teal  { background: var(--teal); }
.dot-green { background: #22C55E; }

/* ── About snippet (home) ─────────────────────────────────────────── */
.about-home {
  background-color: var(--white);
  background-image: url('../assets/images/bg-neural.svg');
  background-size: 300px 300px;
}
.about-home-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--grey-200) 100%);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--grey-400);
  font-weight: 500;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 1.25rem; }
.about-text .section-lead { margin-bottom: 1.75rem; }
.institution-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-300);
}
.inst-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  color: var(--grey-700);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.inst-badge:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.inst-badge-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--grey-600);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.inst-badge-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── Research Topics ──────────────────────────────────────────────── */
.topics-section { background: var(--grey-100); }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.topic-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 1rem;
  border-left: 3px solid transparent;
  padding: 2rem 1.75rem;
  transition: all .25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.topic-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: url('../assets/images/bg-pixels.svg') no-repeat bottom right;
  background-size: 72px 72px;
  opacity: .35;
  pointer-events: none;
}
.topic-card:hover {
  border-left-color: var(--blue);
  border-color: var(--blue-mid);
  border-left-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.topic-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue-light) 0%, #d8e8ff 100%);
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px rgba(58,90,173,.12);
}
.topic-icon svg { width: 24px; height: 24px; }
.topic-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--grey-900);
}
.topic-card p {
  font-size: .88rem;
  color: var(--grey-600);
  line-height: 1.55;
}

/* ── Project / Result Cards ───────────────────────────────────────── */
.projects-preview { background: var(--white); }
.results-section {
  background-color: var(--grey-100);
  background-image: url('../assets/images/bg-pixels.svg');
  background-size: 72px 72px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 1rem;
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--blue-dark);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/bg-neural.svg') repeat;
  background-size: 200px 200px;
  opacity: .25;
  pointer-events: none;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb-text { position: absolute; opacity: .6; font-size: .75rem; }
.card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.card h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: var(--grey-900);
}
.card p {
  font-size: .87rem;
  color: var(--grey-600);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}
.card-link {
  color: var(--blue);
  font-weight: 600;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  transition: gap .15s;
}
.card-link:hover { gap: .6rem; }
.card-link svg { width: 14px; height: 14px; }

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ── Projects filter bar ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  border: 2px solid var(--grey-300);
  color: var(--grey-600);
  background: var(--white);
  transition: all .2s;
}
.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.project-card { display: flex; flex-direction: column; }
.project-card[hidden] { display: none; }
.project-card.filtered-out { display: none; }

/* ── Publications ─────────────────────────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.tag-btn {
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--grey-300);
  color: var(--grey-600);
  background: var(--white);
  cursor: pointer;
  transition: all .2s;
}
.tag-btn:hover { border-color: var(--blue); color: var(--blue); }
.tag-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.pub-author-filter {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.pub-author-filter label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--grey-600);
  white-space: nowrap;
}
#author-select {
  padding: .35rem 2.2rem .35rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--grey-300);
  color: var(--grey-600);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .75rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
#author-select:hover,
#author-select:focus { border-color: var(--blue); color: var(--blue); outline: none; }
#author-select.active { background-color: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); }

.pub-type-filter {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.pub-type-filter label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--grey-600);
  white-space: nowrap;
}
#type-select {
  padding: .35rem 2.2rem .35rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1.5px solid var(--grey-300);
  color: var(--grey-600);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .75rem center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
#type-select:hover,
#type-select:focus { border-color: var(--blue); color: var(--blue); outline: none; }
#type-select.active { background-color: var(--blue-light); border-color: var(--blue); color: var(--blue-dark); }

.pub-year { margin-bottom: 2.5rem; }
/* Lazy-loaded year sections */
.pub-year[data-lazy]:not([data-lazy-loaded]) { display: none; }
@keyframes pub-year-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.pub-year.lazy-reveal { animation: pub-year-in .4s ease both; }
.pub-year-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--grey-900);
  padding-bottom: .75rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--grey-300);
}
.pub-entry {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: .75rem;
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .2s;
}
.pub-entry:hover { border-color: var(--blue-mid); }
.pub-entry.filtered-out { display: none; }
.pub-header {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.pub-header::-webkit-details-marker { display: none; }
.pub-content-wrap { padding: 0 1.25rem; }
.pub-title {
  font-weight: 600;
  font-size: .95rem;
  color: var(--grey-900);
  flex: 1;
}
.pub-authors {
  font-size: .83rem;
  color: var(--grey-600);
  margin-top: .25rem;
  margin-bottom: .35rem;
}
.pub-venue {
  font-size: .82rem;
  color: var(--grey-600);
  font-style: italic;
}
.pub-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.pub-tag {
  font-size: .7rem;
  background: var(--blue-light);
  color: var(--blue-dark);
  padding: .15rem .5rem;
  border-radius: 999px;
  font-weight: 600;
}
.pub-meta { display: flex; gap: .75rem; margin-top: .5rem; }
.pub-toggle-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-400);
  transition: transform .2s;
}
details.pub-entry[open] .pub-toggle-icon { transform: rotate(90deg); }
.pub-extra {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--grey-200);
}
.pub-abstract {
  font-size: .87rem;
  color: var(--grey-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.pub-abstract:empty { display: none; margin-bottom: 0; }
.pub-bibtex {
  background: var(--grey-100);
  border: 1px solid var(--grey-300);
  border-radius: .5rem;
  padding: .85rem 1rem;
  font-size: .78rem;
  font-family: 'Courier New', monospace;
  overflow-x: auto;
  white-space: pre;
  color: var(--grey-700);
}

/* ── Team cards ────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 1rem;
  overflow: hidden;
  text-align: center;
  transition: all .25s;
}
.team-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.team-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.team-card-link:hover .team-name {
  color: var(--blue);
}
.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--blue-dark);
  position: relative;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -.03em;
}
.team-body { padding: 1rem 1.1rem 1.25rem; }
.team-name { font-size: .98rem; font-weight: 700; margin-bottom: .25rem; }
.team-role { font-size: .8rem; color: var(--grey-600); }
.team-type {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .4rem;
}
.type-member { color: var(--blue); }
.type-associate { color: var(--teal); }

/* ── CTA / Join strip ──────────────────────────────────────────────── */
.cta-strip {
  background-color: var(--blue-dark);
  background-image:
    url("data:image/svg+xml,%3Csvg width='600' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60 Q30 30 60 60 Q90 90 120 60 Q150 30 180 60 Q210 90 240 60 Q270 30 300 60 Q330 90 360 60 Q390 30 420 60 Q450 90 480 60 Q510 30 540 60 Q570 90 600 60' fill='none' stroke='white' stroke-width='1.5' opacity='0.10'/%3E%3Cpath d='M-60 80 Q30 40 120 80 Q210 120 300 80 Q390 40 480 80 Q570 120 660 80' fill='none' stroke='white' stroke-width='1' opacity='0.06'/%3E%3Cpath d='M0 40 L20 40 L25 20 L35 70 L45 10 L55 60 L65 40 L80 40' fill='none' stroke='white' stroke-width='1.2' opacity='0.08'/%3E%3Cpath d='M500 40 L520 40 L525 20 L535 70 L545 10 L555 60 L565 40 L580 40' fill='none' stroke='white' stroke-width='1.2' opacity='0.08'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-accent) 100%);
  background-size: 600px 120px, 100%;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.cta-strip .eyebrow { color: rgba(255,255,255,.7); margin-bottom: .75rem; }
.cta-strip h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1rem; color: white; }
.cta-strip p { font-size: 1.05rem; opacity: .85; max-width: 45ch; margin: 0 auto 2rem; }
.btn-white {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}
.btn-white:hover { background: var(--grey-100); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-info p { color: var(--grey-600); margin-bottom: 1.5rem; font-size: .95rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.25rem;
}
.contact-icon {
  width: 40px; height: 40px;
  background: var(--blue-light);
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--blue); }
.contact-label { font-size: .8rem; font-weight: 700; color: var(--grey-600); text-transform: uppercase; letter-spacing: .06em; }
.contact-val { font-size: .9rem; color: var(--grey-900); font-weight: 500; }
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 1rem;
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius);
  font: inherit;
  font-size: .9rem;
  color: var(--grey-900);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  background: var(--blue-dark);
  color: var(--grey-400);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-about .footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.footer-logo-img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-about p {
  font-size: .85rem;
  line-height: 1.65;
  color: var(--grey-400);
  max-width: 32ch;
}
.footer-col h4 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a {
  font-size: .85rem;
  color: var(--grey-400);
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom a { color: var(--grey-400); transition: color .15s; }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── Scroll reveal ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-gap: 4rem; }
  .nav-links, .nav-links .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-img { height: 48px; }
  .hero-content { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-graphic, .hero-logo-card { max-width: 320px; }
  .hero-badge-1, .hero-badge-2, .hero-badge-3 { display: none; }
  .about-home-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-img { order: -1; }
  .topics-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 1.25rem; }
  .hero-actions { flex-direction: column; }
  .filter-bar { gap: .4rem; }
}
