/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:       #f7f6f2;
  --surface:  #ffffff;
  --ink:      #111827;
  --muted:    #6b7280;
  --light:    #e5e7eb;
  --teal:     #0d7e8c;
  --teal-dk:  #085f6b;
  --teal-lt:  #e6f4f6;
  --amber:    #d97706;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --mono:     'DM Mono', monospace;
  --radius:   6px;
  --shadow:   0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:0 4px 6px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.1);
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  padding-top: 68px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dk); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
p  { margin-bottom: 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
ul { padding-left: 1.25rem; }
li { margin-bottom: .3rem; color: var(--muted); }

/* ── LAYOUT ─────────────────────────────────────────────── */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 5vw, 4rem);
}
.page-body {
  padding: 3.5rem 0 5rem;
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 68px;
  background: rgba(247,246,242,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(2rem, 5vw, 4rem);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 70px;
  width: auto;
  border-radius: 0;
  display: block;
}
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  background: var(--teal-lt);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .25s;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--light);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--teal);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-proof {
  margin: 1rem 0 0 0;
  font-size: 0.95rem;
  opacity: 0.85;
}
.hero-ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-visual { position: relative; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 1px solid var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dk);
  border-color: var(--teal-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,126,140,.3);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--light);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── CAROUSEL ───────────────────────────────────────────── */
.carousel-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--light);
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.carousel-slides {
  display: flex;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
}
.carousel-slides img {
  min-width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 0;
  opacity: .95;
}
.carousel-dots {
  position: absolute;
  bottom: .85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all .25s;
}
.carousel-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  color: var(--ink);
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.carousel-btn.prev { left: .75rem; }
.carousel-btn.next { right: .75rem; }

/* ── HOME STATS / THEMES ───────────────────────────────── */
.home-stats {
  display: flex;
  gap: 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--light);
  margin-top: 2rem;
}
.home-stat-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.home-stat-label {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}

.home-themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.home-themes .home-stat-num {
  font-size: 1.05rem;
  line-height: 1.2;
}
.home-themes .home-stat-label {
  margin-top: 0.35rem;
}

/* ── VACANCY NOTICE ─────────────────────────────────────── */
.vacancy-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  font-size: .9rem;
  color: var(--ink);
}
.vacancy-notice a {
  color: var(--amber);
  font-weight: 500;
}

/* ── LOGOS ──────────────────────────────────────────────── */
.logos-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--light);
  border-radius: var(--radius);
}
.logos-row img {
  height: 40px;
  width: auto;
  border-radius: 0;
  opacity: .6;
  filter: grayscale(1);
  transition: all var(--transition);
}
.logos-row img:hover {
  opacity: 1;
  filter: none;
}

.logo-strip {
  margin: 60px 0 20px 0;
  text-align: center;
}
.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.logo-row img {
  height: 70px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: opacity var(--transition), filter var(--transition);
}
.logo-row img:hover {
  opacity: 1;
}

