/* ==========================================================================
   23rd Pair Lab Limited — site stylesheet
   Palette derived from the company logo:
     navy   #14274F   (primary)
     grey   #ABABAB / slate #7C869D (secondary)
     lime   #6C9C48   (network-graph node accent)
     violet #903CF0   (network-graph node accent)
   All text pairings verified at WCAG AA (4.5:1) or better.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand ground */
  --navy-900: #0A1730;
  --navy-800: #0F1E3D;
  --navy-700: #14274F;  /* brand primary, straight from the logo */
  --navy-600: #1D3466;
  --navy-500: #27427C;

  /* Neutrals */
  --slate-400: #7C869D;
  --slate-300: #A8B3C9;
  --grey-300:  #ABABAB;
  --paper:     #F4F6FA;
  --paper-alt: #E8ECF4;
  --white:     #FFFFFF;

  /* Accents — graphics use the raw logo values, text uses the lifted values */
  --lime-fill:   #6C9C48;
  --lime:        #8CC45C;
  --lime-bright: #A6DE6A;
  --lime-deep:   #4E7130;
  --violet-fill: #903CF0;
  --violet:      #B98CF8;
  --violet-deep: #6B21C7;

  /* Semantic */
  --bg:        var(--navy-900);
  --fg:        var(--white);
  --fg-muted:  var(--slate-300);
  --rule:      rgba(168, 179, 201, 0.22);
  --rule-firm: rgba(168, 179, 201, 0.40);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing scale (density 5/10 — standard) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  --measure: 68ch;
  --shell: 1240px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--lime-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.u-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime-bright);
  color: var(--navy-900);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  z-index: 200;
}
.u-skip:focus { left: var(--space-3); top: var(--space-3); }

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.band { padding-block: var(--space-8); position: relative; }
.band--tight { padding-block: var(--space-7); }
.band--navy { background: var(--navy-900); color: var(--white); }
.band--navy-mid { background: var(--navy-800); color: var(--white); }
.band--paper { background: var(--paper); color: var(--navy-700); }
.band--paper .band__lead { color: #37456B; }

/* Diagonal cut between bands — the one structural flourish, used sparingly */
.band--cut-top { clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%); margin-top: -44px; }
.band--cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%); }

.band__head { max-width: 760px; margin-bottom: var(--space-6); }
.band__lead {
  margin-top: var(--space-4);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: var(--measure);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 90px;
}
.eyebrow--violet { color: var(--violet); }
.eyebrow--onpaper { color: var(--lime-deep); }
.eyebrow--onpaper::after { background: rgba(20, 39, 79, 0.2); }

.title-xl { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.title-lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.title-md { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.015em; }
.title-sm { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

.tint-lime { color: var(--lime); }
.tint-violet { color: var(--violet); }
.tint-lime-deep { color: var(--lime-deep); }

.prose { max-width: var(--measure); }
.prose + .prose { margin-top: var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--lime-bright); color: var(--navy-900); }
.btn--primary:hover { background: var(--lime); }

.btn--ghost { border-color: var(--rule-firm); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--lime-bright); color: var(--lime-bright); }

.btn--onpaper { border-color: rgba(20, 39, 79, 0.28); color: var(--navy-700); background: transparent; }
.btn--onpaper:hover { border-color: var(--navy-700); background: var(--navy-700); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Inline text link with underline that grows */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lime);
  text-decoration: none;
  padding-block: var(--space-1);
}
.link-arrow svg { transition: transform 200ms var(--ease); flex: none; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow--onpaper { color: var(--violet-deep); }
/* Any arrow link inside a light band: lime on white is ~1.9:1 and unreadable. */
.band--paper .link-arrow { color: var(--violet-deep); }

/* ---------- Utility bar above the nav ----------
   Carries contact details and the social links. Not sticky: it scrolls away
   and leaves the navigation pinned, so it costs nothing once you start reading. */
.topbar {
  background: var(--navy-800);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 42px;
}
.topbar__contact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--slate-300);
  min-width: 0;
}
.topbar__contact a {
  text-decoration: none;
  /* WCAG 2.5.8 minimum target size: these sat at 21px tall. */
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding-inline: 2px;
}
.topbar__contact a:hover { color: var(--lime-bright); text-decoration: underline; text-underline-offset: 3px; }

