:root {
  --ink: #17201b;
  --muted: #65706a;
  --line: #dfe6e1;
  --paper: #fbfcf8;
  --soft: #eef4ed;
  --navy: #12324a;
  --blue: #1d5f8d;
  --green: #1f6b52;
  --teal: #166777;
  --cranberry: #9d3150;
  --gold: #c7962c;
  --shadow: 0 22px 65px rgba(23, 32, 27, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.text-link {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 250px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(145deg, var(--green), var(--teal));
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--green);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(42px, 6vw, 96px) clamp(18px, 6vw, 86px) 42px;
}

.home-hero {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  padding: clamp(54px, 8vw, 118px) clamp(18px, 6vw, 86px);
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 22, 38, 0.92), rgba(8, 22, 38, 0.62) 50%, rgba(8, 22, 38, 0.18)),
    url("images/research-hero-selected.jpg") center / cover;
}

.home-hero-copy {
  max-width: 980px;
}

.home-hero .eyebrow {
  color: #f0c45f;
}

.home-hero .lead {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cranberry);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4.9rem);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
}

.lead,
.page-intro p {
  max-width: 760px;
  color: #405049;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--green);
}

.button.secondary {
  color: var(--green);
  border: 1px solid rgba(31, 107, 82, 0.28);
  background: white;
}

.hero-figure,
.image-narrative figure {
  margin: 0;
}

.hero-figure {
  align-self: stretch;
  display: grid;
  align-content: center;
}

.hero-figure img,
.image-narrative img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.impact-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.impact-band article {
  padding: clamp(24px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.impact-band article:last-child {
  border-right: 0;
}

.impact-band span,
.pub-year {
  color: var(--gold);
  font-weight: 900;
}

.impact-band p,
.research-pillars p,
.capability-table p,
.publication-list p,
.split-section p,
.image-narrative p,
.workflow p {
  color: #4f5e56;
}

.split-section,
.image-narrative,
.page-intro,
.workflow,
.sources-panel,
.wide-band,
.approach-section,
.support-callout,
.updates-preview {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 86px);
}

.research-intro {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 24, 24, 0.9), rgba(8, 24, 24, 0.6) 46%, rgba(8, 24, 24, 0.1)),
    url("images/research-hero-selected.jpg") center / cover;
}

.industry-hero {
  min-height: calc(86vh - 82px);
  display: flex;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 22, 38, 0.94), rgba(8, 22, 38, 0.64) 54%, rgba(8, 22, 38, 0.16)),
    url("images/platform-collage-edited.jpg") center / cover;
}

.industry-hero > div {
  max-width: 960px;
}

.industry-hero .eyebrow {
  color: #f0c45f;
}

.industry-hero p {
  color: rgba(255, 255, 255, 0.88);
}

.research-intro figure {
  display: none;
}

.research-intro > div {
  max-width: 920px;
}

.research-intro .eyebrow {
  color: #f0c45f;
}

.research-intro p {
  color: rgba(255, 255, 255, 0.88);
}

.split-section,
.image-narrative {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.75fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.image-narrative.reverse {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 0.88fr);
}

.image-narrative.reverse figure {
  order: 2;
}

.quiet-panel,
.callout {
  padding: 24px;
  border-left: 5px solid var(--teal);
  background: var(--soft);
}

.wide-band {
  color: white;
  background: var(--navy);
}

.wide-band > div {
  max-width: 980px;
}

.wide-band .eyebrow {
  color: #f0c45f;
}

.wide-band p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 28px;
}

.list-heading {
  margin: 0 clamp(18px, 6vw, 86px) 28px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.approach-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.industry-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.industry-card-grid article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.industry-card-grid h3 {
  font-size: 1.08rem;
  line-height: 1.22;
}

.platform-section {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 86px);
  background: #f5f8fa;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.platform-grid article {
  padding: 24px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: white;
}

