/* ============================================================
   Helix Bio — Precision Biotech
   Instrument Serif + Inter + IBM Plex Mono
   Mobbin: IntegratedBio, Anima, Titan Intake
   ============================================================ */

:root {
  --cream: #f7f8f5;
  --white: #ffffff;
  --ink: #0a0f0d;
  --ink-soft: #3d4a44;
  --forest: #0d2818;
  --forest-mid: #1a3d2a;
  --sage: #4a6741;
  --lime: #a3e635;
  --green: #22c55e;
  --green-deep: #15803d;
  --coral: #e07a5f;
  --border: rgba(10, 15, 13, 0.1);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(163, 230, 53, 0.35); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.mol-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--lime), var(--green));
  z-index: 300;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 32px);
  background: rgba(247, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s, background 0.35s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 248, 245, 0.95);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.logo-mark { width: 28px; height: 28px; color: var(--green-deep); }

.nav-links { display: flex; gap: clamp(16px, 3vw, 28px); }

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

.btn:hover { transform: translateY(-1px); }

.btn-accent {
  background: var(--forest);
  color: var(--lime);
}

.btn-accent:hover {
  background: var(--forest-mid);
  box-shadow: 0 8px 24px rgba(13, 40, 24, 0.25);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn-sm { padding: 10px 20px; font-size: 0.75rem; }
.btn-full { width: 100%; }

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-title { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 20px; }
.hero-title em { font-style: italic; color: var(--green-deep); }

.h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 16px; }
.h2--light { color: var(--cream); }
.h2 .thin { font-weight: 400; opacity: 0.75; }

.body { color: var(--ink-soft); font-size: 1.0625rem; max-width: 48ch; }
.body.center { margin-inline: auto; text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--lime);
  margin-bottom: 20px;
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) clamp(16px, 4vw, 32px) 64px;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero-lead { margin-bottom: 28px; max-width: 42ch; color: var(--ink-soft); }

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 32px;
  padding: 20px 0;
  border-block: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stats span { font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-helix { position: relative; }

.helix-viewport {
  position: relative;
  width: min(360px, 85vw);
  margin: 0 auto;
  cursor: grab;
  touch-action: none;
}

.helix-viewport:active { cursor: grabbing; }

.helix-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(13, 40, 24, 0.15));
}

.helix-node {
  cursor: pointer;
  transition: r 0.2s;
}

.helix-node:hover { filter: url(#glow); }

.helix-tooltip {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  pointer-events: none;
  white-space: nowrap;
}

.helix-tip-label { opacity: 0.6; margin-right: 8px; }

.helix-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* ── Platform ── */
.section {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 100px) clamp(16px, 4vw, 32px);
}

.platform-head { margin-bottom: 40px; }

.platform-stage {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(13, 40, 24, 0.06);
}

.platform-svg { width: 100%; height: auto; }

.platform-node {
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.platform-node circle { transition: fill 0.3s, stroke 0.3s; }

.platform-node.is-active circle {
  fill: url(#nodeGrad);
  stroke: var(--lime);
}

.platform-link {
  stroke: rgba(13, 40, 24, 0.15);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s;
}

.platform-link.is-active { stroke: var(--green); stroke-width: 2; }

.platform-panel {
  padding: 8px 0;
}

.panel-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 8px 0 12px;
}

.panel-body { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 20px; }

.panel-metrics {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.panel-metrics dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.panel-metrics dd { font-size: 0.9375rem; font-weight: 500; }

/* ── Pipeline ── */
.pipeline {
  position: relative;
  z-index: 2;
  background: var(--forest);
  color: var(--cream);
  padding: clamp(64px, 10vw, 100px) clamp(16px, 4vw, 32px);
}

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

.pipeline-head { margin-bottom: 40px; }

.pipeline-body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
}

.pipeline-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pipe-tab {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 248, 245, 0.6);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.pipe-tab.is-active {
  background: var(--lime);
  color: var(--forest);
  border-color: var(--lime);
}

.pipeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pipe-program {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 32px 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: padding-left 0.25s;
  position: relative;
}

.pipe-program:hover { padding-left: 8px; }
.pipe-program.is-active { padding-left: 8px; }

.pipe-id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--lime);
  min-width: 56px;
}

.pipe-name { font-weight: 600; font-size: 0.9375rem; }
.pipe-indication { font-size: 0.8125rem; opacity: 0.6; }