.social--compact { gap: 0; }
.social--compact .social__link {
  width: 36px;
  height: 36px;
  border-color: transparent;
  color: var(--slate-300);
}
.social--compact .social__link svg { width: 16px; height: 16px; }
.social--compact .social__link:hover {
  background: transparent;
  border-color: transparent;
  color: var(--lime-bright);
}

/* ---------- Site header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 23, 48, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; flex: none; }
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.site-nav__list { display: flex; align-items: center; gap: var(--space-2); }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate-300);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}
.site-nav__link:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.site-nav__link[aria-current="page"] { color: var(--lime-bright); }
.site-nav__cta { margin-left: var(--space-3); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 620px at 78% 22%, rgba(29, 52, 102, 0.75), transparent 62%),
    linear-gradient(158deg, var(--navy-700) 0%, var(--navy-900) 58%);
  overflow: hidden;
  padding-block: var(--space-8) var(--space-9);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: var(--space-7);
  align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero__sub {
  margin-top: var(--space-5);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.62;
  color: var(--slate-300);
  max-width: 54ch;
}
.hero__rule {
  width: 96px; height: 3px;
  background: var(--lime-bright);
  margin-top: var(--space-6);
}

/* Interior page headers — same ground as the hero, without the karyotype */
.page-head {
  background:
    radial-gradient(760px 520px at 82% 30%, rgba(29, 52, 102, 0.7), transparent 62%),
    linear-gradient(158deg, var(--navy-700) 0%, var(--navy-900) 62%);
  padding-block: var(--space-8) var(--space-7);
  position: relative;
}
.page-head .band__head { margin-bottom: 0; }
.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: var(--space-7);
  align-items: center;
}

/* Chromosome row — the interior-page counterpart to the hero karyogram */
.motif { width: 100%; }
.motif__svg {
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 190;
  overflow: visible;
}

@media (max-width: 1024px) {
  .page-head__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .motif { max-width: 340px; }
}

/* Karyotype figure — the signature element */
.karyotype {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 0 0 auto;
}
.karyotype__svg { width: 100%; height: auto; aspect-ratio: 420 / 432; overflow: visible; }
.karyotype__caption {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  text-align: center;
}
.karyotype__caption b { color: var(--lime); font-weight: 500; }
.karyotype__caption i { color: var(--violet); font-style: normal; }

/* Chromosome drawing primitives */
.chr { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.chr__body { fill: #3D5C9E; }
.chr__band { fill: rgba(10, 23, 48, 0.5); }
.chr__label {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--slate-400);
  text-anchor: middle;
  letter-spacing: 0.04em;
}
.chr--x .chr__body { fill: var(--lime-fill); }
.chr--y .chr__body { fill: var(--violet-fill); }
.chr--x .chr__label, .chr--y .chr__label { fill: var(--white); font-size: 8px; }
.chr--hero .chr__band { fill: rgba(10, 23, 48, 0.42); }

.karyotype__halo { fill: none; stroke: var(--lime-bright); stroke-width: 1; opacity: 0.5; }

/* Reveal animation.
   Scoped to .js so that content is visible by default: if the script fails, is
   blocked, or the browser has JS off, nothing is left stranded at opacity 0. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}


/* ---------- In-page sub-navigation ---------- */
.subnav {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: rgba(15, 30, 61, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.subnav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-400);
  flex: none;
}
.subnav__list { display: flex; align-items: center; gap: var(--space-1); flex: none; }
.subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-300);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease), background-color 180ms var(--ease);
}
.subnav__link:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.subnav__link.is-current { color: var(--lime-bright); background: rgba(166, 222, 106, 0.1); }

/* Anchored sections must clear both sticky bars */
[id]:not(body) { scroll-margin-top: 140px; }

/* ---------- Pipeline diagram ----------
   Built from HTML rather than SVG so it reflows to a vertical list on a phone
   instead of shrinking to illegibility. Schematic: no numbers, no measurements. */
.pipeline { margin: 0 0 var(--space-7); }
.pipeline__flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  counter-reset: none;
  flex-wrap: nowrap;
}
.pipeline__stage {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border: 1px solid var(--rule);
  border-right: 0;
  background: rgba(255, 255, 255, 0.03);
}
.pipeline__stage:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.pipeline__stage:last-child {
  border-right: 1px solid var(--rule);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
/* Chevron between stages */
.pipeline__stage:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: var(--navy-900);
  z-index: 2;
}
.pipeline__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.pipeline__note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--slate-400);
}
/* Last stage is the output — give it the accent */
.pipeline__stage:last-child .pipeline__name { color: var(--lime-bright); }

