/* ============================================================
   OmicsEdge MO — Molecular Biology Design System
   Full re-theme: sequencer terminal aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=DM+Serif+Display:ital@0;1&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES — Molecular Biology Palette
   ============================================================ */
:root {
  /* === Core palette === */
  --bg:         #050A06;       /* Sequencer dark field */
  --bg2:        #091210;       /* Slightly lighter panel */
  --bg3:        #0D1A0F;       /* Surface panels */
  --bg-glass:   rgba(5,10,6,0.85);
  --surface:    #111E13;       /* Card surfaces */
  --surface2:   #172019;       /* Hover state */

  /* === Phosphor green — primary accent (Sequencer screen) === */
  --green:      #26A769;       /* Primary bio-green */
  --green-dim:  #1D6B52;       /* Muted green */
  --green-glow: rgba(38,167,105,0.18);
  --green-lo:   rgba(38,167,105,0.08);

  /* === Fluorescent amber — secondary accent (EtBr under UV) === */
  --amber:      #E8A534;       /* EtBr fluorescence amber */
  --amber-dim:  #B85C2A;       /* Muted amber */
  --amber-glow: rgba(232,165,52,0.15);

  /* === Phosphor text === */
  --fg:         #C8F0D4;       /* Primary text — phosphor green-white */
  --fg2:        #8DC4A0;       /* Secondary text */
  --fg3:        #4A7A5C;       /* Muted text */
  --fg-muted:   var(--fg2);   /* Alias — pipeline walkthrough + shared components */
  --fg-inv:     #050A06;       /* Text on bright surfaces */

  /* === Sanger base colors === */
  --base-A:     #26A769;       /* Adenine — green */
  --base-T:     #E8A534;       /* Thymine — amber */
  --base-G:     #4AA8C4;       /* Guanine — cyan */
  --base-C:     #C45E8C;       /* Cytosine — pink */

  /* === UI chrome === */
  --border:     rgba(38,167,105,0.15);
  --border2:    rgba(38,167,105,0.08);
  --track-line: rgba(38,167,105,0.25);
  --nav-bg:     rgba(5,10,6,0.92);

  /* === Typography === */
  --mono:  'DM Mono', 'Courier New', monospace;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Instrument Sans', system-ui, sans-serif;

  /* === Spacing === */
  --section-pad: 5rem clamp(1rem,4vw,3rem);
  --radius: 4px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.72;
  min-height: 100vh;
  padding-top: 64px;
  overflow-x: clip; /* clip (not hidden) — does not trap position:fixed children */
  /* Subtle genome-grid background */
  background-image:
    linear-gradient(rgba(38,167,105,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,167,105,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 2px; }

/* ============================================================
   SELECTION
   ============================================================ */
::selection { background: rgba(38,167,105,0.3); color: var(--fg); }

/* ============================================================
   GENOME TRACK DIVIDER — replaces <hr>
   Used as section separator via .track-divider
   ============================================================ */
.track-divider {
  margin: 0;
  padding: 0;
  height: 28px;
  display: flex;
  align-items: center;
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border2);
  overflow: hidden;
  position: relative;
}

.track-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-dim) 0px, var(--green-dim) 24px,
    var(--amber-dim) 24px, var(--amber-dim) 28px,
    transparent 28px, transparent 34px,
    var(--green-dim) 34px, var(--green-dim) 58px,
    transparent 58px, transparent 62px
  );
  opacity: 0.4;
}

.track-label {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--fg3);
  padding: 0 16px;
  background: var(--bg2);
}

/* ============================================================
   NAV — Genome browser toolbar aesthetic
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem,4vw,3rem);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
}

/* Genome position indicator bar at very top */
nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-dim) 0, var(--green-dim) 8px,
    var(--amber-dim) 8px, var(--amber-dim) 10px,
    transparent 10px, transparent 16px
  );
  opacity: 0.5;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  flex-shrink: 0;
  height: 34px;
  width: auto;
}

