@font-face {
  font-family: "CMU Serif";
  src: url("fonts/cmunrm.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  src: url("fonts/cmunti.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  src: url("fonts/cmunbx.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  src: url("fonts/cmunbi.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f6f3ee;
  --paper: #fffdf9;
  --ink: #141414;
  --muted: #5a574f;
  --line: #ddd6c8;
  --protein: #3b6fd4;
  --chem: #2f8a5a;
  --materials: #c45a1c;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "CMU Serif", "Computer Modern", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.mark {
  font-family: "CMU Serif", "Computer Modern", serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
nav { display: flex; gap: 22px; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
nav a:hover { color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 0 28px 80px; }

.hero { padding: 72px 0 40px; }
.hero h1 {
  font-family: "CMU Serif", "Computer Modern", serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 36px;
}
.lede { max-width: 640px; }
.lede p { color: #3a3832; margin: 0 0 18px; }
.lede strong { font-weight: 700; }

.section-head { max-width: 720px; margin-bottom: 28px; }
.kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
h2 {
  font-family: "CMU Serif", "Computer Modern", serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.section-head p:last-child { color: var(--muted); margin: 0; }

.facility { padding: 48px 0 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
}
.filter.is-on { background: #fff; border-color: #bbb; }
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: middle;
}
.dot.protein { background: var(--protein); }
.dot.chem { background: var(--chem); }
.dot.materials { background: var(--materials); }

.facility-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.plan-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.plan { width: 100%; height: auto; display: block; }
.plan .slab { fill: #f3efe6; stroke: #d9d1c2; }
.plan .aisle { fill: #e7e1d4; }
.plan-label {
  font-family: "CMU Serif", "Computer Modern", serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  fill: #8a8478;
}
.plan .bay { cursor: pointer; }
.plan .bay rect { fill: #fff; stroke: #cfc6b6; }
.plan .bay[data-kind="protein"] rect { stroke: #9bb6e6; }
.plan .bay[data-kind="chem"] rect { stroke: #97c4a8; }
.plan .bay[data-kind="materials"] rect { stroke: #e0b08a; }
.plan .bay text {
  font-family: "CMU Serif", "Computer Modern", serif;
  font-size: 14px;
  fill: #1c1c1c;
}
.plan .bay .sub { font-size: 11px; fill: #7a7468; }
.plan .bay.is-on rect { fill: #1c1c1c; }
.plan .bay.is-on text { fill: #f6f3ee; }
.plan .bay.is-on .sub { fill: #c8c2b6; }
.plan .bay.is-dim { opacity: 0.22; pointer-events: none; }
.plan .bay:hover rect { filter: brightness(0.97); }

.station {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 280px;
}
.station-id {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.station h3 {
  font-family: "CMU Serif", "Computer Modern", serif;
  font-size: 28px;
  margin: 0 0 6px;
  font-weight: 400;
}
.station-kind { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.station-body { margin: 0 0 18px; font-size: 16px; }
.station dl { margin: 0; display: grid; gap: 8px; }
.station dl div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; font-size: 14px; }
.station dt { color: var(--muted); }
.station dd { margin: 0; }

.harness, .assay, .careers { padding: 64px 0 12px; }
.loop {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.loop li {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
}
.loop span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.loop h3 { font-size: 18px; margin: 8px 0 8px; font-weight: 700; }
.loop p { margin: 0; color: #3a3832; font-size: 15px; }

.essay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 72px 0 24px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.essay-col p { color: #3a3832; }

.assay-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
}
.assay-card:hover { background: #1c1c1c; color: #f6f3ee; }
.assay-card p { margin: 0; font-family: "CMU Serif", "Computer Modern", serif; font-size: 22px; }

.cta a {
  color: var(--ink);
  font-size: 22px;
}

.site-footer {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.names { max-width: 640px; }

@media (max-width: 860px) {
  .facility-grid, .essay, .loop { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; gap: 12px; }
  nav { flex-wrap: wrap; }
  .hero { padding-top: 40px; }
}