/* ── HOME LAYOUT ────────────────────────────────────────── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}

/* ── NEWS PANEL ─────────────────────────────────────────── */
.news-panel {
  background: var(--surface);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 84px;
}
.news-panel-title {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--light);
}
.news-item {
  padding: .9rem 0;
  border-bottom: 1px solid var(--light);
}
.news-item:last-of-type { border-bottom: none; }
.news-date {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--teal);
  display: block;
  margin-bottom: .25rem;
}
.news-text {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.news-more {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--teal);
  padding: .5rem;
  border: 1px solid var(--light);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.news-more:hover {
  border-color: var(--teal);
  background: var(--teal-lt);
  color: var(--teal);
}

/* ── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--light);
  margin-bottom: 3rem;
}
.page-header h1 { margin-bottom: .5rem; }
.page-header p {
  font-size: 1rem;
  max-width: 700px;
}

/* ── TEAM GRID ──────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--light);
}
.team-card h4 {
  font-size: .95rem;
  margin-bottom: .2rem;
}
.team-card .role {
  font-size: .78rem;
  color: var(--teal);
  font-family: var(--mono);
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.team-card ul {
  padding-left: 1rem;
  margin: 0;
}
.team-card li {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}

/* ── SECTION HEADING ────────────────────────────────────── */
.section-heading {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-heading::before {
  content: '//';
  opacity: .4;
}

/* ── ALUMNI TABLE ───────────────────────────────────────── */
.alumni-cols {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}
.alumni-cols h4 {
  font-size: .85rem;
  margin-bottom: .75rem;
  color: var(--teal);
}
.alumni-cols li { font-size: .85rem; }

/* ── PUBLICATIONS ───────────────────────────────────────── */
.pub-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.pub-card {
  background: var(--surface);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pub-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.pub-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
}
.pub-card-body { padding: 1.25rem; }
.pub-card-body h4 {
  font-size: .9rem;
  line-height: 1.4;
  margin-bottom: .5rem;
}
.pub-card-authors {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .5rem;
}
.pub-card-journal {
  font-size: .78rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: .5rem;
}
.pub-card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .75rem;
}
.pub-card-news {
  font-size: .78rem;
  color: var(--muted);
}

.pub-list {
  list-style: none;
  padding: 0;
}
.pub-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--light);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.pub-list-item:last-child { border-bottom: none; }
.pub-num {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  padding-top: .15rem;
  min-width: 24px;
}
.pub-title {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: .2rem;
}
.pub-meta {
  font-size: .82rem;
  color: var(--muted);
}
.pub-meta a { color: var(--teal); }

/* ── RESEARCH ───────────────────────────────────────────── */
.research-themes {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.research-theme {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--light);
  border-radius: var(--radius);
}
.research-theme.flip {
  grid-template-columns: 280px 1fr;
}
.research-theme.flip .research-img {
  order: -1;
}
.research-theme h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: .75rem;
}
.research-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.research-sub { margin-top: 1.25rem; }
.research-sub h4 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .4rem;
  margin-top: 1rem;
}

/* ── VACANCIES ──────────────────────────────────────────── */
.vacancies-body {
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
}
.vacancies-body p { margin-bottom: 1rem; }
.vacancies-body figure img {
  width: 100%;
  margin-top: 2rem;
}

/* ── ALL NEWS ───────────────────────────────────────────── */
.allnews-list { max-width: 720px; }
.allnews-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--light);
}
.allnews-item:last-child { border-bottom: none; }
.allnews-date {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--teal);
  padding-top: .15rem;
  letter-spacing: .04em;
}
.allnews-text {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}
.allnews-text a { color: var(--teal); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 3.5rem 0;
  margin-top: auto;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 3rem;
}
.footer-title {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .85rem;
}
.footer p,
.footer li {
  font-size: .85rem;
  line-height: 1.75;
  color: rgba(255,255,255,.55);
}
.footer a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer a:hover { color: #fff; }
.footer-nav {
  list-style: none;
  padding: 0;
}
.footer-nav li { margin-bottom: .35rem; }
.footer-bottom {
  max-width: 1080px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── DIVIDER ────────────────────────────────────────────── */
hr.section-divider {
  border: none;
  height: 1px;
  background: var(--light);
  margin: 3rem 0;
}

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

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-themes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-layout { grid-template-columns: 1fr; }
  .news-panel { position: static; }
  .research-theme,
  .research-theme.flip { grid-template-columns: 1fr; }
  .research-theme.flip .research-img { order: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .alumni-cols { grid-template-columns: 1fr; }
  .allnews-item { grid-template-columns: 1fr; gap: .4rem; }
  .pub-highlights { grid-template-columns: 1fr; }
  .wrap { padding: 0 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(247,246,242,.98);
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--light);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .home-stats { flex-wrap: wrap; gap: 1.5rem; }
}