:root {
  --blue-dark:   #0d2f5c;
  --blue:        #1a4f9c;
  --blue-light:  #2f7fd4;
  --teal:        #0fa3a3;
  --teal-light:  #e6f7f7;
  --accent:      #f5a623;
  --bg:          #f8fafd;
  --white:       #ffffff;
  --text:        #1e2d3d;
  --text-muted:  #5a6a7e;
  --border:      #dde5f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--blue-dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.nav-brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.06em; color: var(--white); }
.nav-brand-name span { color: var(--teal); }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.78); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: 0.3s; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  color: var(--white); padding: 6rem 2.5rem 5rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 860px; margin: 0 auto; }
.hero-logo {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 1.8rem;
  display: block;
  border: 3px solid rgba(255,255,255,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px; padding: 0.35rem 1.1rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1.4rem; color: rgba(255,255,255,0.9);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900;
  line-height: 1.15; margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.8);
  max-width: 680px; margin: 0 auto 2.4rem;
}
.hero-meta {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.5rem; font-size: 0.88rem;
}
.hero-meta-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.85); }
.hero-meta-item .icon {
  width: 32px; height: 32px; background: rgba(255,255,255,0.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.hero-meta-item strong { color: var(--white); }

/* ── SECTIONS ── */
section { padding: 5rem 2.5rem; }
.container { max-width: 1060px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 800;
  color: var(--blue-dark); margin-bottom: 0.6rem;
}
.section-intro { color: var(--text-muted); max-width: 680px; margin-bottom: 3rem; }

/* ── OVERVIEW ── */
#overview { background: var(--white); }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.overview-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.overview-card:hover { box-shadow: 0 8px 28px rgba(26,79,156,0.1); transform: translateY(-2px); }
.overview-card .card-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }
.overview-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.4rem; }
.overview-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

.why-block {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white); border-radius: 18px; padding: 2.8rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
.why-block h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.8rem; }
.why-block p { font-size: 0.95rem; color: rgba(255,255,255,0.82); line-height: 1.65; }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-box { background: rgba(255,255,255,0.1); border-radius: 12px; padding: 1.2rem; text-align: center; }
.stat-box .stat-num { font-size: 1.9rem; font-weight: 900; color: var(--teal); line-height: 1; }
.stat-box .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.72); margin-top: 0.3rem; }

/* ── TEAM ── */
#team { background: var(--bg); }

.pi-block {
  display: flex; align-items: center; gap: 2rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; padding: 2rem 2.4rem;
  margin-bottom: 3rem;
}
.pi-avatar {
  width: 90px; height: 90px; min-width: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; color: var(--white);
  overflow: hidden;
}
.pi-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.pi-info { flex: 1; }
.pi-badge-pill {
  display: inline-block; background: var(--blue-dark); color: var(--white);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem; border-radius: 50px; margin-bottom: 0.5rem;
}
.pi-info h3 { font-size: 1.35rem; font-weight: 800; color: var(--blue-dark); margin-bottom: 0.2rem; }
.pi-info .pi-role { font-size: 0.95rem; color: var(--teal); font-weight: 600; margin-bottom: 0.2rem; }
.pi-info .pi-affil { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.pi-info .pi-bio { font-size: 0.9rem; color: var(--text-muted); }
.pi-contact a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--teal-light); border: 1px solid rgba(15,163,163,0.3);
  color: var(--blue-dark); padding: 0.45rem 1rem; border-radius: 50px;
  font-size: 0.84rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s;
}
.pi-contact a:hover { background: rgba(15,163,163,0.2); }