.section-note {
  max-width: 860px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.use-case-grid article {
  min-height: 190px;
}

.support-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inline-visual {
  margin: 0;
}

.inline-visual img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.support-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: white;
  background:
    linear-gradient(90deg, rgba(18, 50, 74, 0.96), rgba(18, 50, 74, 0.76)),
    url("images/hero-microscopy-edited.jpg") center / cover;
}

.support-callout > div {
  max-width: 840px;
}

.support-callout .eyebrow {
  color: #f0c45f;
}

.support-callout p {
  color: rgba(255, 255, 255, 0.86);
}

.support-callout .text-link {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 750;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.light-form label {
  color: white;
}

.hidden-field {
  display: none;
}

.updates-preview {
  background: #f5f8fa;
}

.feature-grid.compact {
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid,
.research-pillars,
.capability-table,
.publication-list {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 6vw, 86px) clamp(54px, 7vw, 98px);
}

.feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 260px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
  border-color: rgba(31, 107, 82, 0.45);
  box-shadow: 0 18px 48px rgba(23, 32, 27, 0.1);
  transform: translateY(-2px);
}

.feature-card div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 26px;
}

.feature-card h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 16px;
  background: var(--gold);
}

.research-pillars,
.capability-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.research-pillars {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.research-pillars article,
.capability-table article,
.publication-list article,
.sources-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.capability-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collaboration-section {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 86px);
  background: #f5f7f2;
}

.collaboration-section > div {
  max-width: 980px;
}

@media (max-width: 1450px) and (min-width: 981px) {
  .feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feature-card {
    grid-column: span 2;
  }

  .feature-card:nth-last-child(-n + 2) {
    grid-column: span 3;
  }

  .research-pillars {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .research-pillars article {
    grid-column: span 2;
  }

  .research-pillars article:nth-last-child(-n + 2) {
    grid-column: span 3;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .capability-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.industry-intro {
  background: linear-gradient(135deg, rgba(238, 244, 237, 0.9), rgba(255, 255, 255, 0));
}

.about-hero,
.support-hero,
.innovation-hero {
  position: relative;
  color: white;
  background:
    linear-gradient(90deg, rgba(10, 28, 27, 0.88), rgba(10, 28, 27, 0.55)),
    url("images/hero-microscopy-edited.jpg") center / cover;
}

.about-hero .eyebrow,
.support-hero .eyebrow,
.innovation-hero .eyebrow {
  color: #f0c45f;
}

.about-hero p,
.support-hero p,
.innovation-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.credibility-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.credibility-grid h3 {
  color: var(--navy);
}

.credibility-grid p {
  color: #4f5e56;
}

.clean-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #4f5e56;
}

.workflow {
  background: #f5f7f2;
}

.workflow ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.workflow span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--cranberry);
  font-weight: 800;
}

.publication-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.updates-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.publication-list article {
  min-height: 265px;
}

.citation {
  font-size: 0.9rem;
  font-weight: 700;
}

.sources-panel {
  margin: 0 clamp(18px, 6vw, 86px) clamp(54px, 7vw, 98px);
}

.sources-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.sources-panel li + li {
  margin-top: 8px;
}

.data-tools-intro,
.data-viewer-intro {
  background: linear-gradient(135deg, rgba(238, 244, 237, 0.95), rgba(255, 255, 255, 0));
}

.data-tool-list {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  gap: 18px;
}

.data-tool-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-decoration: none;
}

.data-tool-card:hover {
  border-color: rgba(31, 107, 82, 0.44);
  box-shadow: 0 14px 42px rgba(23, 32, 27, 0.09);
}

.data-tool-card span {
  color: var(--cranberry);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-tool-card p,
.data-viewer-note,
.gene-controls p,
.viewer-status,
.gene-plot-title p,
.data-source-section p {
  color: #4f5e56;
}

.stage-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.stage-guide span {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #405049;
  font-size: 0.92rem;
}

.stage-guide strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.data-viewer-shell,
.data-source-section {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 86px);
}