/* On paper bands */
.band--paper .pipeline__stage {
  border-color: rgba(20, 39, 79, 0.16);
  background: var(--white);
}
.band--paper .pipeline__stage:not(:last-child)::after {
  border-color: rgba(20, 39, 79, 0.16);
  background: var(--paper);
}
.band--paper .pipeline__name { color: var(--navy-700); }
.band--paper .pipeline__note { color: #6A7691; }
.band--paper .pipeline__stage:last-child .pipeline__name { color: var(--lime-deep); }

.product__body { display: grid; gap: 0; }

@media (max-width: 900px) {
  .pipeline__flow { flex-direction: column; }
  .pipeline__stage {
    border-right: 1px solid var(--rule);
    border-bottom: 0;
    border-radius: 0;
    padding: var(--space-3) var(--space-4);
  }
  .pipeline__stage:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .pipeline__stage:last-child {
    border-bottom: 1px solid var(--rule);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .band--paper .pipeline__stage { border-color: rgba(20, 39, 79, 0.16); }
  /* Chevron rotates to point down the list */
  .pipeline__stage:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -7px;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease), transform 220ms var(--ease);
}
.card:hover { border-color: rgba(140, 196, 92, 0.55); background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }
.card__icon { width: 38px; height: 38px; color: var(--lime); flex: none; }
.card__kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-bottom: -6px;
}
.card__title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
.card__body { color: var(--slate-300); font-size: 0.98rem; line-height: 1.62; }
.card__foot { margin-top: auto; padding-top: var(--space-2); }

.card--paper {
  background: var(--white);
  border-color: rgba(20, 39, 79, 0.14);
  box-shadow: 0 1px 2px rgba(10, 23, 48, 0.05);
}
.card--paper:hover { border-color: rgba(20, 39, 79, 0.36); background: var(--white); }
.card--paper .card__body { color: #3B4966; }
.card--paper .card__icon { color: var(--violet-deep); }
.card--paper .card__title { color: var(--navy-700); }

/* Feature list with hairline rules — structure that reads as a spec sheet */
.speclist { border-top: 1px solid var(--rule); }
.speclist__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.speclist__key {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lime);
  padding-top: 4px;
}
.speclist__val { color: var(--slate-300); font-size: 1rem; line-height: 1.68; }
.speclist--onpaper { border-color: rgba(20, 39, 79, 0.16); }
.speclist--onpaper .speclist__row { border-color: rgba(20, 39, 79, 0.16); }
.speclist--onpaper .speclist__key { color: var(--violet-deep); }
.speclist--onpaper .speclist__val { color: #37456B; }

/* Numbered process — numbering used only where order genuinely carries meaning */
.steps { counter-reset: step; display: grid; gap: var(--space-5); }
.steps__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-900);
  background: var(--lime-bright);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.steps__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; margin-bottom: var(--space-2); }
.steps__body { color: var(--slate-300); font-size: 0.98rem; }
.steps--onpaper .steps__body { color: #3B4966; }
.steps--onpaper .steps__title { color: var(--navy-700); }
.steps--onpaper .steps__item::before { background: var(--navy-700); color: var(--white); }

/* Ticked capability list */
.ticks { display: grid; gap: var(--space-3); }
.ticks__item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.ticks__mark { width: 18px; height: 18px; color: var(--lime); margin-top: 4px; }
.ticks__text { color: var(--slate-300); font-size: 0.98rem; }
.ticks--onpaper .ticks__mark { color: var(--lime-deep); }
.ticks--onpaper .ticks__text { color: #3B4966; }

/* Split layout */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }

/* Pull quote / thesis strip */
.thesis {
  border-left: 3px solid var(--lime-bright);
  padding-left: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 24ch;
}

/* Company fact strip — concrete proof there is an organisation behind the copy */
.factstrip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(20, 39, 79, 0.16);
}
.factstrip__item { display: flex; flex-direction: column; gap: 3px; }
.factstrip__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-deep);
}
.factstrip__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--navy-700);
}

/* Standing caution under the free-text field on the contact form */
.field__caution {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--slate-300);
  border-left: 2px solid var(--violet);
  padding-left: var(--space-3);
  margin-top: var(--space-1);
}

