/* Nightlight: a precise instrument with one light left on.
   The site is the Day register: cool paper-grey ground, graphite ink, one
   steel-blue accent (trace). Night appears only as night windows: the plate,
   the strip, the curve and the dark bands. Every corner is square; the one
   angle is the 45° chamfer at the top-left, sized by hierarchy. */

:root {
  --ground: #f1f3f5;
  --ground-raised: #fbfcfd;
  --ground-sunken: #e5e8ec;
  --line: #d0d6dd;
  --line-strong: #67717e;
  --ink: #10151c;
  --ink-muted: #4c5663;
  --primary: #10151c;
  --primary-foreground: #fbfcfd;
  --secondary: #e2e6eb;
  --trace: #2c5b8f;
  --trace-rgb: 44, 91, 143;
  --ink-rgb: 16, 21, 28;

  /* Night windows */
  --plate: #10151c;
  --n-raised: #19202a;
  --n-line: #29323e;
  --n-line-strong: #717d8c;
  --n-ink: #e9edf2;
  --n-ink-muted: #9ea8b5;
  --n-secondary: #222b36;
  --n-trace: #8fbef0;
  --n-trace-rgb: 143, 190, 240;

  /* Luminescence: brighter always means more */
  --lum-0: #18202a;
  --lum-1: #1f3550;
  --lum-2: #2c5b8f;
  --lum-3: #5b8dc4;
  --lum-4: #a9cbee;
  --lum-5: #eef6fd;

  --text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", ui-sans-serif, system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --lift: 0 1px 0 rgba(var(--ink-rgb), 0.05), 0 8px 18px -10px rgba(var(--ink-rgb), 0.22);
  --halo: 0 0 0 2px rgba(var(--n-trace-rgb), 0.18), 0 0 6px 1px rgba(var(--n-trace-rgb), 0.3);
  --ease-settle: cubic-bezier(0.2, 0.7, 0.2, 1);

  --page: 1224px;
  --gutter: max(16px, calc((100% - var(--page)) / 2));
  --section: 54px;
  --cut-xl: 54px;

  /* Older names still used by inline styles in posts */
  --paper: var(--ground);
  --soft: var(--ground-sunken);
  --accent: var(--trace);
  --muted: var(--ink-muted);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 25px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Short pages keep the footer at the bottom of the window. */
main {
  flex: 1 0 auto;
}

/* Scale height with width; the width/height attributes still reserve space
   at the image's aspect ratio while it loads. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--trace);
  text-underline-offset: 4px;
  transition: color 160ms var(--ease-settle);
}

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

:focus-visible {
  outline: 2px solid var(--trace);
  outline-offset: 2px;
}

.night :focus-visible {
  outline-color: var(--n-trace);
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

.wrap,
.nav,
.footer-inner {
  width: min(var(--page), calc(100% - 32px));
  margin: 0 auto;
}

/* Chamfers */

.cut-s { clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px); }
.cut-m { clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); }
.cut-l { clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); }
.cut-xl { clip-path: polygon(var(--cut-xl) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut-xl)); }

/* On a bordered surface, redraw the cut with a 1px edge in the border color. */
.cut-edge {
  position: relative;
}

.cut-edge::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 12px;
  height: 12px;
  background: linear-gradient(to bottom right, transparent calc(50% - 0.75px), var(--edge, var(--line)) calc(50% - 0.75px), var(--edge, var(--line)) calc(50% + 0.75px), transparent calc(50% + 0.75px));
  pointer-events: none;
}

/* Type */

.display,
h1 {
  font-family: var(--mono);
  font-size: 44px;
  line-height: 48px;
  font-weight: 300;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  font-family: var(--mono);
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.eyebrow,
.readout {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--ink-muted);
}

.lead,
.section-copy p {
  max-width: 640px;
  font-size: 18px;
  line-height: 29px;
  color: var(--ink-muted);
}

.night .eyebrow,
.night .readout,
.night .lead {
  color: var(--n-ink-muted);
}

/* Buttons: one solid primary per view, chamfered; outline buttons stay square. */

.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-family: var(--text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-settle), opacity 160ms var(--ease-settle), border-color 160ms var(--ease-settle);
}