.metric-bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.metric-bar-label {
  font-size: 0.75rem;
  opacity: 0.7;
}

.metric-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--green));
  border-radius: 3px;
  width: 0%;
  transition: width 0.8s var(--ease);
}

.metric-bar-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: right;
  color: var(--lime);
}

/* ── Science / Redact ── */
.science-wrap { margin-bottom: 48px; }

.redact-block {
  position: relative;
  max-width: 720px;
}

.redact-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
}

.redact-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}

.redact-cell {
  background: var(--ink);
  border-radius: 2px;
  transition: opacity 0.15s, transform 0.15s;
}

.redact-cell.is-revealed {
  opacity: 0;
  transform: scale(0.8);
}

.redact-hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sage);
}

.science-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.science-visual {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8ebe6;
}

.science-visual img { width: 100%; height: 100%; object-fit: cover; }
.science-visual:has(img:not([hidden])) .edit-ph { display: none; }

.edit-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: #e0e4dc;
  text-align: center;
}

.science-specs dl {
  display: grid;
  gap: 20px;
}

.science-specs dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}

.science-specs dd { font-size: 1rem; font-weight: 500; }

.img-badge {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--forest);
  color: var(--lime);
  padding: 4px 10px;
  border-radius: 4px;
}

.img-title { font-size: 0.875rem; font-weight: 500; }

.img-copy {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  cursor: pointer;
}

.img-copy.copied { background: rgba(163, 230, 53, 0.2); border-color: var(--green); }

/* ── Insights ── */
.section-head { margin-bottom: 40px; }

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.insight-card {
  border: 1px solid var(--coral);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(224, 122, 95, 0.12);
}

.insight-card figure {
  aspect-ratio: 16/10;
  background: #e8ebe6;
  position: relative;
  overflow: hidden;
}

.insight-card img { width: 100%; height: 100%; object-fit: cover; }
.insight-card figure:has(img:not([hidden])) .edit-ph { display: none; }

.insight-card time {
  display: block;
  padding: 16px 16px 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--sage);
}

.insight-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 8px 16px 12px;
  line-height: 1.3;
}

.insight-link {
  display: inline-block;
  padding: 0 16px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--coral);
}

/* ── Contact ── */
.contact {
  background: var(--white);
  border-top: 1px solid var(--border);
  max-width: none;
}

.contact-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(64px, 10vw, 100px) clamp(16px, 4vw, 32px);
}

.contact .body { margin-bottom: 28px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form select {
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: 8px;
}

.contact-form input:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--green);
}

.contact-form .btn { margin-top: 8px; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: rgba(247, 248, 245, 0.7);
  padding: 40px clamp(16px, 4vw, 32px);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-weight: 600;
  color: var(--cream);
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.8125rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--lime); }

.footer-ref {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.75rem;
  opacity: 0.5;
}

.footer-ref a { color: var(--lime); text-decoration: underline; }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--forest);
  color: var(--cream);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.875rem;
  z-index: 400;
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  border: 1px solid rgba(163, 230, 53, 0.3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── MOA Explorer ── */
.moa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.moa-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0 16px;
}

.moa-step-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.moa-step-btn.is-active {
  border-color: var(--green);
  background: rgba(163, 230, 53, 0.1);
  transform: translateX(4px);
}

.moa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.moa-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.moa-step-desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 16px;
  background: var(--white);
  border-radius: 8px;
  border-left: 3px solid var(--lime);
}

.moa-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(13, 40, 24, 0.06);
}

.moa-svg { width: 100%; height: auto; }

.moa-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}

.moa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--green));
  width: 25%;
  transition: width 0.5s var(--ease);
}

/* ── Clinical Trials ── */
.trials { background: var(--white); max-width: none; border-block: 1px solid var(--border); }
.trials-head, .trials-toolbar, .trial-results { max-width: 1100px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.trials-head { padding-top: clamp(64px, 10vw, 100px); }
.trials-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  padding-bottom: 24px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.filter-field select {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  min-width: 160px;
}

.trial-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--sage);
}

.trial-results {
  display: grid;
  gap: 16px;
  padding-bottom: clamp(64px, 10vw, 100px);
}

.trial-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.trial-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(13, 40, 24, 0.06);
}

.trial-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.trial-nct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sage);
}

