/* Inter Tight — self-hosted variable font (latin, latin-ext) */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   MenGenics Research Program — Design System
   Premium scientific / institutional visual language.
   ========================================================================== */

:root {
  --ink: #012531;
  --ink-soft: #0a3742;
  --navy: #023645;
  --navy-2: #024a57;
  --paper: #F3F6FF;
  --paper-2: #E7ECFB;
  --line: #D6DEF3;
  --line-soft: #E1E7F8;
  --teal: #2F787B;
  --teal-deep: #235F62;
  --gold: #EE8240;
  --gold-soft: #F5B98C;
  --text-body: #2c3a46;
  --text-muted: #5b6b78;
  --text-on-dark: #eef2f4;
  --text-on-dark-muted: #a9bac7;
  --status-dev: #B5652E;
  --status-active: #2F787B;
  --radius: 4px;
  --max-w: 1180px;
  --shadow-card: 0 1px 2px rgba(11,26,43,0.04), 0 8px 24px rgba(11,26,43,0.06);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--text-body); }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

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

.eyebrow {
  display: inline-block;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.9em;
}
.eyebrow.on-dark { color: var(--gold-soft); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.section.tight { padding: 3.5rem 0; }
.section.on-dark {
  background: var(--ink);
  border-bottom: none;
}
.section.on-paper-2 { background: var(--paper-2); }
.section.no-border { border-bottom: none; }

.section-head {
  max-width: 720px;
  margin-bottom: 2.75rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p.lede { font-size: 1.08rem; color: var(--text-muted); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,246,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: "Inter Tight", serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; flex: none;
}
.brand .name-stack { display: flex; flex-direction: column; line-height: 1.15; }
.brand .name-stack small {
  font-family: "Inter Tight", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  list-style: none;
  margin: 0 0 0 2rem; padding: 0;
}
.nav-links a {
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--teal-deep); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--teal-deep); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
}
.nav-cta:hover { background: var(--teal-deep); text-decoration: none !important; }
.lang-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem !important;
  font-size: 0.78rem !important;
  font-weight: 700;
}
.lang-link:hover { background: var(--paper-2); text-decoration: none !important; border-color: var(--teal); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 1300px) {
  .nav-links {
    margin-left: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1.1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "Inter Tight", sans-serif;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost-dark { background: transparent; color: var(--text-on-dark); border-color: rgba(255,255,255,0.35); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #C56A2E; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1100px 600px at 78% -10%, #163650 0%, var(--ink) 55%), var(--ink);
  color: var(--text-on-dark);
  padding: 6.5rem 0 5.5rem;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { color: #fff; }
.hero p.lede { font-size: 1.18rem; color: var(--text-on-dark-muted); max-width: 620px; }
.hero-art {
  position: absolute; inset: 0; z-index: 1; opacity: 0.55;
  pointer-events: none;
}

/* ---------- Endeavor pillars ---------- */
.pillar-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 860px) { .pillar-3 { grid-template-columns: 1fr; } }
.pillar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  padding: 1.9rem 1.7rem;
  border-radius: var(--radius);
}
.pillar-card .num {
  font-family: "Inter Tight", serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6em;
  letter-spacing: 0.04em;
}
.pillar-card h3 { margin-bottom: 0.5em; }
.pillar-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Research pillar grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (min-width: 1100px) { .grid-3.grid-pillars { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 861px) and (max-width: 1099px) { .grid-3.grid-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.research-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.research-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,26,43,0.1); }
.research-card .icon { width: 40px; height: 40px; margin-bottom: 1rem; color: var(--teal-deep); }
.research-card h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.research-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 0.75em; }
.research-card a.card-link { font-size: 0.84rem; font-weight: 700; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.28em 0.7em; border-radius: 999px;
}
.badge-dev { background: #f3ece0; color: var(--status-dev); }
.badge-active { background: #e2f2f1; color: var(--status-active); }
.badge-concept { background: #eef1f4; color: #57697a; }

/* ---------- Project / publication cards ---------- */
.project-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 1.1rem;
}
.project-card .meta-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; align-items: center;
}
.project-card h3 { margin-bottom: 0.3em; font-size: 1.15rem; }
.project-card .field-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1.5rem;
  font-size: 0.88rem; color: var(--text-muted); margin-top: 1rem;
  border-top: 1px solid var(--line-soft); padding-top: 1rem;
}
.project-card .field-grid dt { font-weight: 700; color: var(--ink-soft); }
.project-card .field-grid dd { margin: 0 0 0.6em; }
@media (max-width: 640px) { .project-card .field-grid { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.healthspan {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
  margin-top: 2.5rem;
}
@media (max-width: 980px) { .healthspan { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .healthspan { grid-template-columns: 1fr 1fr; } }
.stage {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: left;
}
.stage .range { font-size: 0.75rem; font-weight: 700; color: var(--teal-deep); letter-spacing: 0.05em; }
.stage h4 { margin: 0.35em 0 0.4em; font-size: 1rem; }
.stage p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ---------- Callout / notice boxes ---------- */
.notice {
  border-left: 3px solid var(--teal);
  background: var(--paper-2);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.93rem;
  color: var(--text-body);
  margin: 1.5rem 0;
}
.notice.gold { border-left-color: var(--gold); }
.notice strong { color: var(--ink); }

.dev-panel {
  border: 1px dashed var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  text-align: center;
}
.dev-panel h4 { margin-bottom: 0.4em; }
.dev-panel p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

/* ---------- Leadership ---------- */
.leader-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 560px) { .leader-card { grid-template-columns: 1fr; } }
.avatar {
  width: 108px; height: 108px; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--teal-deep));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: "Inter Tight", serif; font-size: 1.9rem; font-weight: 600;
}
.leader-card h3 { margin-bottom: 0.15em; }
.leader-card .role { color: var(--teal-deep); font-weight: 700; font-size: 0.86rem; margin-bottom: 0.6em; }
.leader-card p { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 0.5em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tag { font-size: 0.72rem; font-weight: 700; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft); padding: 0.2em 0.6em; border-radius: 999px; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2rem; }
@media (max-width: 860px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { border-top: 2px solid var(--gold); padding-top: 0.8rem; }
.stat .n { font-family: "Inter Tight", serif; font-size: 1.9rem; color: var(--ink); }
.stat .l { font-size: 0.82rem; color: var(--text-muted); }
.stat .src { font-size: 0.72rem; color: var(--text-muted); }
.stat .src a { color: var(--text-muted); text-decoration: underline; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(120deg, var(--navy) 0%, var(--ink) 100%);
  color: #fff; text-align: center; padding: 5.5rem 0;
}
.final-cta h2 { color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; }
.final-cta p { color: var(--text-on-dark-muted); max-width: 620px; margin: 0 auto 0; }
.final-cta .cta-row { justify-content: center; }

/* ---------- Forms ---------- */
form.inquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 0.94rem; background: var(--paper);
}
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding: 4rem 0 2rem; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { color: #fff; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1em; font-family: "Inter Tight", sans-serif; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55em; }
.footer-grid a { color: var(--text-on-dark-muted); }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: "Inter Tight", serif; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: flex-start; }
.disclaimer-box { font-size: 0.8rem; color: var(--text-on-dark-muted); max-width: 900px; margin-bottom: 1.5rem; line-height: 1.6; }
.legal-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0; margin: 0; }
.legal-links a { color: var(--text-on-dark-muted); font-size: 0.82rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--paper-2);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--teal-deep); }
.page-hero p.lede { color: var(--text-muted); font-size: 1.05rem; max-width: 680px; }
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 3rem 0; border: none; }

.hero-note {
  margin-top: 1.75rem;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  border-left: 2px solid rgba(255,255,255,0.28);
  padding-left: 0.9rem;
}
.hero-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