.partners-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.2rem;
}
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.partner-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.6rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.partner-card:hover { box-shadow: 0 6px 22px rgba(26,79,156,0.1); transform: translateY(-2px); }
.partner-icon {
  width: 48px; height: 48px;
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem;
  margin-bottom: 1rem;
}
.partner-icon.eng  { background: #e8f0fb; }
.partner-icon.clin { background: #fff0e8; }
.partner-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.25rem; }
.partner-card .partner-inst { font-size: 0.82rem; color: var(--teal); font-weight: 600; margin-bottom: 0.3rem; }
.partner-card .partner-head { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.partner-card .partner-role { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.partner-active {
  display: inline-block; background: #e6f7f7;
  border: 1px solid rgba(15,163,163,0.4); color: var(--teal);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 0.15rem 0.6rem; border-radius: 50px; margin-top: 0.7rem;
}

/* ── MILESTONES ── */
#milestones { background: var(--white); }
.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.875rem; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--bg);
}
.timeline-item.upcoming::before { background: var(--blue-light); }
.timeline-item.launch::before   { background: var(--teal); box-shadow: 0 0 0 4px rgba(15,163,163,0.2); }
.milestone-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.2rem 1.5rem;
}
.milestone-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem; flex-wrap: wrap; gap: 0.5rem;
}
.milestone-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--blue-dark); }
.milestone-tag {
  font-size: 0.73rem; font-weight: 600; border-radius: 50px;
  padding: 0.2rem 0.75rem; letter-spacing: 0.04em;
}
.tag-upcoming { background: #e8f0fb; color: var(--blue); }
.tag-launch   { background: #e6f7f7; color: var(--teal); }
.milestone-date { font-size: 0.8rem; color: var(--teal); font-weight: 600; margin-bottom: 0.35rem; }
.milestone-card p { font-size: 0.87rem; color: var(--text-muted); }

/* ── NEWS ── */
#news { background: var(--bg); }
#news-list { display: grid; gap: 1.2rem; }
.news-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.4rem 1.6rem;
  display: flex; gap: 1.2rem; align-items: flex-start;
}
.news-date-col { min-width: 70px; text-align: center; }
.news-day   { font-size: 1.6rem; font-weight: 900; color: var(--blue); line-height: 1; }
.news-month { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.news-year  { font-size: 0.72rem; color: var(--text-muted); }
.news-body { flex: 1; }
.news-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--teal-light); color: var(--teal);
  border-radius: 50px; padding: 0.15rem 0.65rem; margin-bottom: 0.4rem;
}
.news-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.3rem; }
.news-body p  { font-size: 0.87rem; color: var(--text-muted); line-height: 1.55; }
.news-empty  { color: var(--text-muted); font-size: 0.9rem; font-style: italic; }

/* ── PUBLICATIONS ── */
#publications { background: var(--white); }
.pub-year-group { margin-bottom: 2.2rem; }
.pub-year-group:last-child { margin-bottom: 0; }
.pub-year-heading {
  font-size: 1rem; font-weight: 800; color: var(--blue-dark);
  border-left: 3px solid var(--teal); padding-left: 0.75rem;
  margin-bottom: 1rem;
}
.pub-list { display: grid; gap: 0.9rem; }
.pub-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.4rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.pub-type-pill {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; border-radius: 4px;
  padding: 0.2rem 0.55rem; white-space: nowrap; margin-top: 2px;
  min-width: 76px; text-align: center;
}
.pill-journal  { background: #e8f0fb; color: var(--blue); }
.pill-conf     { background: #fff0e8; color: #c25a00; }
.pill-preprint { background: #f3e8ff; color: #7c3aed; }
.pill-software { background: #e6f7f7; color: var(--teal); }
.pub-info { flex: 1; }
.pub-info .pub-authors { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.pub-info .pub-title   { font-size: 0.92rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.2rem; }
.pub-info .pub-journal { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
.pub-info .pub-doi a   { font-size: 0.8rem; color: var(--teal); text-decoration: none; }
.pub-info .pub-doi a:hover { text-decoration: underline; }
.pub-info .pub-note    { font-size: 0.78rem; color: var(--text-muted); font-style: italic; margin-top: 0.2rem; }
.pub-empty { color: var(--text-muted); font-size: 0.9rem; font-style: italic; }

/* ── CONTACT ── */
#contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
}
.contact-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 1.2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--teal-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.contact-item strong { font-size: 0.82rem; color: var(--text-muted); display: block; }
.contact-item span   { font-size: 0.9rem; color: var(--text); }
.contact-item a      { color: var(--blue); text-decoration: none; font-size: 0.9rem; }
.contact-item a:hover { text-decoration: underline; }

.funder-block {
  margin-top: 2rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.funder-logo { font-size: 2.5rem; }
.funder-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 0.25rem; }
.funder-text p  { font-size: 0.86rem; color: var(--text-muted); }
.funder-grant   { margin-left: auto; text-align: right; }
.funder-grant .grant-amt   { font-size: 1.7rem; font-weight: 900; color: var(--blue); line-height: 1; }
.funder-grant .grant-label { font-size: 0.78rem; color: var(--text-muted); }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.65);
  text-align: center; padding: 2rem 2.5rem; font-size: 0.84rem;
}
footer { padding-top: 0; }
.footer-logos { display: block; width: calc(100% + 5rem); max-width: none; margin: 0 -2.5rem 1.5rem; }
footer strong { color: rgba(255,255,255,0.9); }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  nav { padding: 0 1.2rem; }
  .nav-links {
    display: none; flex-direction: column; background: var(--blue-dark);
    position: absolute; top: 64px; left: 0; right: 0;
    padding: 1rem 1.5rem; gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  section { padding: 3.5rem 1.4rem; }
  .why-block { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .funder-block { flex-direction: column; }
  .funder-grant { margin-left: 0; text-align: left; }
  .pi-block { flex-direction: column; text-align: center; }
  .pi-contact { display: flex; justify-content: center; }
}