.nav-logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.nav-logo-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.nav-logo-name .edge { color: var(--green); }

.nav-logo-tagline {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--green);
  opacity: 0.8;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg3);
  text-decoration: none;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  border-right: 0.5px solid var(--border2);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: var(--green-lo);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-inv);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #30C980;
  box-shadow: 0 0 16px var(--green-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(38,167,105,0.4);
  border-radius: var(--radius);
  padding: 11px 22px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--green);
  background: var(--green-lo);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-inv);
  background: var(--green);
  border-radius: var(--radius);
  padding: 8px 18px;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: #30C980; }

/* ============================================================
   FASTA SECTION HEADER — replaces section-label
   Pattern: >section.id description
   ============================================================ */
.fasta-header {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--green);
  opacity: 0.8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fasta-header::before {
  content: '>';
  color: var(--amber);
  font-weight: 600;
  font-size: 12px;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--fg2);
  max-width: 560px;
  line-height: 1.8;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

/* ONT flowcell pore-grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(38,167,105,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-kicker::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 2rem;
}

/* Pipeline statement in hero */
.hero-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: 11px;
}

.hp-pill {
  padding: 5px 12px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}

.hp-input  { background: rgba(38,167,105,0.1);  border: 0.5px solid rgba(38,167,105,0.3); color: var(--green); }
.hp-arrow  { color: var(--fg3); }
.hp-proc   { background: rgba(232,165,52,0.08); border: 0.5px solid rgba(232,165,52,0.25); color: var(--amber); }
.hp-output { background: rgba(38,167,105,0.12); border: 0.5px solid rgba(38,167,105,0.4); color: #4FFFB0; }

/* Hero right — ONT flowcell SVG visualization */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
}

.stat-cell {
  flex: 1;
  min-width: 120px;
  padding: 1.25rem 1.5rem;
  border-right: 0.5px solid var(--border);
  position: relative;
}

.stat-cell:last-child { border-right: none; }

.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green);
  font-weight: 500;
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* PHRED quality bars row */
.phred-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 28px;
}

.phred-bar {
  width: 5px;
  background: var(--green);
  border-radius: 1px 1px 0 0;
  transition: height 0.8s cubic-bezier(0.34,1.56,0.64,1);
  height: 3px;
}

.phred-bar.lo { background: var(--amber); }
.phred-bar.med { background: rgba(38,167,105,0.6); }

/* ============================================================
   SECTION WRAP
   ============================================================ */
.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   RESTRICTION SITE RULER — section separator
   Like a plasmid restriction map
   ============================================================ */
.re-ruler {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--fg3);
  letter-spacing: 0.08em;
  margin: 3rem 0;
  overflow: hidden;
}

.re-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 0 10px;
}

.re-site-name { color: var(--amber); font-size: 7px; }
.re-site-cut {
  width: 1px;
  height: 14px;
  background: rgba(232,165,52,0.5);
}

.re-ruler-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   SERVICE CARDS — PCR thermocycler step aesthetic
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 1.5px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.svc-card {
  background: var(--bg2);
  padding: 2rem;
  position: relative;
  transition: background 0.2s;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green-dim);
  opacity: 0;
  transition: opacity 0.2s;
}

.svc-card:hover {
  background: var(--bg3);
}

.svc-card:hover::before { opacity: 1; }

.svc-num {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-num::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.svc-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--fg);
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.svc-desc {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.svc-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--green);
  background: var(--green-lo);
  border: 0.5px solid var(--border);
  border-radius: 2px;
  padding: 3px 8px;
}

/* ============================================================
   WHY CARDS — genome annotation track-style
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1rem;
}

.why-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green-dim);
}

.why-card:nth-child(2n)::after { background: var(--amber-dim); }

.why-icon {
  width: 36px;
  height: 36px;
  background: var(--green-lo);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.why-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.72;
}

/* ============================================================
   COVERAGE STRIP  — read-depth histogram accent divider
   Replaces the old scrolling nucleotide ticker.
   Bars are generated by main.js → initCovStrip()
   ============================================================ */