.trial-status {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.trial-status--open { background: rgba(163, 230, 53, 0.2); color: var(--green-deep); }
.trial-status--closed { background: rgba(10, 15, 13, 0.08); color: var(--ink-soft); }

.trial-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 6px; }
.trial-meta { font-size: 0.8125rem; color: var(--ink-soft); margin-bottom: 8px; }
.trial-locations { font-size: 0.8125rem; margin-bottom: 16px; }

.trial-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.trial-empty { text-align: center; padding: 40px; color: var(--ink-soft); }

.link-btn {
  background: none;
  border: none;
  color: var(--green-deep);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Timeline ── */
.timeline-section {
  position: relative;
  z-index: 2;
  background: var(--cream);
  padding-bottom: clamp(64px, 10vw, 100px);
  overflow-x: auto;
}

.timeline-track {
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 48px;
  left: clamp(16px, 4vw, 32px);
  right: clamp(16px, 4vw, 32px);
  height: 2px;
  background: var(--border);
}

.timeline-item {
  flex: 1;
  min-width: 160px;
  padding-top: 72px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.timeline-item.is-visible { opacity: 1; transform: none; }

.timeline-year {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sage);
}

.timeline-dot {
  position: absolute;
  top: 40px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--lime);
  z-index: 1;
}

.timeline-item.is-visible .timeline-dot {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.5);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.timeline-content p { font-size: 0.8125rem; color: var(--ink-soft); padding-right: 16px; }

/* ── Filter chips (shared) ── */
.insight-filters, .resource-filters, .career-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-chip.is-active {
  background: var(--forest);
  color: var(--lime);
  border-color: var(--forest);
}

/* ── Resources ── */
.resources { background: var(--white); max-width: none; border-top: 1px solid var(--border); }
.resources-head, .resource-toolbar, .resource-list { max-width: 1100px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.resources-head { padding-top: clamp(64px, 10vw, 100px); }

.resource-toolbar { margin-bottom: 24px; }

.resource-search {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  margin-bottom: 16px;
}

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: clamp(64px, 10vw, 100px);
}

.resource-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: 8px;
  transition: background 0.2s;
}

.resource-row:hover { background: rgba(163, 230, 53, 0.08); }

.resource-type {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

.resource-info h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 2px; }
.resource-meta { font-size: 0.75rem; color: var(--ink-soft); }

/* ── Careers ── */
.career-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.career-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.career-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.career-info p { font-size: 0.8125rem; color: var(--ink-soft); }

/* ── Program drawer ── */
.program-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

.program-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 13, 0.5);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100%;
  background: var(--cream);
  padding: 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.15);
}

.program-drawer.is-open .drawer-panel { transform: none; }

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--lime);
  background: var(--forest);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 12px;
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 12px;
  padding-right: 40px;
}

.drawer-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.drawer-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.drawer-specs {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-specs dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

.drawer-specs dd { font-size: 0.875rem; font-weight: 500; }

.drawer-mechanism {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
}

.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Contact tabs ── */
.contact-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: var(--cream);
  padding: 4px;
  border-radius: 999px;
}

.contact-tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-tab.is-active {
  background: var(--forest);
  color: var(--lime);
}

/* ── Pipeline arrow ── */
.pipe-program {
  position: relative;
}

.pipe-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--lime);
  transition: opacity 0.25s, transform 0.25s;
}

.pipe-program:hover .pipe-arrow,
.pipe-program.is-active .pipe-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

@media (max-width: 900px) {
  .moa-grid, .resource-row { grid-template-columns: 1fr; }
  .resource-row .btn { justify-self: start; }
  .timeline-track { flex-direction: column; }
  .timeline-track::before { display: none; }
  .timeline-item { padding-top: 0; padding-left: 32px; min-width: auto; }
  .timeline-dot { top: 4px; left: 0; }
  .timeline-year { position: static; margin-bottom: 8px; display: block; }
}

@media (max-width: 768px) {
  .hero-grid, .platform-stage, .pipeline-content, .science-split { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-helix { order: 0; }
  .trials-toolbar { flex-direction: column; align-items: stretch; }
  .trial-count { margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-links, .nav .btn-accent { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 24px 32px;
    background: rgba(247, 248, 245, 0.98);
    border-bottom: 1px solid var(--border);
  }
  .hero-stats { flex-direction: column; gap: 16px; }
}