.btn-primary,
.button {
  border: 0;
  background: linear-gradient(135deg, transparent 4.25px, var(--primary) 4.25px);
  color: var(--primary-foreground);
}

.btn-primary:hover,
.button:hover {
  opacity: 0.88;
  color: var(--primary-foreground);
}

.btn-outline {
  border-color: var(--line-strong);
  background: var(--ground);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--ink);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
}

.night .btn-primary {
  background: linear-gradient(135deg, transparent 4.25px, var(--n-ink) 4.25px);
  color: var(--plate);
}

.night .btn-primary:hover {
  color: var(--plate);
}

.night .btn-outline {
  border-color: var(--n-line-strong);
  background: transparent;
  color: var(--n-ink);
}

.night .btn-outline:hover {
  background: var(--n-secondary);
  color: var(--n-ink);
}

.actions,
.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

/* The indicator: one lit pixel beside a live process, breathing every 5s. */

.indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--trace);
  box-shadow: 0 0 0 5px rgba(var(--trace-rgb), 0.16);
  animation: nl-breath 5s ease-in-out infinite;
}

.night .indicator {
  background: var(--n-trace);
  box-shadow: 0 0 0 5px rgba(var(--n-trace-rgb), 0.22);
  animation-name: nl-breath-n;
}

@keyframes nl-breath {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--trace-rgb), 0.1); }
  45% { box-shadow: 0 0 0 6px rgba(var(--trace-rgb), 0.24); }
}

@keyframes nl-breath-n {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--n-trace-rgb), 0.12); }
  45% { box-shadow: 0 0 0 6px rgba(var(--n-trace-rgb), 0.3); }
}

/* Header */

.site-header {
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  min-height: 90px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.mark {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Leave room for the Benchmarks destination at tablet and phone widths. */
@media (min-width: 641px) and (max-width: 900px) {
  .nav-links { gap: 16px; }
  .nav { gap: 16px; }
  .brand { font-size: 18px; }
}

.nav-links a:not(.btn) {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--trace);
  text-decoration-thickness: 1px;
}

/* Hero: copy on the left, the plate as a night window cut into the right edge. */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  align-items: center;
  gap: 54px;
  padding: 27px 0 27px var(--gutter);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero h1 {
  max-width: 620px;
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.035em;
}

.hero .hero-actions {
  padding-top: 4px;
}

/* The hero's night window: a 384-well plate being filled by a robot. */
.plate-panel {
  margin: 0;
  padding: 30px 18px 18px;
  background: var(--plate);
  border: 1px solid var(--n-line);
  border-right: 0;
  box-shadow: 0 18px 36px -18px rgba(var(--ink-rgb), 0.45);
}

.plate-map {
  --gap: 5px;
  --cell: calc((100% - 23 * var(--gap)) / 24);
  position: relative;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: var(--gap);
  width: min(312px, 100%);
}

.plate-map .well {
  transition: background-color 320ms var(--ease-settle), box-shadow 320ms var(--ease-settle);
}

/* The robot: a rail above the plate, and a head that rides it. The head is
   a carriage block on the rail plus a 1px trace frame around the column of
   tips it is dispensing into. */
.rig-rail {
  position: absolute;
  top: -15px;
  left: -6px;
  right: -6px;
  height: 1px;
  background: var(--n-line-strong);
  pointer-events: none;
}

.rig-head {
  --col: 0;
  position: absolute;
  top: -20px;
  bottom: -4px;
  left: calc(var(--col) * (var(--cell) + var(--gap)));
  width: var(--cell);
  transition: left 260ms var(--ease-settle), transform 160ms var(--ease-settle);
  pointer-events: none;
}

.rig-head.is-dipping {
  transform: translateY(3px);
}

.rig-carriage {
  position: absolute;
  top: 0;
  left: -11px;
  right: -11px;
  height: 10px;
  background: var(--lum-2);
  clip-path: polygon(3px 0, 100% 0, 100% 100%, 0 100%, 0 3px);
}

/* One status pixel on the carriage, lit while the tips are down. */
.rig-carriage::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 4px;
  height: 4px;
  background: var(--lum-1);
  transition: background-color 120ms linear;
}