.cov-strip-wrap {
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  height: 52px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  position: relative;
}

/* Subtle left-edge label */
.cov-strip-wrap::before {
  content: 'READ DEPTH';
  position: absolute;
  left: 12px;
  bottom: 6px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--fg3);
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

.cov-strip {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  padding: 0 0 6px 76px; /* left padding to clear the label */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.cov-bar {
  flex-shrink: 0;
  width: 2px;
  border-radius: 1px 1px 0 0;
  transform-origin: bottom;
  animation: covBreath var(--bar-dur, 3s) ease-in-out infinite;
}

@keyframes covBreath {
  0%, 100% { transform: scaleY(0.55); opacity: 0.35; }
  50%       { transform: scaleY(1);   opacity: 0.85; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cov-bar { animation: none; transform: scaleY(0.75); opacity: 0.5; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 0.5px solid var(--border);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s;
}

.faq-q:hover { color: var(--green); }

.faq-chevron {
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
  transition: transform 0.25s;
  margin-top: 2px;
}

.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(90deg); }

.faq-a {
  /* Smooth open/close via max-height transition instead of display toggle */
  max-height: 0;
  overflow: hidden;
  padding: 0;
  color: var(--fg2);
  font-size: 14px;
  line-height: 1.85;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.22,1,0.36,1),
              padding 0.25s ease,
              opacity 0.25s ease;
}

.faq-a.open {
  max-height: 600px;
  padding: 0 0 1.25rem;
  opacity: 1;
}

.faq-a p + p { margin-top: 0.75rem; }
.faq-a ul, .faq-a ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
  color: var(--fg2);
  line-height: 1.85;
}
.faq-a strong { color: var(--fg); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-lo);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group select option { background: var(--bg2); }

/* ============================================================
   TEAM CARD
   ============================================================ */
.team-card {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 2rem;
}

.team-avatar {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1.5px solid var(--green-dim);
  overflow: hidden;
}

.team-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--fg);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  padding: 3rem clamp(1rem,4vw,3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.footer-logo-text .edge { color: var(--green); }

.footer-tagline {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--green);
  opacity: 0.6;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--green); }

.footer-copy {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--fg3);
  letter-spacing: 0.04em;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.hamburger {
  display: none;
  background: none;
  border: 0.5px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--fg);
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: rgba(5,10,6,0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--green); }

.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--fg3);
  font-size: 24px;
  cursor: pointer;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   DELIVERABLES — DNA gel bands metaphor
   ============================================================ */
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.5px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.del-card {
  background: var(--bg2);
  padding: 1.75rem;
  transition: background 0.2s;
}

.del-card:hover { background: var(--bg3); }

.del-icon {
  width: 36px;
  height: 36px;
  background: var(--green-lo);
  border: 0.5px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.del-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-family: var(--sans);
}

.del-desc {
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.72;
  margin-bottom: 1rem;
}

.del-format {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  letter-spacing: 0.07em;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--border);
}

/* ============================================================
   CLIENT CARDS
   ============================================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 1.5px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.client-card {
  background: var(--bg2);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.client-card:hover { background: var(--bg3); }

.client-type {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--fg);
  font-weight: 400;
}

.client-size {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-desc {
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.75;
}

.client-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.client-need-tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--green);
  background: var(--green-lo);
  border: 0.5px solid var(--border);
  border-radius: 2px;
  padding: 3px 7px;
  letter-spacing: 0.04em;
}

.client-quote {
  font-size: 12px;
  color: var(--fg3);
  line-height: 1.7;
  font-style: italic;
  border-left: 2px solid var(--green-dim);
  padding-left: 12px;
  margin-top: 4px;
}

/* ============================================================
   PIPELINE PAGE
   ============================================================ */
