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

/* ── TOKENS ── */
:root {
  --blue:        #4a5568;
  --blue-mid:    #718096;
  --blue-light:  #edf2f7;
  --orange:      #f15a22;
  --orange-light:#f7936a;
  --white:       #ffffff;
  --bg:          #f5f7fb;
  --text:        #1a2332;
  --muted:       #5a6a7e;
  --border:      #dde3ea;
  --card:        #ffffff;
  --pill-dark:   #32373c;
  --dark:        #2d3748;
}

html { scroll-behavior: smooth; }

body {
  font-family: Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── NAV ── */
nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.nav-brand .brand-main {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-brand .brand-main span { color: var(--orange); }

.nav-brand .brand-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* ── HERO ── */
.hero {
  background: #edf2f7;
  color: var(--text);
  padding: 5.5rem 3rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 820px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

/* ── PAGE HERO (subpages) ── */
.page-hero {
  background: linear-gradient(140deg, var(--dark) 0%, #4a5568 100%);
  color: var(--white);
  padding: 3.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border-radius: 9999px;
  font-size: 1.125em;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  cursor: pointer;
  border: none;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-dark  { background: var(--pill-dark); color: var(--white); }
.btn-orange{ background: var(--orange);    color: var(--white); }
.btn-outline{
  background: transparent;
  border: 2px solid rgba(255,255,255,0.55);
  color: var(--white);
}

/* ── SECTIONS ── */
section { padding: 5rem 3rem; }
.section-white { background: var(--white); }
.section-gray  { background: var(--dark); color: var(--white); }

.inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-title.light { color: var(--white); }

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-desc.light { color: rgba(255,255,255,0.72); }

/* ── CARDS ── */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-top-bar { border-top: 4px solid var(--orange); border-radius: 12px 12px 0 0; }

.card-icon {
  width: 48px; height: 48px;
  background: rgba(241,90,34,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid #cbd5e0;
  border-radius: 9999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.tag-orange {
  background: rgba(241,90,34,0.1);
  color: var(--orange);
  border-color: rgba(241,90,34,0.25);
}

/* ── TEAM CARDS ── */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}

.team-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.team-avatar {
  background: linear-gradient(135deg, var(--dark), var(--blue));
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.team-info { padding: 1.4rem; }

.team-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.845rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── RESEARCH PROJECT ── */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s;
}

.project-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.09); }

.project-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.project-team {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ── PUBLICATIONS ── */
.pub-entry {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}

.pub-entry:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.pub-entry h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.pub-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pub-meta strong { color: var(--text); }

.pub-link {
  font-size: 0.8rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.pub-link:hover { text-decoration: underline; }

/* ── UPDATES ── */
.update-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.update-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.update-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.update-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── AFFILIATIONS STRIP ── */
.affil-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.affil-badge {
  background: var(--blue-light);
  color: var(--dark);
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-size: 0.83rem;
  font-weight: 600;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 3rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-brand span { color: var(--orange); }

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--orange-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
  section { padding: 3.5rem 1.25rem; }
  .hero, .page-hero { padding: 3.5rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { padding: 2rem 1.25rem; }
}
