:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0c1933;
  --muted: #60708b;
  --line: #dfe7f0;
  --blue: #2678ff;
  --cyan: #22c5dd;
  --teal: #19b8a7;
  --purple: #8d62ea;
  --orange: #f2a93c;
  --pink: #f0718d;
  --shadow: 0 24px 70px rgba(28, 55, 96, 0.10);
  --shadow-soft: 0 12px 40px rgba(28, 55, 96, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - clamp(40px, 6vw, 96px)), var(--max-width)); margin-inline: auto; }
.section { padding: 112px 0; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: "Manrope", "Inter", sans-serif; margin-top: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(3.25rem, 5.15vw, 5.05rem); line-height: 0.97; margin-bottom: 28px; }
h2 { font-size: clamp(2.15rem, 3.45vw, 3.45rem); line-height: 1.06; margin-bottom: 22px; }
h3 { font-size: 1.28rem; line-height: 1.2; }
p { margin-top: 0; color: var(--muted); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.scrolled {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(210, 222, 235, 0.8);
  box-shadow: 0 8px 30px rgba(22, 49, 89, 0.06);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Manrope", sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.035em; }
.brand > span:last-child > span { color: var(--blue); }
.brand-mark { position: relative; width: 28px; height: 28px; display: inline-grid; place-items: center; }
.brand-mark span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.brand-mark span:nth-child(1) { transform: translate(-7px, 5px); background: var(--cyan); }
.brand-mark span:nth-child(2) { transform: translate(7px, 5px); background: var(--purple); }
.brand-mark span:nth-child(3) { transform: translateY(-7px); background: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; font-weight: 650; }
.site-nav a { color: #32415a; transition: color 150ms ease; }
.site-nav a:hover { color: var(--blue); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 150ms ease; }

.hero { padding: 116px 0 72px; min-height: clamp(690px, 78vh, 820px); display: flex; align-items: center; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(480px, .88fr); align-items: center; gap: clamp(52px, 5vw, 84px); }
.hero-copy { max-width: 820px; }
.hero h1 { font-size: clamp(3rem, 4.4vw, 4.55rem); line-height: .99; margin-bottom: 24px; }
.hero-lead { font-size: 1.06rem; max-width: 720px; margin-bottom: 30px; }
.funding-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; margin-bottom: 26px; border: 1px solid #d9e5f3; border-radius: 999px; background: rgba(255,255,255,.85); color: #3e4d64; font-size: 0.78rem; font-weight: 700; box-shadow: 0 8px 30px rgba(40, 82, 132, .05); }
.funding-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 0 0 5px rgba(38, 120, 255, .08); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border-radius: 13px; font-size: 0.9rem; font-weight: 750; transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 12px 28px rgba(12,25,51,.15); }
.button-secondary { background: white; border: 1px solid var(--line); }
.button-secondary:hover { border-color: #bfcde0; box-shadow: var(--shadow-soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span, .mini-tags span { padding: 7px 10px; border-radius: 999px; background: white; border: 1px solid var(--line); color: #5f708a; font-size: .72rem; font-weight: 650; }
.hero-media { position: relative; }
.media-frame { border: 1px solid rgba(219,228,239,.9); border-radius: 34px; overflow: hidden; background: #051329; box-shadow: 0 35px 90px rgba(18,49,92,.18); transform: rotate(1deg); }
.media-frame img { width: 100%; aspect-ratio: 1.05 / 1; object-fit: cover; object-position: 59% center; }
.hero-note { position: absolute; left: -32px; bottom: -24px; max-width: 270px; padding: 18px 20px; border: 1px solid rgba(220,229,238,.9); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); }
.hero-note strong { display: block; margin-bottom: 4px; font-family: "Manrope", sans-serif; }
.hero-note span { color: var(--muted); font-size: .82rem; line-height: 1.45; }

.challenge { background: white; border-block: 1px solid #edf2f7; }
.section-heading { margin-bottom: 50px; }
.section-heading.narrow { max-width: 920px; }
.section-heading > p:last-child { font-size: 1rem; max-width: 820px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: clamp(52px, 6vw, 96px); align-items: end; }
.split-heading > p { margin-bottom: 8px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.principle-card h3 { margin-bottom: 10px; }
.principle-card p { margin-bottom: 0; font-size: .92rem; }
.principle-number { display: inline-block; margin-bottom: 40px; color: #94a3b8; font-size: .75rem; font-weight: 800; }

.architecture-section { background: linear-gradient(180deg, #f8fafc 0%, #f3f7fb 100%); }
.architecture-figure { margin: 0; padding: clamp(12px, 1.4vw, 20px); border: 1px solid #dfe8f2; border-radius: 30px; background: white; box-shadow: var(--shadow); }
.architecture-figure img { width: 100%; border-radius: 20px; }

.ecosystem { background: white; border-top: 1px solid #edf2f7; }
.tool-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(18px, 1.6vw, 24px); }
.tool-card { grid-column: span 2; display: flex; flex-direction: column; min-height: 500px; padding: 18px 18px 24px; border: 1px solid var(--line); border-radius: 24px; background: #fbfdff; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: #cad8e8; }
.tool-card.tool-wide { grid-column: span 2; min-height: 500px; display: flex; flex-direction: column; }
.tool-discovery { grid-column: 2 / span 2; }
.tool-bacto { grid-column: 4 / span 2; }
.tool-wide .tool-visual { margin-bottom: 25px; }
.tool-visual { min-height: 230px; margin-bottom: 25px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f1f6fb 75%); }
.tool-visual img { width: 78%; max-height: 220px; object-fit: contain; mix-blend-mode: multiply; }
.tool-meta { margin-bottom: 8px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-card h3 { margin-bottom: 12px; font-size: 1.45rem; }
.tool-card p { margin-bottom: 20px; font-size: .91rem; }
.tool-links, .mini-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tool-links a { font-size: .8rem; font-weight: 750; color: var(--ink); }
.tool-links a:hover { color: var(--blue); }
.tool-class .tool-meta { color: var(--purple); }
.tool-characterization .tool-meta { color: #c27d12; }
.tool-discovery .tool-meta { color: #0d9fb7; }
.tool-bacto .tool-meta { color: var(--teal); }

.workflow-section { background: #0d1c36; color: white; }
.workflow-section .eyebrow { color: #68d9eb; }
.workflow-section h2 { color: white; }
.workflow-section .section-heading p { color: #a8b8cc; }
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.pipeline-step { min-height: 210px; padding: 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.055); }
.pipeline-step h3 { color: white; margin-bottom: 10px; }
.pipeline-step p { color: #a7b8cb; font-size: .86rem; margin-bottom: 0; }
.pipeline-icon { width: 44px; height: 44px; margin-bottom: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; color: #8ee5ef; background: rgba(39,197,221,.08); font-size: .72rem; font-weight: 800; }
.pipeline-arrow { color: #7890ab; font-size: 1.4rem; }

.stats-section { padding-block: 70px; background: #0d1c36; border-top: 1px solid rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px 0; border-left: 1px solid rgba(255,255,255,.14); padding-left: 22px; }
.stat strong { display: block; color: white; font-family: "Manrope", sans-serif; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.stat span { display: block; margin-top: 9px; color: #9db0c5; font-size: .82rem; }

.resources { background: #f7f9fc; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 1.6vw, 24px); }
.resource-card { position: relative; min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; transition: transform 180ms ease, box-shadow 180ms ease; }
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.resource-type { display: block; margin-bottom: 54px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.resource-card h3 { max-width: 300px; margin-bottom: 10px; }
.resource-card p { margin-bottom: 0; max-width: 320px; font-size: .88rem; }
.resource-arrow { position: absolute; right: 24px; top: 24px; font-size: 1.15rem; }
.muted-card { background: #f1f5f9; }

.team-section { background: white; border-block: 1px solid #edf2f7; }
.team-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(60px, 7vw, 110px); align-items: center; }
.team-grid .section-heading { margin-bottom: 0; }
.leadership-grid { display: grid; gap: 14px; }
.person-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fbfdff; }
.person-role { display: block; margin-bottom: 30px; color: var(--blue); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.person-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.person-email { color: var(--muted); font-size: .86rem; transition: color 150ms ease; }
.person-email:hover { color: var(--blue); }

.funding-section { padding: 72px 0; background: linear-gradient(135deg, #eef7ff 0%, #f8f6ff 55%, #fff8ec 100%); }
.funding-grid { display: grid; grid-template-columns: 170px 1fr; gap: 42px; align-items: center; }
.funding-brand { height: 120px; display: grid; place-items: center; border: 1px solid #d8e5f2; border-radius: 22px; background: rgba(255,255,255,.8); color: var(--ink); font-family: "Manrope", sans-serif; font-size: 2rem; font-weight: 850; letter-spacing: -.05em; }
.funding-label { margin-bottom: 8px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.funding-grid h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.funding-grid p:last-child { margin-bottom: 0; font-size: .82rem; letter-spacing: .04em; }

.site-footer { padding: 70px 0 24px; background: #081427; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .8fr; gap: 60px; align-items: start; }
.footer-brand { color: white; margin-bottom: 18px; }
.site-footer p { color: #8ea1b9; max-width: 340px; font-size: .88rem; }
.footer-links { display: grid; gap: 10px; color: #b4c1d0; font-size: .86rem; }
.footer-links a:hover { color: white; }
.footer-funding { display: grid; gap: 4px; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.footer-funding strong { font-size: .8rem; }
.footer-funding span { color: #8ea1b9; font-size: .77rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: #7388a3; font-size: .75rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }

@media (min-width: 1500px) {
  :root { --max-width: 1500px; }
  .hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(500px, .84fr); }
  .hero-copy { max-width: 840px; }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); gap: 46px; }
  h1 { font-size: clamp(3.15rem, 5.7vw, 4.65rem); }
}

@media (max-width: 980px) {
  .section { padding: 88px 0; }
  .hero { padding: 112px 0 72px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-copy { max-width: 800px; }
  .hero-media { max-width: 760px; }
  .hero-note { left: 20px; }
  .split-heading, .team-grid { grid-template-columns: 1fr; gap: 22px; }
  .principle-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
  .principle-card:last-child { grid-column: 1 / -1; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-card, .tool-card.tool-wide { grid-column: auto; min-height: 0; display: flex; }
  .tool-wide .tool-visual { grid-row: auto; margin-bottom: 25px; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 14px; }
  .pipeline-arrow { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-funding { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header.scrolled, .site-header { background: rgba(248,250,252,.96); border-bottom-color: #e8eef5; backdrop-filter: blur(16px); }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: 76px 14px auto; display: none; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; gap: 3px; }
  .site-nav a { padding: 13px 12px; border-radius: 10px; }
  .site-nav a:hover { background: #f4f7fb; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  h1 { font-size: clamp(2.75rem, 14vw, 4.3rem); }
  h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero { padding: 106px 0 64px; }
  .hero-grid { gap: 44px; }
  .funding-pill { font-size: .7rem; }
  .hero-note { position: static; margin: -18px 14px 0; max-width: none; }
  .principle-grid, .resource-grid, .tool-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .principle-card:last-child, .footer-funding { grid-column: auto; }
  .tool-card { min-height: 0; }
  .tool-visual { min-height: 210px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step { min-height: 0; }
  .pipeline-icon { margin-bottom: 22px; }
  .stat { padding-block: 18px; }
  .funding-grid { grid-template-columns: 1fr; gap: 20px; }
  .funding-brand { width: 140px; height: 90px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .section { padding: 74px 0; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .architecture-figure { padding: 8px; border-radius: 18px; }
  .architecture-figure img { border-radius: 12px; }
  .tag-row span { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