.pipeline-layout {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pipeline-canvas-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.pipeline-canvas-inner {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pipeline-canvas-inner canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.pipeline-panel {
  flex: 0 0 280px;
  width: 280px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  padding: 7rem clamp(1rem,4vw,3rem) 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(38,167,105,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1.5rem;
}

.process-step {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}

.step-codon {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.codon-ATG { color: var(--base-A); }
.codon-GCT { color: var(--base-G); }
.codon-CAG { color: var(--base-C); }
.codon-TAA { color: var(--base-T); }

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 13px;
  color: var(--fg2);
  line-height: 1.72;
}

/* ============================================================
   SPEC TABS — restriction site tabs
   ============================================================ */
.spec-tabs {
  display: flex;
  gap: 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.spec-tab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  background: var(--bg2);
  border: none;
  border-right: 0.5px solid var(--border);
  color: var(--fg3);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.spec-tab:last-child { border-right: none; }

.spec-tab:hover,
.spec-tab.active {
  background: var(--green-lo);
  color: var(--green);
}

/* ============================================================
   SCROLLED PROGRESS BAR
   ============================================================ */
#progressBar {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  background: var(--green);
  z-index: 301;
  width: 0%;
  transition: width 0.1s;
  box-shadow: 0 0 6px var(--green-glow);
}

/* ============================================================
   ANIMATIONS & MOTION SYSTEM
   ============================================================ */

/* --- Page load fade-in ------------------------------------ */
body {
  opacity: 0;
  animation: moPageLoad 280ms ease forwards;
}

@keyframes moPageLoad {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Scroll fade-up --------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(0.22,1,0.36,1),
              transform 600ms cubic-bezier(0.22,1,0.36,1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-up.visible .stagger-1 { transition-delay: 0ms; }
.fade-up.visible .stagger-2 { transition-delay: 90ms; }
.fade-up.visible .stagger-3 { transition-delay: 180ms; }
.fade-up.visible .stagger-4 { transition-delay: 270ms; }
.fade-up.visible .stagger-5 { transition-delay: 360ms; }
.fade-up.visible .stagger-6 { transition-delay: 450ms; }

/* Staggered auto — for grid children */
.stagger-grid .svc-card:nth-child(1),
.stagger-grid .client-card:nth-child(1) { transition-delay: 0ms; }
.stagger-grid .svc-card:nth-child(2),
.stagger-grid .client-card:nth-child(2) { transition-delay: 70ms; }
.stagger-grid .svc-card:nth-child(3),
.stagger-grid .client-card:nth-child(3) { transition-delay: 140ms; }
.stagger-grid .svc-card:nth-child(4),
.stagger-grid .client-card:nth-child(4) { transition-delay: 210ms; }
.stagger-grid .svc-card:nth-child(5),
.stagger-grid .client-card:nth-child(5) { transition-delay: 280ms; }
.stagger-grid .svc-card:nth-child(6),
.stagger-grid .client-card:nth-child(6) { transition-delay: 350ms; }

/* --- Card hover lift ------------------------------------- */
.svc-card,
.client-card,
.why-card {
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
}

.svc-card:hover,
.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(38,167,105,0.10);
  border-color: rgba(38,167,105,0.4) !important;
}

/* --- Nav scroll glass effect ----------------------------- */
nav.scrolled {
  background: rgba(5,10,6,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.4);
}

/* --- Ripple button --------------------------------------- */
.btn-primary,
.nav-cta {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: scale(0);
  animation: ripplePop 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes ripplePop {
  to { transform: scale(4); opacity: 0; }
}

/* --- Typewriter cursor ----------------------------------- */
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--green);
  box-shadow: 0 0 4px var(--green-glow);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: twBlink 0.72s step-end infinite;
}

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

/* --- Pore pulse (ONT flowcell) -------------------------- */
@keyframes porePulse {
  0%,100% { opacity: 0.35; r: 3; }
  50%     { opacity: 0.95; r: 3.8; }
}

@keyframes poreStall {
  0%,100% { opacity: 0.12; }
  50%     { opacity: 0.22; }
}

.pore-active  { animation: porePulse 2.8s ease-in-out infinite; }
.pore-stalled { animation: poreStall 4.2s ease-in-out infinite; }

/* Stagger pore animations */
.pore-active:nth-child(3n)   { animation-delay: -0.8s; }
.pore-active:nth-child(3n+1) { animation-delay: -1.8s; }
.pore-active:nth-child(3n+2) { animation-delay: -2.6s; }

/* --- Pipeline flow dashes -------------------------------- */
@keyframes flowDash {
  from { stroke-dashoffset: 18; }
  to   { stroke-dashoffset: 0; }
}

.flow-line {
  stroke-dasharray: 5 6;
  animation: flowDash 1.8s linear infinite;
}

.flow-line-slow {
  stroke-dasharray: 5 6;
  animation: flowDash 2.8s linear infinite;
}

/* --- Counter number animation --------------------------- */
.stat-num {
  display: inline-block;
  transition: none;
}

/* --- Hamburger morph ------------------------------------ */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Dot-grid dark background pattern ------------------- */
.dot-grid {
  background-image: radial-gradient(circle, rgba(38,167,105,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* --- Section slide-in from slight left ------------------ */
.slide-in {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Team card hover lift -------------------------------- */
.team-founder,
.team-member {
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.28s ease,
              border-color 0.28s ease;
}

.team-founder:hover,
.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 34px rgba(38,167,105,0.12);
  border-color: rgba(38,167,105,0.5) !important;
}

/* --- Deliverable / pipeline step hover lift ------------- */
.df-step,
.turnaround-card {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.25s ease;
}

.df-step:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 0 0 var(--green);
}

.turnaround-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(38,167,105,0.10);
}

/* --- FAQ item hover highlight --------------------------- */
.faq-item {
  transition: background 0.2s ease;
}

.faq-item:hover {
  background: rgba(38,167,105,0.04);
}

/* --- Section title phosphor glow on entry -------------- */
.section-title.visible,
.section-title.fade-up.visible {
  text-shadow: 0 0 18px rgba(38,167,105,0.08);
}

/* --- Spec card hover ------------------------------------ */
.spec-card {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(38,167,105,0.10);
  border-color: rgba(38,167,105,0.4) !important;
}

/* --- Genome ruler tick animation on entry -------------- */
.genome-ruler.fade-up.visible .genome-ruler-inner {
  animation: rulerScan 1.2s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes rulerScan {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* --- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; opacity: 1 !important; }
  .fade-up, .slide-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pore-active, .pore-stalled { animation: none !important; }
  .flow-line, .flow-line-slow  { animation: none !important; }
  .tw-cursor { animation: none !important; opacity: 1; }
  .team-founder, .team-member,
  .df-step, .turnaround-card,
  .spec-card, .svc-card, .client-card { transition: none !important; }
}

/* ============================================================
   GENOME POSITION RULER  (replaces seq ticker strip)
   A chromosomal ideogram bar at the top of each page.
   Each page has its own locus marker position via CSS var.
   ============================================================ */
.genome-ruler {
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 30px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}

.genome-ruler-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.grule-chrom {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
  opacity: 0.8;
}

.grule-track {
  flex: 1;
  height: 10px;
  background: var(--bg3);
  border-radius: 5px;
  position: relative;
  overflow: visible;
  /* Chromosome band pattern via layered gradients */
  background-image: linear-gradient(90deg,
    rgba(38,167,105,0.00) 0%,   rgba(38,167,105,0.00) 2.5%,
    rgba(38,167,105,0.40) 2.5%, rgba(38,167,105,0.40) 5%,
    rgba(38,167,105,0.08) 5%,   rgba(38,167,105,0.08) 9%,
    rgba(38,167,105,0.55) 9%,   rgba(38,167,105,0.55) 12.5%,
    rgba(38,167,105,0.15) 12.5%,rgba(38,167,105,0.15) 16%,
    rgba(38,167,105,0.45) 16%,  rgba(38,167,105,0.45) 19%,
    rgba(38,167,105,0.08) 19%,  rgba(38,167,105,0.08) 24%,
    rgba(38,167,105,0.35) 24%,  rgba(38,167,105,0.35) 27%,
    rgba(38,167,105,0.10) 27%,  rgba(38,167,105,0.10) 30%,
    rgba(38,167,105,0.50) 30%,  rgba(38,167,105,0.50) 33%,
    /* centromere — amber */
    rgba(232,165,52,0.55) 33%,  rgba(232,165,52,0.55) 37%,
    rgba(232,165,52,0.30) 37%,  rgba(232,165,52,0.30) 40%,
    /* q arm */
    rgba(38,167,105,0.08) 40%,  rgba(38,167,105,0.08) 44%,
    rgba(38,167,105,0.45) 44%,  rgba(38,167,105,0.45) 47%,
    rgba(38,167,105,0.10) 47%,  rgba(38,167,105,0.10) 52%,
    rgba(38,167,105,0.55) 52%,  rgba(38,167,105,0.55) 56%,
    rgba(38,167,105,0.08) 56%,  rgba(38,167,105,0.08) 60%,
    rgba(38,167,105,0.40) 60%,  rgba(38,167,105,0.40) 64%,
    rgba(38,167,105,0.10) 64%,  rgba(38,167,105,0.10) 69%,
    rgba(38,167,105,0.50) 69%,  rgba(38,167,105,0.50) 73%,
    rgba(38,167,105,0.15) 73%,  rgba(38,167,105,0.15) 78%,
    rgba(38,167,105,0.42) 78%,  rgba(38,167,105,0.42) 82%,
    rgba(38,167,105,0.08) 82%,  rgba(38,167,105,0.08) 87%,
    rgba(38,167,105,0.38) 87%,  rgba(38,167,105,0.38) 91%,
    rgba(38,167,105,0.10) 91%,  rgba(38,167,105,0.10) 95%,
    rgba(38,167,105,0.30) 95%,  rgba(38,167,105,0.30) 98%,
    rgba(38,167,105,0.00) 98%
  );
}

/* Tapered chromosome ends */
.grule-track::before,
.grule-track::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 12px;
  z-index: 2;
}

.grule-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
  border-radius: 5px 0 0 5px;
}

.grule-track::after {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--bg));
  border-radius: 0 5px 5px 0;
}