/* Placeholder marker — makes every unfilled fact obvious */
.placeholder {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--navy-900);
  background: var(--lime-bright);
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 500;
  /* Must wrap: some of these run long, and nowrap pushes the page sideways. */
  white-space: normal;
  overflow-wrap: anywhere;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Contact form ---------- */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field__label { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.field__hint { font-size: 0.82rem; color: var(--slate-400); }
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.field__textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field__input:hover, .field__select:hover, .field__textarea:hover { border-color: var(--slate-300); }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  border-color: var(--lime-bright);
  background: rgba(255, 255, 255, 0.08);
}
.field__input::placeholder, .field__textarea::placeholder { color: rgba(168, 179, 201, 0.65); }
.field__select {
  appearance: none;
  padding-right: var(--space-7);
  /* Chevron drawn inline so the control still looks like a dropdown */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A8B3C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 18px 18px;
  cursor: pointer;
}
.field__select option { background: var(--navy-800); color: var(--white); }

.form__intro {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--slate-300);
  margin-bottom: var(--space-5);
  max-width: 60ch;
}
.form__intro a { color: var(--lime-bright); }

.field__optional { font-weight: 400; color: var(--slate-400); }

.field__error[hidden] { display: none; }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.86rem;
  font-weight: 500;
  color: #FFC4C4;
}
.field__error::before {
  content: "!";
  flex: none;
  width: 17px; height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background: #E5484D;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.field__input[aria-invalid="true"],
.field__textarea[aria-invalid="true"] {
  border-color: #E5484D;
  background: rgba(229, 72, 77, 0.08);
}

.form__note:empty { display: none; }
.form__note {
  font-size: 0.86rem;
  color: var(--slate-400);
  border-top: 1px solid var(--rule);
  padding-top: var(--space-3);
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--navy-900);
  border-top: 1px solid var(--rule);
  padding-block: var(--space-7) var(--space-5);
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.15fr 200px;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--rule);
}
.site-foot__blurb { color: var(--slate-400); font-size: 0.95rem; margin-top: var(--space-4); max-width: 40ch; }
.site-foot__head {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: var(--space-3);
}
.site-foot__list { display: grid; gap: var(--space-2); }
.site-foot__link {
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}
.site-foot__link:hover { color: var(--lime-bright); text-decoration: underline; text-underline-offset: 3px; }
/* Social links — 44px targets, brand glyphs inherit currentColor */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  color: var(--slate-300);
  text-decoration: none;
  transition: color 180ms var(--ease), border-color 180ms var(--ease),
              background-color 180ms var(--ease), transform 180ms var(--ease);
}
.social__link svg { width: 19px; height: 19px; }
.social__link:hover {
  color: var(--navy-900);
  background: var(--lime-bright);
  border-color: var(--lime-bright);
  transform: translateY(-2px);
}

.site-foot__legal {
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--slate-400);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .karyotype { max-width: 520px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide-left { grid-template-columns: 1fr; gap: var(--space-6); }
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .site-foot__grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-800);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-3) var(--space-4) var(--space-5);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: var(--space-1); }
  .site-nav__link { min-height: 52px; padding-inline: var(--space-3); }
  .site-nav__cta { margin-left: 0; margin-top: var(--space-3); }
  .site-nav__cta .btn { width: 100%; }
  .nav-toggle { display: inline-flex; }
  .grid--3 { grid-template-columns: 1fr; }
}

/* Below the nav breakpoint the utility strip is dropped entirely: on a phone
   the page should start at the logo, and these links all repeat in the footer. */
@media (max-width: 860px) {
  .topbar { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .factstrip { gap: var(--space-4); margin-top: var(--space-6); }
  .band { padding-block: var(--space-7); }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .speclist__row { grid-template-columns: 1fr; gap: var(--space-2); }
  /* Two columns rather than one long stack: halves the scroll on a phone. */
  .site-foot { padding-block: var(--space-6) var(--space-4); }
  .site-foot__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5) var(--space-4);
    padding-bottom: var(--space-5);
  }
  .site-foot__brandcol { grid-column: 1 / -1; }
  .site-foot__social { grid-column: 1 / -1; }
  .site-foot__blurb { margin-top: var(--space-3); }
  .site-foot__link { min-height: 30px; font-size: 0.92rem; }
  .site-foot__legal { font-size: 0.8rem; }
  .band--cut-top { clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%); margin-top: -24px; }
  .hero::after { height: 40px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal, .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .social__link:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-head, .nav-toggle, .karyotype { display: none; }
  body { background: #fff; color: #000; }
}
