/* D2 Biosciences — site styles */
:root {
  --navy: #0B2545;
  --navy-2: #12315C;
  --navy-line: #22426E;
  --ink: #13213C;
  --slate: #44546E;
  --muted: #5A6A82;
  --mist: #F4F8FB;
  --line: #E3EAF2;
  --line-2: #C9D6E4;
  --sky: #7FA6DA;
  --teal: #0FA3B1;
  --teal-text: #0B7A85;
  --teal-light: #6FD6DF;
  --amber: #F2A541;
  --amber-dark: #C9781A;
  --amber-text: #8A520C;
  --on-navy: #C7D4E6;
  --radius: 20px;
  --max: 1240px;
  --display: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); }
a:hover { color: #075A62; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding: 104px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); font-weight: 500; }
.section--navy .eyebrow { color: var(--teal-light); }
.h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
.h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; }
.h3 { font-weight: 700; font-size: 22px; line-height: 1.3; }
.lead { font-size: 19px; color: var(--slate); max-width: 600px; }
.body { font-size: 17px; color: var(--slate); line-height: 1.7; }
.section--navy .body, .section--navy .lead { color: var(--on-navy); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: #163A6B; color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--teal { background: var(--teal); color: #06232A; font-weight: 700; }
.btn--teal:hover { background: #22B8C6; color: #06232A; }
.btn--outline-light { color: #fff; border-color: #3C5A85; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--teal-text); }
.nav a[aria-current="page"] { color: var(--teal-text); font-weight: 600; }
.nav .btn { color: #fff; padding: 0 20px; min-height: 44px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.hero { background: var(--mist); padding: 88px 0 80px; }
.hero .split { gap: 56px; }
.hero-figure { margin: 0; position: relative; border-radius: 28px; overflow: hidden; background: var(--navy); box-shadow: 0 24px 60px rgba(11,37,69,.18); }
.hero-figure img { width: 100%; aspect-ratio: 1200 / 688; object-fit: cover; }
.hero-figure figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(11,37,69,.82); color: #fff; border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.page-hero { background: var(--mist); padding: 88px 0 80px; }
.page-hero .h1 { font-size: clamp(38px, 5vw, 60px); max-width: 960px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px; text-decoration: none; color: var(--navy); font-size: 15px; font-weight: 500; }
.chip:hover { border-color: var(--navy); color: var(--navy); }

/* Proof strip */
.proof { border-bottom: 1px solid var(--line); padding: 36px 0; }
.proof .grid-3 { gap: 32px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 15px; color: var(--slate); }

/* Survival bars */
.bars { background: var(--mist); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.bars-title { font-size: 14px; font-weight: 600; color: var(--slate); }
.bar-group { display: flex; flex-direction: column; gap: 12px; }
.bar-group h3 { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.bar-row { display: grid; grid-template-columns: 48px 1fr 40px; gap: 12px; align-items: center; font-size: 13px; color: var(--slate); }
.bar-row strong { color: var(--ink); font-size: 15px; }
.bar-track { background: var(--line); height: 28px; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.is-visible .bar-fill { width: var(--w); }
.fill-sky { background: var(--sky); } .fill-navy { background: var(--navy); }
.fill-amber-light { background: #F7C98A; } .fill-amber { background: var(--amber-dark); }
.source { font-size: 13px; color: var(--muted); }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.card p { color: var(--slate); font-size: 16px; }
.card--navy { background: var(--navy-2); border-color: var(--navy-2); }
.card--navy p { color: var(--on-navy); }
.card-num { font-family: var(--mono); font-size: 14px; color: var(--teal-light); }
.tag { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--amber-text); }
.approach-media { width: 100%; max-width: 420px; justify-self: end; height: auto; }

/* Pipeline */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.pipeline { width: 100%; min-width: 880px; border-collapse: collapse; }
.pipeline th { background: var(--mist); text-align: left; font-size: 13px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; padding: 18px 20px; }
.pipeline td { border-top: 1px solid var(--line); padding: 24px 20px; vertical-align: middle; font-size: 15px; }
.pipeline .prog { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--navy); display: block; }
.pipeline .sub { font-size: 14px; color: var(--slate); }
.stage { height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 14px; font-size: 12px; font-weight: 600; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); white-space: nowrap; overflow: hidden; }
.is-visible .stage { width: var(--w); }
.stage--teal { background: var(--teal); color: #06343A; }
.stage--amber { background: var(--amber); color: #4A2C05; }

/* Team */
.team-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.team-photo { background: #E8F0F7; padding-top: 32px; display: flex; justify-content: center; }
.team-photo img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(11,37,69,.15); margin-bottom: -40px; }
.team-body { padding: 60px 28px 28px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.team-role { font-size: 14px; font-weight: 600; color: var(--teal-text); }
.team-body p { font-size: 15px; color: var(--slate); }

/* Publications */
.pubs { border-top: 1px solid var(--line); }
.pub { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pub-main { display: flex; gap: 20px; font-size: 16px; line-height: 1.55; }
.pub-year { font-family: var(--mono); font-size: 14px; color: var(--teal-text); padding-top: 2px; flex: 0 0 44px; }
.pub-main em { color: var(--slate); }
.pub-note { font-size: 15px; color: var(--slate); line-height: 1.55; }

/* Figures */
.figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.figure-frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.figure-frame--tight { padding: 16px; }
.figure-frame--tight img { border-radius: 12px; }
.figure figcaption { font-size: 14px; color: var(--slate); }
.figure-panel { background: var(--mist); border-radius: 24px; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step small { font-family: var(--mono); font-size: 12px; color: var(--slate); }
.step strong { font-family: var(--display); font-size: 17px; color: var(--navy); line-height: 1.3; }
.step span { font-size: 14px; color: var(--slate); line-height: 1.5; }
.step--key { border: 2px solid var(--amber); padding: 19px; }
.step--key small { color: var(--amber-text); }
.step--out { background: var(--navy); border-color: var(--navy); }
.step--out small { color: var(--teal-light); }
.step--out strong { color: #fff; }
.step--out span { color: var(--on-navy); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--teal-text); font-weight: 700; }
.adc-card { margin: 0; background: #fff; border-radius: 24px; padding: 32px; max-width: 480px; width: 100%; justify-self: end; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.mech { background: var(--navy-2); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.mech small { font-family: var(--mono); font-size: 13px; color: var(--teal-light); }
.mech strong { font-family: var(--display); font-size: 18px; color: #fff; }
.mech span { font-size: 15px; color: var(--on-navy); line-height: 1.55; }
.mech--teal { border-top: 4px solid var(--teal); }
.mech--amber { border-top: 4px solid var(--amber); }
.mech--amber small { color: #F7C98A; }

/* Big stats (why page) */
.big-stat { border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.big-stat .n { font-family: var(--display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--navy); }
.big-stat .n--amber { color: var(--amber-dark); }
.mini-track { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.is-visible .mini-fill { width: var(--w); }
.gap-card { background: var(--navy); color: #fff; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.gap-card p { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.3; }
.benefit { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 3px solid var(--teal); }
.benefit p { color: var(--slate); font-size: 16px; }

/* Contact / footer */
.cta { background: var(--navy); color: #fff; padding: 96px 0 48px; }
.cta .lead, .cta .eyebrow { color: var(--on-navy); }
.cta .eyebrow { color: var(--teal-light); }
.cta h2 { color: #fff; font-size: clamp(34px, 4vw, 48px); font-weight: 800; line-height: 1.08; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-form { background: var(--navy-2); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--on-navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-note { font-size: 14px; color: var(--teal-light); min-height: 1.4em; }
.footer-bar { border-top: 1px solid var(--navy-line); margin-top: 72px; padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; font-size: 14px; color: var(--on-navy); }
.footer-bar a { color: var(--on-navy); }
.footer-bar a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 800; }
.footer-brand span.logo-chip { background: #fff; border-radius: 10px; padding: 4px 6px; display: flex; }
.footer-brand img { height: 30px; width: auto; }
.contact-list { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; font-size: 16px; color: var(--on-navy); }
.contact-list a { color: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar-fill, .stage, .mini-fill { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .split, .cta-grid, .pub { grid-template-columns: 1fr; gap: 40px; }
  .pub { gap: 8px; }
  .grid-3 { grid-template-columns: 1fr; }
  .approach-media, .adc-card { justify-self: start; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 24px; display: none; box-shadow: 0 16px 32px rgba(11,37,69,.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav { padding: 8px 16px 24px; }
  .hero, .page-hero { padding: 56px 0; }
  .steps, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .bars, .figure-panel, .contact-form { padding: 24px; }
  .big-stat .n { font-size: 56px; }
  .brand span { font-size: 18px; }
}