/* Active locus marker */
.grule-locus {
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.grule-locus-line {
  display: block;
  width: 1.5px;
  height: 16px;
  background: var(--green);
  box-shadow: 0 0 5px var(--green-glow);
  animation: locusBlink 3.5s ease-in-out infinite;
}

@keyframes locusBlink {
  0%,100% { box-shadow: 0 0 5px var(--green-glow); opacity: 1; }
  50%     { box-shadow: 0 0 10px var(--green-glow); opacity: 0.75; }
}

.grule-locus-label {
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--green);
  letter-spacing: 0.06em;
  white-space: nowrap;
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  left: 50%;
  animation: locusBlink 3.5s ease-in-out infinite;
}

.grule-end {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--fg3);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Hide ruler label on very small screens */
@media (max-width: 480px) {
  .grule-chrom,
  .grule-end { display: none; }
}

/* ============================================================
   PIPELINE WALKTHROUGH STEPS (df-step)
   ============================================================ */
.df-step {
  border: 0.5px solid var(--border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.df-step-head {
  background: var(--bg3);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
}

.df-step-head:hover { background: var(--surface2); }

.df-step-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--green);
  opacity: 0.7;
  flex-shrink: 0;
}

.df-step-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  flex: 1;
}

.df-step-arrow {
  font-size: 14px;
  color: var(--green);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.df-step.df-open .df-step-arrow { transform: rotate(90deg); }

.df-step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.2s ease;
  background: var(--bg2);
}

