/* ==========================================================================
   CSPL — Balanced Modern
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --color-bg: #F8F6F1;
  --color-surface: #F0ECE4;
  --color-warm-white: #FDFCF9;
  --color-stone: #E9E3D8;
  --color-text: #3B3B3B;
  --color-text-secondary: #6B6B6B;
  --color-text-muted: #999999;
  --color-ink: #1A1F2E;
  --color-ink-mid: #2C3347;
  --color-ink-light: #3D4763;
  --color-accent: #9E3B2F;
  --color-accent-hover: #B5544A;
  --color-accent-light: #F9F0EF;
  --color-gold: #B8913A;
  --color-border: rgba(0,0,0,0.07);
  --color-border-light: rgba(0,0,0,0.05);

  --width-content: 740px;
  --width-wide: 1100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--color-accent-hover); }

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

/* --- Typography --- */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
}

h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

h3 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
  display: block;
}

/* Section divider — just the label, line handled by border or spacing */
.section-divider {
  margin-bottom: 0.25rem;
}
.section-divider .label { margin-bottom: 0; }
.section-divider::after { display: none; }

/* --- Layout --- */
.container {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--wide {
  max-width: var(--width-wide);
}

.section {
  padding: 3.5rem 0;
  position: relative;
}

.section--alt {
  background: transparent;
}

/* Thin rule between sections instead of bg change */
.section + .section {
  border-top: 1px solid var(--color-border);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  max-width: var(--width-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  max-width: 340px;
  line-height: 1.35;
}

.site-brand:hover {
  color: var(--color-accent);
}

.site-brand img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.4rem 0.75rem;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--color-text);
}

.site-nav a.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  border-radius: 1px;
  transition: 0.2s;
}

/* --- Hero --- */
.hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* hero grid + logo */
.hero .container--wide { max-width: var(--width-wide); }

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-logo {
  height: 140px;
  width: auto;
}

.hero .label {
  margin-bottom: 0.75rem;
  font-size: 0.69rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-ink);
}

.hero .subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.hero .motto {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

.hero-meta .sep { color: var(--color-border); }
.hero-meta a { color: var(--color-accent); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.btn-primary {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: white;
}

.btn-ghost {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- Mini canvas accent card --- */
.mini-canvas-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 18px;
}

.mini-canvas-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

#mini-canvas {
  display: block;
}

/* --- Stats strip --- */
.stats-strip {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --- Brand logo in nav --- */
.brand-logo {
  height: 28px;
  width: auto;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* --- Footer motto --- */
.footer-motto {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

/* drop-cap — disabled */
.drop-cap::first-letter {
  /* no special styling */
}

/* --- About --- */
.about-text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 640px;
}

.about-text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* --- Research Cards --- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.research-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.research-card:hover {
  border-color: rgba(158,59,47,0.22);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.research-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
}

.research-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0;
}

/* research-tag (unused but kept for compatibility) */
.research-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* --- News --- */
.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  gap: 1.75rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: baseline;
}

.news-item:last-child { border-bottom: none; }

.news-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  min-width: 85px;
}

