/* ===== μBIOSEP — clean rebuild ===== */
:root {
  --blue: #4e5ac3;          /* brand accent (color_18) */
  --blue-deep: #1a1e41;     /* deep navy */
  --ink: #1b1b1e;           /* near-black text */
  --grey: #727272;          /* secondary text */
  --light-grey: #b0b0b0;
  --white: #ffffff;
  --font-head: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Raleway", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 104px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--blue); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(26, 30, 65, 0.0);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(26, 30, 65, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .25);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; color: #fff; height: 100%;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 100%; width: auto; display: block; }
.header-right { display: flex; align-items: center; gap: 56px; }
.header-funding { display: flex; align-items: center; }
.header-funding:hover { text-decoration: none; }
.header-funding img { height: 60px; width: auto; display: block; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 30px;
}
.main-nav a {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 1.2px; color: #fff; text-transform: uppercase;
  opacity: .9;
}
.main-nav a:hover { opacity: 1; color: #cfd3ff; text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: #fff; display: block; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: url("../images/hero-chip.jpg") center / cover no-repeat fixed #1a2fb0;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(20, 30, 120, .55), rgba(20, 30, 90, .25));
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: 3px; text-transform: uppercase; margin: 0 0 18px;
  color: #dfe3ff;
}
.keep-case { text-transform: none; }
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 5vw, 62px); line-height: 1.15;
  margin: 0 0 26px; max-width: 15ch;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px); max-width: 60ch;
  color: #eef0ff; font-weight: 400;
}
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 14px; z-index: 3;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: #fff;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ===== Sections (generic) ===== */
.section { position: relative; padding: 110px 0; }
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  position: relative; z-index: 2;
}
.container.narrow { max-width: 820px; }

.kicker {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--blue);
  margin: 0 0 10px;
}
.kicker.light { color: #cfd3ff; }
h2 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin: 0 0 28px;
  color: var(--ink);
}
h2.light { color: #fff; }
h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); margin: 0 0 14px; color: var(--ink);
}
.lead { font-size: 18px; color: #3a3a42; max-width: 68ch; }
.lead.light { color: #e6e8ff; }

.section-light { background: #fff; }

/* ===== Goals ===== */
.section-goals { color: #fff; overflow: hidden; }
.goals-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 0;
}
.goals-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 14, 45, .45), rgba(14, 20, 70, .4));
}
.section-goals .kicker { color: #cfd3ff; }
.section-goals h2, .section-goals h3 { color: #fff; }
.section-goals .lead { color: #e6e8ff; }
.goals-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px;
}
.goal-block {
  display: flex; gap: 22px; align-items: flex-start;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 34px 32px;
}
.goal-number {
  font-family: var(--font-head); font-weight: 800; font-size: 54px;
  color: var(--blue); line-height: 1; flex: 0 0 auto; opacity: .9;
}
.goal-text p { color: #dfe2f5; }

/* ===== Partners / groups ===== */
.partners {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px;
}
.partner {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 260px; overflow: hidden;
  background-size: cover; background-position: center;
}
.partner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 80, .55), rgba(20, 26, 80, .75));
  transition: background .3s ease;
}
.partner:hover .partner-overlay { background: linear-gradient(180deg, rgba(20, 26, 80, .35), rgba(20, 26, 80, .55)); }
.partner img {
  position: relative; z-index: 2; max-width: 62%; height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

/* ===== Funding ===== */
.section-funding {
  background: linear-gradient(135deg, #232a6b, #14163f);
  color: #fff; text-align: center;
}
.section-funding blockquote {
  font-family: var(--font-head); font-style: normal; font-weight: 500;
  font-size: clamp(15px, 1.7vw, 19px); color: #fff; margin: 48px auto 0; max-width: 40ch;
}
.section-funding .lead { margin: 0 auto; }
.funding-logos {
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
  margin-top: 48px;
}
.funding-logos img { height: 70px; width: auto; object-fit: contain; }
.funding-logos img[alt*="Technology"] { filter: invert(1) brightness(2); }

/* ===== Contact ===== */
.section-contact { background: #f4f5fb; }
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start;
}
.contact-form { margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-turnstile { margin: 6px 0 20px; }
.field { display: block; margin-bottom: 22px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 2px solid #c7c9d6; background: transparent;
  padding: 12px 2px; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  transition: border-color .25s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--blue);
}
.field input::placeholder, .field textarea::placeholder { color: #8a8d9e; }
.btn-submit {
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 1px;
  background: var(--blue); color: #fff; border: 0;
  padding: 14px 42px; cursor: pointer; transition: background .25s, transform .1s;
}
.btn-submit:hover { background: #3d47a8; }
.btn-submit:active { transform: translateY(1px); }
.form-status { min-height: 22px; margin: 16px 0 0; font-weight: 600; color: var(--blue); }
.form-status.error { color: #d33; }

.contact-details {
  font-style: normal; font-size: 16px; color: #3a3a42; line-height: 1.9;
  padding-top: 60px;
}
.contact-details p { margin: 0 0 14px; }
.contact-name {
  font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink);
}
.contact-phone a { color: var(--blue); }

/* ===== Footer ===== */
.site-footer {
  background: #14163f; color: #b9bce0; text-align: center;
  padding: 28px 20px; font-size: 14px;
}
.site-footer p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: flex; }
  .header-right {
    position: fixed; top: var(--header-h); right: 0; left: 0;
    background: rgba(26, 30, 65, .98); max-height: 0; overflow: hidden;
    flex-direction: column; align-items: stretch; gap: 0;
    transition: max-height .35s ease;
  }
  .header-right.open { max-height: 460px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .main-nav li { border-top: 1px solid rgba(255, 255, 255, .08); }
  .main-nav a { display: block; padding: 16px 32px; }
  .header-funding { padding: 18px 32px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .hero { background-attachment: scroll; }
  .partners { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-details { padding-top: 0; }
  .funding-logos { gap: 30px; }
  .funding-logos img { height: 52px; }
  .goals-grid { grid-template-columns: 1fr; gap: 20px; }
  .goal-block { gap: 16px; padding: 26px 22px; }
  .goal-number { font-size: 40px; }
  .section { padding: 72px 0; }
}
