@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');

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

:root {
  --navy:   #00205b;
  --gold:   #C69214;
  --light:  #f5f7fa;
  --muted:  #6b7280;
  --text:   #1f2937;
  --white:  #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,.08);
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ─── Navbar ─── */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.nav-logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.25);
  flex-shrink: 0;
}

.nav-brand .brand-name {
  font-family: 'Michroma', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: .1em;
}

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

.nav-links a {
  display: block;
  padding: .5rem 1rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color .15s, background .15s;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--white);
}

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #002d7a 60%, #00439e 100%);
  color: var(--white);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(198,146,20,.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: .75rem;
  letter-spacing: .08em;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); opacity: .92; text-decoration: none; }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-outline { border: 2px solid rgba(255,255,255,.5); color: var(--white); }

/* ─── Sections & Containers ─── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--light); }

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.section-header p {
  margin-top: .75rem;
  color: var(--muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── About / Mission ─── */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.mission-text p { color: var(--muted); margin-bottom: 1rem; }

.mission-visual {
  background: linear-gradient(135deg, var(--navy), #002d7a);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--white);
  text-align: center;
}

.mission-visual .acronym { font-size: 3rem; font-weight: 900; letter-spacing: .05em; color: var(--gold); }
.mission-visual .acronym-expanded { font-size: .85rem; line-height: 2; margin-top: .5rem; opacity: .85; }

/* ─── Cards ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--gold);
}

.card-rule {
  width: 36px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1rem;
  border-radius: 2px;
}

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

.card p { font-size: .9rem; color: var(--muted); }

/* ─── Team ─── */
.team-section-label {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--gold);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  background: var(--light);
}

.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #dce6f0, #c8d8e8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-info { padding: 1.25rem 1rem; }

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .2rem;
}

.team-role {
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}

.team-dept {
  font-size: .8rem;
  color: var(--muted);
}

.team-bio { display: none; }

/* Partners row */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--gold);
}

.partner-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .2rem;
}

.partner-affil {
  font-size: .8rem;
  color: var(--muted);
}

/* ─── Publications ─── */
.pub-list { display: flex; flex-direction: column; gap: 1.25rem; }

.pub-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--navy);
}

.pub-item.presentation { border-left-color: var(--gold); }

.pub-type {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}

.pub-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .3rem;
}

.pub-authors {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: .2rem;
}

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

/* ─── Funding ─── */
.funding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.funder-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.funder-logo {
  height: 60px;
  object-fit: contain;
  object-position: left;
}

.funder-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.funder-grant {
  font-size: .85rem;
  color: var(--muted);
}

.funder-amount {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold);
}

/* ─── Footer ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: .85rem;
}

.footer a { color: var(--gold); }
.footer a:hover { color: var(--white); }

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  opacity: .85;
  filter: brightness(0) invert(1);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .mission-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