.rig-head.is-dipping .rig-carriage::after {
  background: var(--lum-5);
}

.rig-channel {
  position: absolute;
  top: 13px;
  bottom: 0;
  left: -2px;
  right: -2px;
  border: 1px solid var(--n-trace);
}

/* A live status line under the hero headline. */
.lab-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-wrap: balance;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.lab-status .indicator {
  margin: 5px 5px 0 5px;
}

.notfound-helix {
  display: block;
  width: auto;
  max-width: 100%;
}

/* Sections */

.section {
  padding: var(--section) 0;
}

.hero + .section,
.section + .section {
  border-top: 1px solid var(--line);
}

.section.sunken {
  background: var(--ground-sunken);
  border-top: 0;
}

.section.sunken + .section {
  border-top: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 900px;
  margin-bottom: 27px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 72px;
  margin-bottom: 18px;
}

.section-head-row .section-head {
  margin-bottom: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.section-grid .section-head {
  margin-bottom: 0;
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-link {
  font-size: 16px;
  line-height: 25px;
  font-weight: 500;
  white-space: nowrap;
}

/* Validation: the centerpiece. The study in large reading type above a
   night panel of its three numbers. */

.feature {
  padding: 36px 0;
  background: var(--ground-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature + .section {
  border-top: 0;
}

.feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  align-items: center;
  gap: 54px;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-copy p:not(.eyebrow) {
  max-width: 680px;
  font-size: 18px;
  line-height: 29px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.feature-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 0;
  background: var(--plate);
  color: var(--n-ink);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px;
}

.metric + .metric {
  border-left: 1px solid var(--n-line);
}

.metric strong {
  font-family: var(--mono);
  font-size: 40px;
  line-height: 44px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--n-ink);
}

.metric span {
  font-size: 13px;
  line-height: 18px;
  color: var(--n-ink-muted);
}

/* Research list: the newest post as the lead, the rest with plate signatures */

.lead-post {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 27px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.lead-post-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-post h3 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lead-post .lead {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 22px;
}

.post-title-link {
  color: var(--ink);
  text-decoration: none;
}

.post-title-link:hover {
  color: var(--trace);
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.post {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 27px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.post h3 {
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.post p {
  display: -webkit-box;
  max-width: 760px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 15px;
  line-height: 22px;
  color: var(--ink-muted);
}

.post-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
  text-align: right;
}

.signature {
  width: 72px;
  height: 52px;
  padding: 9px 9px;
  background: var(--plate);
}

.well {
  display: block;
  aspect-ratio: 1;
  background: var(--lum-0);
}

.well.is-lit {
  box-shadow: var(--halo);
}

/* The lead post's plate: a wider strip of wells running a dilution. */
.signature-lead {
  width: 168px;
  height: auto;
  padding: 12px;
}

.signature-lead .signature-wells {
  grid-template-columns: repeat(16, 6px);
  gap: 3px;
}

.signature-wells {
  display: grid;
  grid-template-columns: repeat(6, 6px);
  gap: 3px;
}

/* The frontier band: a vague line about the work, as a window onto a much
   larger braille helix. */

.frontier {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 360px;
  padding: 54px var(--gutter);
  overflow: hidden;
  background: var(--n-raised);
  color: var(--n-ink);
}

.frontier-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}

.frontier h2 {
  font-size: 26px;
  line-height: 34px;
  color: var(--n-ink);
}

.frontier .actions {
  padding-top: 9px;
}

/* The braille helix: the genome read like text. Sized far past the band and
   cropped by it, so the band reads as a window onto a much larger helix. */
.frontier-helix {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) - 110px);
  display: block;
  width: auto;
  max-width: none;
  height: 520px;
  aspect-ratio: 336 / 330;
  transform: translateY(-50%) scaleX(1.12);
  pointer-events: none;
}

/* Footer */

.site-footer {
  padding: 36px 0;
  background: var(--plate);
  color: var(--n-ink);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  min-height: 36px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  line-height: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 27px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 18px;
}

.footer-links a {
  color: var(--n-ink-muted);
  text-decoration: none;
}

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

.footer-links .footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.footer-social-icon {
  display: block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  mask: url("/https/gamowlabs.com/assets/x-logo.svg") center / contain no-repeat;
}

/* Inner pages */

.page-hero {
  padding: 54px 0 36px;
}

.page-hero .wrap {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero + .section {
  padding-top: 0;
}

.page-hero + .section .post-list,
.page-hero + .section .lead-post {
  border-top: 0;
}

/* Careers */

.section .wrap > h2 {
  margin-bottom: 27px;
}

.section .wrap > .lead + .lead {
  margin-top: 18px;
}

.list-lead {
  margin: 36px 0 18px;
  font-size: 18px;
  line-height: 29px;
  font-weight: 600;
}

.role-list {
  max-width: 720px;
  margin: 0;
  padding-left: 1.2em;
  list-style: square;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 29px;
}

.role-list li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.role-list li::marker {
  color: var(--trace);
}

/* Posts */

.post-article {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.meta {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.post-article h1 {
  margin-bottom: 27px;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.035em;
}

.post-article .lead {
  margin-bottom: 18px;
}

.crosspost-note {
  margin: 0 0 54px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

.post-body > p,
.post-body > ul,
.post-body > ol {
  font-size: 18px;
  line-height: 29px;
}

.post-body p {
  margin-bottom: 18px;
}

.post-body h2 {
  margin: 54px 0 18px;
  font-size: 28px;
  line-height: 36px;
}

.post-body h3 {
  margin: 36px 0 9px;
  font-size: 20px;
  line-height: 28px;
}

.post-body h4 {
  margin: 27px 0 9px;
  font-size: 18px;
  line-height: 29px;
  font-weight: 600;
}

.post-body ul,
.post-body ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

.post-body ul {
  list-style: square;
}

.post-body li {
  margin-bottom: 9px;
}

.post-body li::marker {
  color: var(--trace);
}

.post-body li > ul,
.post-body li > ol {
  margin: 9px 0 0;
}

/* Variant nomenclature (HGVS) reads as machine output. */
.post-body code {
  padding: 1px 5px;
  background: var(--ground-sunken);
  font-family: var(--mono);
  font-size: 0.88em;
}

/* A pull quote: light, larger type. */
.post-body blockquote {
  margin: 36px 0;
  padding-left: 24px;
  border-left: 2px solid var(--trace);
  font-size: 24px;
  line-height: 34px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.post-figure {
  margin: 36px 0;
}

.post-figure img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
}

/* Figures link to the full-size asset, which opens in a new tab. */
.post-figure a {
  display: block;
  cursor: zoom-in;
}

/* Portrait photos would fill a whole screen at column width, so cap and center them. */
.post-figure-narrow {
  max-width: 480px;
  margin-inline: auto;
}

.post-figure figcaption,
.post-body p.post-caption {
  margin-top: 9px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.post-figure-narrow figcaption {
  text-align: center;
}

.post-table-wrap {
  margin: 36px 0;
  overflow-x: auto;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}

.post-table th,
.post-table td {
  padding: 9px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.post-table thead th {
  background: var(--ground-sunken);
  font-weight: 600;
}

.post-table tbody th {
  font-weight: 600;
}

/* Row labels stay semantic th cells for screen readers, but read as plain
   text where only the header row should carry weight. */
.post-table-plain tbody th {
  font-weight: 400;
}

.post-table tbody td {
  color: var(--ink-muted);
}

.post-article .inline-actions {
  margin-top: 36px;
}

.profile-link {
  font-weight: 500;
}

/* Partnership call to action: a raised card with the page's one primary button. */
.cta-card {
  margin: 18px 0 36px;
  padding: 27px;
  background: var(--ground-raised);
  border: 1px solid var(--line);
  box-shadow: var(--lift);
}

.post-body .cta-card p {
  margin-bottom: 18px;
}

.post-body .cta-card .cta-actions {
  margin: 0;
}

/* LabBench post: HTML charts. Series colours follow the preprint's figures so
   a model keeps one colour across chart and paper; everything else is Nightlight. */
.chart {
  margin: 36px 0;
  padding: 27px;
  border: 1px solid var(--line);
  background: var(--ground-raised);
}

.chart-title {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 25px;
  font-weight: 600;
}

.post-body .chart-sub {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.post-body .chart-note {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.bar-row {
  display: grid;
  grid-template-columns: 10.5rem 1fr 5.25rem;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 20px;
}

.bar-label {
  text-align: right;
}

.bar-track {
  position: relative;
  height: 18px;
  background: var(--ground-sunken);
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
}

.bar-ci {
  position: absolute;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
}

.bar-value {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bar-value small {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 400;
}

.bar-axis {
  display: grid;
  grid-template-columns: 10.5rem 1fr 5.25rem;
  gap: 12px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.axis-ticks {
  position: relative;
  height: 1.4em;
}

.axis-ticks span {
  position: absolute;
  transform: translateX(-50%);
}

.axis-ticks span:nth-child(1) { left: 0; }
.axis-ticks span:nth-child(2) { left: 25%; }
.axis-ticks span:nth-child(3) { left: 50%; }
.axis-ticks span:nth-child(4) { left: 75%; }
.axis-ticks span:nth-child(5) { left: 100%; }

.columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 9px;
  height: 220px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-align: center;
}

.column b {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.column i {
  display: block;
  background: #9aa5b1;
}

.column.zero i {
  background: var(--trace);
}

.column-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-top: 9px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.dumbbell-row {
  display: grid;
  grid-template-columns: 12.25rem 1fr 7rem;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 20px;
}

.dumbbell-row small {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
}

.dumbbell-track {
  position: relative;
  height: 22px;
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}

.dumbbell-link {
  position: absolute;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: var(--trace);
  opacity: 0.45;
}

/* On screen a point is a hard square pixel. */
.dumbbell-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--trace);
  background: var(--ground-raised);
}

.dumbbell-dot.after {
  background: var(--trace);
}

.dumbbell-value {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.bar-axis.dumbbell-axis {
  grid-template-columns: 12.25rem 1fr 7rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border: 2px solid var(--trace);
  vertical-align: -1px;
}

.legend .filled::before {
  background: var(--trace);
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.post-body .pipeline-steps {
  margin: 0;
  padding: 0;
  color: var(--ink);
  list-style: none;
}

.pipeline-steps li {
  position: relative;
  margin: 0;
  padding-top: 36px;
  font-size: 14px;
  line-height: 20px;
  counter-increment: step;
}

.pipeline-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 27px;
  height: 27px;
  border: 1px solid var(--trace);
  color: var(--trace);
  font-family: var(--mono);
  font-weight: 500;
  line-height: 25px;
  text-align: center;
}

.pipeline-steps b {
  display: block;
  margin-bottom: 4px;
}

.pipeline-steps span {
  color: var(--ink-muted);
}

.probe-cards {
  display: grid;
  gap: 18px;
  margin: 36px 0;
}

.probe-card {
  padding: 27px;
  background: var(--ground-raised);
  border: 1px solid var(--line);
}

.post-body .probe-card h4 {
  margin-top: 0;
}

.post-body .probe-card p {
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 25px;
}

.post-body .probe-card p:last-child {
  margin-bottom: 0;
}

.probe-card .probe-label {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.scatter {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  grid-template-rows: 260px auto;
  column-gap: 8px;
}

.scatter-y,
.scatter-plot,
.scatter-x {
  position: relative;
}

.scatter-y span {
  position: absolute;
  right: 0;
  transform: translateY(50%);
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.scatter-plot {
  margin-right: 5.5rem;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scatter-x {
  grid-column: 2;
  height: 1.6em;
  margin-right: 5.5rem;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.scatter-x span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
}

.scatter-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: 0 0 -6px -6px;
  border: 2px solid var(--ground-raised);
}

.scatter-label {
  position: absolute;
  margin: 0 0 -0.75em 12px;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.scatter-label.left {
  transform: translateX(calc(-100% - 24px));
  text-align: right;
}

.legend-models.scatter-key {
  display: none;
  margin: 12px 0 0;
}

.scatter-label small {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
}

.heat {
  display: grid;
  grid-template-columns: minmax(8rem, 1.5fr) repeat(5, 1fr);
  gap: 3px;
  font-size: 14px;
}

.heat-head {
  padding-bottom: 6px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
}

.heat-label {
  align-self: center;
  padding-right: 8px;
  line-height: 1.15;
}

.heat-label small {
  color: var(--ink-muted);
  font-size: 12px;
}

.heat-cell {
  padding: 8px 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.heat-cell.dark {
  color: var(--ground-raised);
}

.legend-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 14px;
  color: var(--ink-muted);
  font-size: 13px;
}

.legend-models span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  background: var(--c);
}

.strip-row,
.strip-axis {
  display: grid;
  grid-template-columns: 11rem 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 15px;
}

.strip-label small {
  margin-left: 6px;
  color: var(--ink-muted);
  font-size: 12px;
}

.strip-track {
  position: relative;
  height: 18px;
  margin-right: 12px;
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
}

.strip-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1.5px solid var(--ground-raised);
}

.strip-rule {
  margin: 12px 0;
  border-top: 1px dashed var(--line);
}

.strip-ticks {
  margin-right: 12px;
}

.strip-ticks span:nth-child(1) { left: 0; }
.strip-ticks span:nth-child(2) { left: 33.33%; }
.strip-ticks span:nth-child(3) { left: 66.67%; }
.strip-ticks span:nth-child(4) { left: 100%; }

.probe-figure {
  margin: 4px 0 14px;
}

.probe-figure img {
  width: 100%;
  background: #fff;
}

.probe-figure a {
  display: block;
  cursor: zoom-in;
}

.probe-figure figcaption {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 18px;
}

.probe-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Responsive */

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    min-height: 0;
    padding: 36px var(--gutter) 45px;
  }

  .plate-panel {
    border-right: 1px solid var(--n-line);
  }

  .frontier-helix {
    right: -150px;
    height: 460px;
  }
}

@media (max-width: 900px) {
  :root {
    --section: 45px;
    --cut-xl: 27px;
  }

  .section-grid,
  .feature-inner,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-grid {
    gap: 36px;
  }

  .stat + .stat {
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }


  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .post {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 9px 27px;
  }

  .post p {
    -webkit-line-clamp: 2;
  }

  .post-meta {
    grid-column: 2;
    align-items: flex-start;
    gap: 0;
    text-align: left;
  }

  .frontier {
    min-height: 0;
    padding-bottom: 230px;
  }

  .frontier-helix {
    top: auto;
    right: 50%;
    bottom: -230px;
    height: 440px;
    transform: translateX(50%) scaleX(1.12);
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 8px 0 0;
  }

  .nav .brand {
    align-self: flex-start;
    min-height: 44px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 2px;
  }

  .nav-links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    font-size: clamp(12px, 3.4vw, 14px);
  }

  .nav-links .btn {
    display: none;
  }

  .hero {
    padding: 36px var(--gutter);
  }

  .hero h1 {
    font-size: 40px;
    line-height: 44px;
  }

  .display,
  h1 {
    font-size: 36px;
    line-height: 40px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .post-article h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .plate-panel {
    display: none;
  }

  .feature {
    padding: 36px 0;
  }

  .feature-metrics {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 27px;
  }

  .metric {
    padding: 18px 0;
  }

  .metric + .metric {
    border-top: 1px solid var(--n-line);
    border-left: 0;
  }

  .metric strong {
    font-size: 48px;
    line-height: 52px;
  }

  .lead-post {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .lead-post-side {
    align-items: flex-start;
  }

  .lead-post-side .post-meta {
    align-items: flex-start;
    text-align: left;
  }

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

  .post .signature {
    display: none;
  }

  .post-meta {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-links {
    gap: 12px 20px;
  }

  .chart {
    padding: 18px 14px 14px;
  }
}

@media (max-width: 800px) {
  .bar-row,
  .bar-axis {
    grid-template-columns: 7.5rem 1fr 4.25rem;
    gap: 8px;
    font-size: 13px;
  }

  .dumbbell-row,
  .bar-axis.dumbbell-axis {
    grid-template-columns: 8.5rem 1fr 5.75rem;
    gap: 8px;
    font-size: 13px;
  }

  .columns {
    gap: 6px;
    height: 180px;
  }

  .column-labels {
    gap: 6px;
  }

  .axis-ticks span:nth-child(2),
  .axis-ticks span:nth-child(4) {
    display: none;
  }

  .pipeline-steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
  }

  .scatter {
    grid-template-rows: 220px auto;
  }

  .scatter-label {
    display: none;
  }

  .scatter-plot,
  .scatter-x {
    margin-right: 0.75rem;
  }

  .legend-models.scatter-key {
    display: flex;
  }

  .heat {
    grid-template-columns: 6.5rem repeat(5, 1fr);
    font-size: 12px;
  }

  .heat-head {
    font-size: 11px;
  }

  .strip-row,
  .strip-axis {
    grid-template-columns: 7.5rem 1fr;
    gap: 8px;
    font-size: 13px;
  }

  .strip-ticks span:nth-child(2),
  .strip-ticks span:nth-child(3),
  .strip-ticks span:nth-child(4) {
    display: block;
  }

  .probe-pair {
    grid-template-columns: 1fr;
  }
}

/* Under reduced motion, skip the breath and the loops and show the final
   state. The helix SVGs carry their own reduced-motion rule. */
@media (prefers-reduced-motion: reduce) {
  .indicator {
    animation: none !important;
  }
}

/* Research on the landing page starts right under the hero: tight top,
   heading and blurb on one line. */
.section.research {
  padding-top: 27px;
}

.research .section-head-row {
  flex-direction: row;
  align-items: baseline;
  margin-bottom: 9px;
}

.research .text-link {
  font-size: 14px;
  line-height: 20px;
  text-decoration-color: rgba(var(--trace-rgb), 0.4);
}

.lead-post .btn {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

.lead-post-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}


/* 404: a large helix unzipping beside a big readout of the code. */
.notfound {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
  padding: 54px var(--gutter);
  overflow: hidden;
  background-color: var(--plate);
  background-image:
    linear-gradient(rgba(143, 190, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 190, 240, 0.05) 1px, transparent 1px);
  background-size: 27px 27px;
  color: var(--n-ink);
}

.notfound-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}

.notfound-code {
  font-family: var(--mono);
  font-size: 160px;
  line-height: 140px;
  font-weight: 200;
  letter-spacing: -0.06em;
  color: var(--n-trace);
}

.notfound h1 {
  color: var(--n-ink);
}

.notfound .actions {
  padding-top: 9px;
}

.notfound-helix {
  flex: none;
  display: block;
  width: auto;
  height: min(72vh, 620px);
  aspect-ratio: 336 / 330;
  margin-right: 54px;
  transform: scale(1.15);
}

@media (max-width: 900px) {
  .notfound {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .notfound-code {
    font-size: 96px;
    line-height: 88px;
  }

  .notfound-helix {
    align-self: center;
    height: 320px;
    margin-right: 0;
    transform: none;
  }
}

/* Let the 404 band fill the window so the footer sits at the bottom. */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-404 main {
  display: flex;
  flex: 1;
}

.page-404 .notfound {
  flex: 1;
}

.page-404 .site-footer {
  border-top: 1px solid var(--n-line);
}

/* Careers: a dark header band like Research's, with the mark drawn in dots
   and turning beside the headline. The rest of the page stays Day. */
.careers-hero .wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 54px;
}

.careers-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

/* A faint 27px graph-paper grid behind header type: ice lines on the dark
   bands, ink lines on the light home hero. */
.careers-hero,
.research-hero,
.benchmark-hero {
  background-color: var(--plate);
  background-image:
    linear-gradient(rgba(143, 190, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 190, 240, 0.05) 1px, transparent 1px);
  background-size: 27px 27px;
}

.hero,
.hero-frame {
  background-image:
    linear-gradient(rgba(var(--ink-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.05) 1px, transparent 1px);
  background-size: 27px 27px;
}

/* Inner page headers meet the navigation; keep one grid cell below the band. */
.hero-frame {
  padding: 0 0 27px;
}

.hero-frame + .section {
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.careers-hero,
.benchmark-hero {
  color: var(--n-ink);
}

.careers-hero h1 {
  color: var(--n-ink);
}



/* The mark drawn in dots and turning once every 14 seconds. Dark surfaces only. */
.mark-render {
  --z-scale: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 320px;
  height: 320px;
  -webkit-perspective: 900px;
  perspective: 900px;
}

.mark-render .spin {
  position: relative;
  width: 260px;
  height: 260px;
  transform: rotateX(-14deg) rotateY(-28deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  will-change: transform;
  animation: nl-spin 14s linear infinite;
}

.mark-render .mark-layer {
  position: absolute;
  inset: 0;
  display: block;
  transform: translateZ(calc(var(--z, 0px) * var(--z-scale, 1)));
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
}

.mark-render svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes nl-spin {
  from { transform: rotateX(-14deg) rotateY(0deg); }
  to { transform: rotateX(-14deg) rotateY(360deg); }
}

@media (max-width: 900px) {
  .careers-hero .wrap {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark-render .spin {
    animation: none !important;
  }
}

/* Why now: three numbers from the state programs and the pending bill. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat + .stat {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}

.stat:not(:last-child) {
  padding-right: 36px;
}

.stat strong {
  font-family: var(--mono);
  font-size: 40px;
  line-height: 44px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat span {
  max-width: 320px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

.stats-note {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

/* The access numbers sit under the clinical study, in the same band. */
.feature-access {
  margin-top: 36px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.feature-access h3 {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 22px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}


/* Research page: a dark header band as a window onto the turning dot helix,
   sized past the band and cropped by it. */
.research-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: var(--n-ink);
}

.research-hero .wrap {
  position: relative;
  z-index: 1;
}

.research-hero h1 {
  color: var(--n-ink);
}


.research-helix {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) - 110px);
  display: block;
  width: auto;
  max-width: none;
  height: 360px;
  aspect-ratio: 336 / 330;
  transform: translateY(-50%) scaleX(1.12);
  pointer-events: none;
}

@media (max-width: 900px) {
  .research-helix {
    right: -54px;
    height: 270px;
    opacity: 0.5;
  }
}

/* Keep inner-page bands compact, with graphics sized to the same slot.
   The home page retains its larger plate and opening frame. */
:root {
  --hero-h: 315px;
  --hero-vis: 261px;
  --page-hero-height: 162px;
}

.page-hero.research-hero,
.page-hero.careers-hero,
.page-hero.benchmark-hero {
  display: flex;
  align-items: center;
  min-height: var(--page-hero-height);
  padding-block: 0;
}

.careers-hero .mark-render {
  --z-scale: 0.55;
  width: var(--page-hero-height);
  height: var(--page-hero-height);
}

.careers-hero .mark-render .spin {
  width: calc(var(--page-hero-height) - 27px);
  height: calc(var(--page-hero-height) - 27px);
}

@media (min-width: 1181px) {
  .hero {
    min-height: var(--hero-h);
    padding-top: 27px;
    padding-bottom: 27px;
  }

  .plate-panel {
    display: flex;
    align-items: center;
    height: var(--hero-vis);
  }

  .research-hero .wrap,
  .careers-hero .wrap {
    width: min(var(--page), calc(100% - 32px));
  }
}

.careers-apply {
  margin-top: 27px;
}

/* Mobile pass. These come last so they win over the section rules above. */
@media (max-width: 900px) {
  .feature-inner {
    gap: 27px;
  }

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

  .stat + .stat {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .stat:not(:last-child) {
    padding-right: 0;
    padding-bottom: 18px;
  }

  .stat span {
    max-width: none;
  }

  .lead-post-side,
  .lead-post-side .post-meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --page-hero-height: 108px;
  }

  .careers-hero .mark-render {
    --z-scale: 0.38;
  }

  .hero {
    gap: 27px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .frontier h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .feature-access h3 {
    font-size: 19px;
    line-height: 26px;
  }

  .stat strong,
  .metric strong {
    font-size: 36px;
    line-height: 40px;
  }

  .careers-hero h1,
  .research-hero h1,
  .benchmark-hero h1 {
    font-size: 32px;
    line-height: 38px;
  }
}
