:root {
  --navy: #263B50;
  --turquoise: #22A69A;
  --ink: #263442;
  --muted: #71808c;
  --paper: #ffffff;
  --soft: #f5f7f8;
  --line: #e6ebee;
  --shadow: 0 8px 24px rgba(38, 59, 80, .07);
  --radius: 14px;
  --content-width: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: var(--turquoise); text-decoration: none; }
a:hover { color: var(--navy); }
.site-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: 16px max(5vw, 22px);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.wordmark { color: var(--navy); font-weight: 800; letter-spacing: -.04em; font-size: 1.25rem; }
.wordmark span { color: var(--turquoise); }
.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--navy); font-size: .92rem; font-weight: 600; }
.site-nav a:hover, .site-nav a.active { color: var(--turquoise); }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; color: var(--navy); padding: 8px 12px; border-radius: 8px; }
.section-wrap { width: min(var(--content-width), 90%); margin-inline: auto; }
.hero { min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 0 84px; }
.hero-mark {
  width: 190px; height: 150px; display: grid; place-content: center; gap: 4px;
  margin-bottom: 24px; border: 1px dashed #a9c9c5; border-radius: 22px;
  color: var(--turquoise); background: #f4fbfa; font-weight: 800; letter-spacing: .12em;
}
.hero-mark small { color: var(--muted); font-size: .65rem; font-weight: 400; letter-spacing: 0; }
.eyebrow { margin: 0 0 8px; color: var(--turquoise); text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 800; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.3rem); letter-spacing: -.055em; }
.hero-tagline { max-width: 580px; margin: 20px 0 0; color: var(--muted); font-size: 1.12rem; }
.content-section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.04em; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; }
.person-card { text-align: center; padding: 22px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .2s, box-shadow .2s; }
.person-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person-photo { width: 124px; height: 124px; margin: 0 auto 16px; display: block; border-radius: 50%; object-fit: cover; background: var(--soft); }
.person-placeholder { display: grid; place-items: center; color: var(--turquoise); font-size: 2rem; font-weight: 700; }
.person-card h3 { margin: 0 0 5px; font-size: 1.08rem; }
.person-role, .person-affiliation { margin: 0; color: var(--muted); font-size: .88rem; }
.person-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.person-link:hover {
  border-color: var(--turquoise);
  background: var(--turquoise);
  color: #fff;
}
.person-link:focus-visible {
  outline: 3px solid rgba(34, 166, 154, .3);
  outline-offset: 3px;
}
.research-copy { max-width: 760px; color: var(--muted); font-size: 1.05rem; }
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.topic-pill { padding: 7px 13px; border-radius: 999px; background: #eaf6f5; color: var(--navy); font-size: .86rem; }
/* Project cards */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: stretch; gap: 24px; }
.project-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-image { width: 100%; height: 158px; display: block; padding: 10px 16px; object-fit: contain; background: var(--soft); }
.project-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 21px; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 13px; }
.project-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .74rem; line-height: 1.45; }
.project-tag.status-ongoing { background: #e8f5f2; color: #247e73; }
.project-tag.status-completed { background: #eef1f3; color: #65727c; }
.project-tag.status-upcoming { background: #edf2f8; color: #45627e; }
.project-body h3 { margin: 0 0 10px; font-size: 1.13rem; line-height: 1.3; }
.project-description { margin: 0 0 18px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.project-funder { width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.project-funder-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.project-funder-name { margin: 0; color: var(--ink); font-size: .82rem; line-height: 1.45; }
.project-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; padding: 9px 14px; border: 1px solid var(--navy); border-radius: 8px; background: var(--navy); color: #fff; font-size: .84rem; font-weight: 700; line-height: 1.3; transition: background .2s ease, border-color .2s ease; }
.project-link:hover { border-color: var(--turquoise); background: var(--turquoise); color: #fff; }
.project-link:focus-visible { outline: 3px solid rgba(34, 166, 154, .35); outline-offset: 3px; }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; gap: 18px; } .project-image { height: 145px; } .project-body { padding: 18px; } }
.empty-note { color: var(--muted); font-size: .92rem; }
.site-footer { margin-top: 20px; padding: 30px 0; background: var(--navy); color: white; font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer span { color: #c4d0d8; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #9fe0d9; }
@media (max-width: 640px) {
  .site-header { padding: 13px 5%; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 5%; flex-direction: column; gap: 14px; background: white; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero { min-height: 440px; padding: 55px 0 65px; }
  .hero-mark { width: 160px; height: 125px; }
  .content-section { padding: 54px 0; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person-card { padding: 17px 10px; }
  .person-photo { width: 94px; height: 94px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}


/* Floating back-to-top control — circular CIMA-inspired arrow */
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 20;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%; color: #fff;
  background: var(--turquoise); box-shadow: 0 5px 18px rgba(38, 59, 80, .20);
  cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease, background .2s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); }
.back-to-top:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.back-to-top svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .back-to-top { right: 17px; bottom: 18px; width: 44px; height: 44px; } }


/* Hero logo — larger on desktop, without the old placeholder frame */
.hero-mark {
  width: min(100%, 780px);
  height: auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-mark img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
  border: 0;
  outline: 0;
  box-shadow: none;
}

@media (max-width: 640px) {
  .hero-mark {
    width: min(100%, 390px);
    margin-bottom: 22px;
  }
  .hero-mark img {
    max-width: 390px;
  }
}