.df-step.df-open .df-step-body {
  max-height: 900px;
  padding: 1.25rem;
}

.df-step-body p {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.df-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.df-meta-card {
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
}

.df-meta-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.df-meta-val {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.5;
}

.stack-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(38,167,105,0.1);
  border: 0.5px solid rgba(38,167,105,0.3);
  color: var(--green);
  margin: 2px 3px 2px 0;
  letter-spacing: 0.05em;
}

.df-svg-wrap {
  margin: 1rem 0;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  background: #060E09;
  overflow: hidden;
}

/* Animation tab buttons */
#animTabs button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  padding: 6px 14px;
  border-radius: 2px;
  border: 0.5px solid var(--border);
  background: var(--bg3);
  color: var(--fg2);
  cursor: pointer;
  transition: all 0.15s;
}

#animTabs button.anim-tab-active,
#animTabs button:hover {
  background: var(--green-lo);
  border-color: var(--green);
  color: var(--green);
}

/* Responsive pipeline layout */
@media (max-width: 768px) {
  .anim-layout { flex-direction: column !important; }
  .anim-layout > div:last-child { width: 100% !important; flex: none !important; }
}

/* ============================================================
   MOBILE RESPONSIVENESS  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 1rem; }

  /* Hero */
  .hero { grid-template-columns: 1fr; padding: 4rem 1.25rem 3rem; gap: 2rem; }
  .hero-right { display: none; }
  .hero-h1, .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }

  /* Services grid */
  .svc-grid, .why-grid, .client-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-founder, .team-member { padding: 1.5rem; }

  /* Pipeline */
  .anim-layout { flex-direction: column !important; }
  .anim-layout > div { width: 100% !important; flex: none !important; }

  /* Section padding */
  section { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }

  /* FAQ */
  .faq-q { font-size: 15px; }

  /* Deliverables / pipeline steps */
  .df-meta-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }

  /* Genome ruler - hide on very small screens */
  .genome-ruler { display: none; }

  /* Typography scale down */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-sub   { font-size: 15px; }

  /* Table scrollable */
  table { display: block; overflow-x: auto; }

  /* Cov strip label hide on tiny screens */
  .cov-strip-wrap::before { display: none; }
  .cov-strip { padding-left: 8px; }
}