.data-viewer-shell {
  background: #f5f7f2;
}

.gene-controls {
  max-width: 980px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.gene-controls label,
.gene-controls legend {
  font-weight: 800;
}

.gene-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 10px;
}

.gene-control-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font: inherit;
}

.scale-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scale-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #405049;
  font-weight: 700;
}

.viewer-status {
  max-width: 980px;
  margin: 0 0 18px;
  font-weight: 700;
}

.plot-stack {
  display: grid;
  gap: 24px;
  max-width: 980px;
}

.gene-plot-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.gene-plot-title {
  margin-bottom: 8px;
}

.gene-plot-title h3 {
  color: var(--navy);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.gene-plot-panel svg {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
}

.chart-grid line {
  stroke: #edf1ed;
  stroke-width: 2;
}

.chart-axes line {
  stroke: #26342d;
  stroke-width: 2.4;
}

.axis-tick {
  fill: #26342d;
  font-size: 20px;
  font-weight: 750;
}

.x-axis-tick {
  font-size: 22px;
}

.axis-label {
  fill: #17201b;
  font-size: 24px;
  font-weight: 850;
}

.mean-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.replicate-dots circle {
  fill: var(--teal);
  opacity: 0.7;
}

.mean-dot {
  fill: white;
  stroke: var(--green);
  stroke-width: 4;
}

.error-bar line {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}

.metadata-details {
  max-width: 980px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.metadata-details summary {
  cursor: pointer;
  font-weight: 800;
}

.metadata-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.metadata-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.94rem;
}

.metadata-table th,
.metadata-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.metadata-table th {
  color: var(--navy);
  background: var(--soft);
}

.sc-viewer-shell {
  background: #f3f6f3;
}

.sc-gene-controls {
  max-width: 1120px;
}

.sc-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1480px;
}

.sc-panel-grid.lower {
  margin-top: 24px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.sc-plot-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.sc-plot-panel canvas,
.sc-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.sc-svg-wrap {
  overflow-x: auto;
}

.sc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: #405049;
  font-size: 0.86rem;
  font-weight: 700;
}

.sc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-legend i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.sc-gradient-legend {
  display: grid;
  grid-template-columns: auto minmax(120px, 220px) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #405049;
  font-size: 0.86rem;
  font-weight: 800;
}

.sc-gradient-legend div {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9dfdc, #9eb9a5, #688c8c, #68468c);
}

.sc-dot-label {
  font-size: 18px;
}

.sc-dot-row {
  font-size: 15px;
}

.site-footer {
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: white;
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .image-narrative,
  .image-narrative.reverse,
  .approach-grid,
  .credibility-grid,
  .industry-card-grid,
  .platform-grid,
  .support-grid,
  .updates-list,
  .feature-grid.compact {
    grid-template-columns: 1fr;
  }

  .support-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .image-narrative.reverse figure {
    order: 0;
  }

  .impact-band,
  .feature-grid,
  .credibility-grid,
  .research-pillars,
  .capability-table,
  .publication-list,
  .stage-guide,
  .workflow ol {
    grid-template-columns: 1fr 1fr;
  }

  .plot-stack,
  .gene-controls,
  .viewer-status {
    max-width: none;
  }

  .sc-panel-grid,
  .sc-panel-grid.lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
  }

  .home-hero {
    min-height: auto;
  }

  .industry-hero {
    min-height: auto;
  }

  .research-intro {
    min-height: auto;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.02;
  }

  .impact-band,
  .feature-grid,
  .credibility-grid,
  .research-pillars,
  .capability-table,
  .publication-list,
  .stage-guide,
  .workflow ol {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-template-rows: 210px auto;
    min-height: auto;
  }

  .gene-control-row {
    grid-template-columns: 1fr;
  }

  .gene-plot-panel {
    padding: 14px;
  }
}