.news-text {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.news-text a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(15, 76, 129, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.news-text a:hover {
  text-decoration-color: var(--color-accent);
}

.news-text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* --- People --- */
.people-section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.people-section-title::after { display: none; }

.pi-card {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  margin-bottom: 1rem;
}

.pi-card img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.pi-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.pi-card .role {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.pi-card .bio {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.pi-card .links {
  font-size: 0.84rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pi-card .links a {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.pi-card .links a:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.pi-tags {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
}

.pi-works {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.pi-works-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.pi-works-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pi-works-list li {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.pi-works-list .pub-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0;
  letter-spacing: 0.02em;
  display: inline;
}

.pi-works-list .pub-year::after { display: none; }

.pi-works-list .pub-venue {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2rem;
}

.person-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.person-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-border-light);
  transition: border-color 0.2s ease;
}

.person-card:hover img {
  border-color: var(--color-accent);
}

.person-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.person-card .role {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.person-card .bio {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.6rem;
  line-height: 1.55;
}

/* ── Researchers network layout ─────────────────────── */
.researchers-network {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1.5rem 0 2rem;
  overflow: visible;
}

.researcher-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
  /* offset applied via inline style on each node in HTML */
}

.researcher-node img {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-warm-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 0 0 1.5px var(--color-stone);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: var(--color-surface);
  color: transparent; /* hide alt text on broken images */
}

.researcher-node:hover img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px rgba(158,59,47,0.14), 0 0 0 2px var(--color-accent);
}

.researcher-node h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0.7rem 0 0.2rem;
  letter-spacing: -0.01em;
}

.researcher-node .role {
  font-size: 0.71rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.researcher-node .bio {
  font-size: 0.71rem;
  color: var(--color-text-secondary);
  margin-top: 0.4rem;
  line-height: 1.5;
  font-style: italic;
}

/* SVG connector overlay */
.researchers-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* --- Publications --- */
.pub-year {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  margin-top: 3rem;
  letter-spacing: -0.02em;
}

.pub-year::after { display: none; }
.pub-year:first-child { margin-top: 0; }

.pub-entry {
  padding: 1.25rem 0;
  padding-left: 0;
  border-bottom: 1px solid var(--color-border-light);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.pub-entry:hover {
  padding-left: 1rem;
  border-left-color: var(--color-accent);
}

.pub-entry:last-of-type { border-bottom: none; }

.pub-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.pub-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--color-accent);
  color: white;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.pub-authors {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.2rem;
}

.pub-authors .highlight {
  font-weight: 600;
  color: var(--color-text);
}

.pub-venue {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.pub-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pub-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.pub-links a:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

/* --- Workshops --- */
.workshop-card {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.workshop-card::before { display: none; }

.workshop-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.workshop-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
  color: var(--color-text-secondary);
}

.workshop-meta .sep { color: var(--color-border); }

.workshop-card p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.workshop-topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.workshop-topics li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 3px;
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.workshop-topics li:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.workshop-support {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  font-style: italic;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  background: var(--color-accent);
  color: white;
  transition: all 0.2s ease;
  margin-top: 1.25rem;
}

.btn:hover {
  background: var(--color-accent-hover);
  color: white;
}

/* --- Affiliations --- */
.affiliations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.affiliations .sep { color: var(--color-border); font-size: 0.75rem; }

/* --- Collaboration strip --- */
.collab-strip {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.collab-strip-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.collab-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.collab-list {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  list-style: none;
}

.collab-list li {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.collab-list a {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.collab-list a:hover {
  color: var(--color-accent);
}

.collab-list li + li::before {
  content: '·';
  margin-right: 1rem;
  color: var(--color-border);
}

/* --- Research icons --- */
.research-icon {
  color: var(--color-accent);
  margin-bottom: 0.85rem;
  opacity: 0.8;
  flex-shrink: 0;
}

/* --- Publication abstracts --- */
details.pub-abstract {
  margin-top: 0.5rem;
}

details.pub-abstract summary {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0;
  transition: color 0.2s ease;
  user-select: none;
}

details.pub-abstract summary::-webkit-details-marker { display: none; }

details.pub-abstract summary::before {
  content: '▶';
  font-size: 0.5rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

details.pub-abstract[open] summary::before {
  transform: rotate(90deg);
}

details.pub-abstract summary:hover {
  color: var(--color-accent);
}

details.pub-abstract p {
  margin-top: 0.65rem;
  font-size: 0.87rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-border);
  margin-bottom: 0;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--color-accent);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header h1::after { display: none; }

.page-header p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 520px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.site-footer .container {
  max-width: var(--width-wide);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.footer-content a {
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.footer-content a:hover {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* --- Section rule accent --- */
.rule-accent {
  width: 36px;
  height: 2px;
  background: rgba(158,59,47,0.3);
  margin: 12px 0 18px;
}

/* --- Two-column home layout --- */
.home-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

/* --- Tab row (Our Story / News) --- */
.tab-row {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--color-text-muted);
  transition: all 0.15s;
}

.tab-btn:hover { color: var(--color-ink); }

.tab-btn.active {
  background: var(--color-ink);
  color: #fff;
  font-weight: 600;
}

.tab-panel { display: block; }
.tab-panel.hidden { display: none; }

/* --- Timeline --- */
.timeline {
  border-left: 2px solid var(--color-stone);
  padding-left: 18px;
  margin-top: 10px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.timeline-year {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-muted);
  min-width: 30px;
  flex-shrink: 0;
  padding-top: 1px;
}

.timeline-year.current { color: var(--color-accent); }

.timeline-text {
  font-size: 0.8rem;
  color: var(--color-text);
}

/* --- News list (updated) --- */
.news-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-accent);
  min-width: 60px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* --- Research section background --- */
.section--research {
  background: var(--color-warm-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* --- Collab strip --- */
.collab-strip {
  background: var(--color-surface);
}

/* --- Methods block (below research cards) --- */
.methods-block {
  margin-top: 40px;
  border-top: 1px solid var(--color-border);
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.method-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.method-panel:last-child { border-bottom: none; }

.method-panel--eyetracking {
  grid-template-columns: 1fr 1fr;
}

.method-panel-text p.label { margin-bottom: 4px; }

.method-panel-text h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.method-panel-text p {
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.method-canvas-wrap {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px 12px;
}

.method-canvas-caption {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

#mt-canvas, #vwp-canvas { display: block; width: 100%; }

.method-canvas-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.mtleg {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mtleg::before {
  content: '';
  display: inline-block;
  width: 12px; height: 2.5px;
  border-radius: 1px;
  background: var(--lc, var(--color-text-muted));
}

.mtleg--dash::before {
  background: repeating-linear-gradient(
    90deg,
    var(--lc, var(--color-text-muted)) 0,
    var(--lc, var(--color-text-muted)) 3px,
    transparent 3px,
    transparent 6px
  );
}

.mtleg { color: var(--color-text-muted); }

.method-panel-visual--eye {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px 16px 14px;
}

.eye-svg { width: 100%; max-width: 280px; }

.method-visual-note {
  font-size: 0.62rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted) !important;
  text-align: center;
  margin: 0 !important;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-children > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fade-in-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.fade-in-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }

  .site-header .container {
    height: 52px;
  }

  .site-brand { font-size: 0.72rem; max-width: 200px; }

  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    z-index: 100;
  }
  .site-nav.open a {
    padding: 0.6rem 0.5rem;
  }
  .nav-toggle { display: block; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { align-items: center; }
  .hero-logo { height: 100px; }
  .home-two-col { grid-template-columns: 1fr; gap: 40px; }

  .section { padding: 2.5rem 0; }

  .research-grid { grid-template-columns: 1fr; }

  .method-panel,
  .method-panel--eyetracking { grid-template-columns: 1fr; gap: 24px; }

  .pi-card { flex-direction: column; gap: 1.25rem; }
  .pi-card img { width: 100px; height: 100px; }

  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .researchers-network {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
    padding: 1.5rem 0 2rem;
  }
  .researcher-node { transform: none !important; }

  .footer-content { flex-direction: column; gap: 1rem; }

  .news-item { flex-direction: column; gap: 0.35rem; }
  .news-date { min-width: auto; }

  .page-header { padding: 2.5rem 0 1.25rem; }
}

@media (max-width: 480px) {
  .people-grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 0; }
  .person-card { padding: 1rem 0.5rem; }
}