@media (max-width: 480px) {
  .hero-h1, .hero-title { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .btn-primary, .btn-outline { padding: 12px 20px; font-size: 12px; }
  .nav-cta { display: none; }
  .hero-pipeline, .hero-actions { flex-direction: column; }
}


/* ============================================================
   HERO CYCLING TYPEWRITER
   ============================================================ */
.hero-cycle-text {
  display: inline;
  color: var(--green);
  border-right: 2px solid var(--green);
  animation: heroCaret 0.75s step-end infinite;
}
@keyframes heroCaret {
  0%, 100% { border-color: var(--green); }
  50%       { border-color: transparent; }
}

/* ============================================================
   OMICSEDGE THESIS SECTION
   ============================================================ */
.thesis-section {
  padding: 4.5rem clamp(1rem, 4vw, 3rem);
  background: var(--bg);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}
/* Subtle left-edge accent bar */
.thesis-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--green) 30%, var(--amber) 70%, transparent);
  opacity: 0.5;
}
.thesis-inner {
  max-width: 820px;
  margin: 0 auto;
}
.thesis-tag {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--fg3);
  letter-spacing: 0.1em;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
}
.thesis-h2 {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--fg);
  line-height: 1.35;
  margin: 0 0 1.4rem;
  letter-spacing: 0.01em;
}
.thesis-amber {
  color: var(--amber);
}
.thesis-p {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--fg2);
  line-height: 1.85;
  margin: 0 0 1.6rem;
  max-width: 640px;
}
.thesis-byline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg3);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .thesis-section { padding: 3rem 1.25rem; }
  .thesis-h2 { font-size: 1.5rem; }
  .thesis-p  { font-size: 16px; }
}
