/* ==========================================================================
   Weaver Lab — design option 04 · THE ATLAS
   A crisp, Swiss/technical, data-forward system: visible hairline rules,
   monospace metadata, big tabular numbers, and the lab's single-cell atlas
   as the front door. Cool paper ground, near-black ink, UAB Green accent.
   Type: Space Grotesk (display) · Inter (body) · IBM Plex Mono (metadata).
   ========================================================================== */

:root {
  --paper: #fbfcfd;
  --panel: #f3f5f8;
  --ink: #101418;
  --body: #2c343e;
  --muted: #5b6572;
  --faint: #8b95a3;
  --line: #dde3ea;
  --line-mid: #c6cfd9;
  --grid: #eceff3;
  --green: #1c5420;
  --green-ink: #174519;
  --green-tint: #e9f0ea;
  --gold: #fdb913;
  --stage: #10151d;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }
.narrow { max-width: 800px; }

h1, h2, h3 {
  font-family: var(--disp);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
em { font-style: italic; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel); padding: 0.08em 0.35em; border-radius: 3px; }

/* metadata voice — the signature of this option */
.m {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.m--up { text-transform: uppercase; letter-spacing: 0.12em; }
.m a { color: var(--green); }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
}
.kicker .idx { color: var(--faint); }

.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ============================== header ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 58px;
}
.brand {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-left: 0.6rem;
  text-transform: none;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--green); border-bottom-color: var(--green); }
.nav-toggle {
  display: none;
  margin-left: auto;
  appearance: none;
  border: 1px solid var(--line-mid);
  background: none;
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  cursor: pointer;
}

/* ============================== sections ============================== */

.section { padding: 4.5rem 0; }
.section--soft { background: var(--panel); border-block: 1px solid var(--line); }
.section--rule { border-top: 1px solid var(--line); }

/* axis-label section headers */
.axis-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 2rem;
}
.axis-head h2 { margin: 0; }
.axis-head .m { margin-left: auto; text-align: right; }

/* ============================== hero ============================== */

.hero {
  padding: 4rem 0 3rem;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  border-bottom: 1px solid var(--line);
}
.hero--flat { background-image: none; padding-bottom: 0; border-bottom: 0; }
.hero .lede {
  font-size: 1.08rem;
  max-width: 60ch;
  color: var(--body);
}
.hero h1 .green { color: var(--green); }
.hero-links { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================== stat rail ============================== */

.stat-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line-mid);
  background: var(--paper);
  margin-top: 2.5rem;
}
.stat {
  padding: 1.1rem 1.25rem 1rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.stat .value {
  display: block;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--ink);
  line-height: 1;
}
.stat .unit {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  margin-top: 0.3rem;
}

/* ============================== figure frame ============================== */

.fig { margin: 3rem 0 0; position: relative; }
.fig-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding-bottom: 0.55rem;
}
.fig-head .fig-no { color: var(--ink); font-weight: 600; text-transform: uppercase; }
.fig-head .fig-title { color: var(--muted); text-transform: uppercase; }
.fig-head .fig-meta { margin-left: auto; color: var(--faint); }

/* corner crosshair ticks around the stage */
.fig-frame { position: relative; padding: 10px; }
.fig-frame .ch {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1;
  color: var(--line-mid);
  user-select: none;
  pointer-events: none;
}
.fig-frame .ch--tl { top: -4px; left: -3px; }
.fig-frame .ch--tr { top: -4px; right: -3px; }
.fig-frame .ch--bl { bottom: -4px; left: -3px; }
.fig-frame .ch--br { bottom: -4px; right: -3px; }

.fig-caption {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 76ch;
}
.exhibit-status {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

/* decorative time scale-bar under the figure */
.scalebar { margin-top: 1.4rem; }
.scalebar svg { display: block; width: 100%; height: 44px; overflow: visible; }

/* preset deep links */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
}
.presets .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.presets a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green-ink);
  border: 1px solid var(--line-mid);
  background: var(--paper);
  border-radius: 3px;
  padding: 0.28rem 0.6rem;
}
.presets a:hover { border-color: var(--green); text-decoration: none; background: var(--green-tint); }

/* ======================= the atlas exhibit (stage) ======================= */
/* Dark WebGL stage inside the light page. The categorical palette was
   validated on this surface (#10151d): CVD min ΔE 9.7, normal ΔE 16.3. */

.exhibit-stage {
  position: relative;
  background: var(--stage);
  border: 1px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 440px;
}
.exhibit-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.exhibit-stage canvas.dragging { cursor: grabbing; }

.exhibit-controls {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  pointer-events: none;
  z-index: 3;
}
.exhibit-controls--top { top: 0.9rem; }
.exhibit-controls--bottom { bottom: 0.9rem; }

.chipgroup { pointer-events: auto; display: flex; align-items: center; gap: 0.5rem; }
.chipgroup-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.chips {
  display: inline-flex;
  background: rgba(16, 21, 29, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 2px;
  backdrop-filter: blur(8px) saturate(140%);
}
.chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.42rem 0.62rem;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.chip:hover { color: #fff; }
.chip.is-on { background: #fbfcfd; color: #101418; font-weight: 600; }
.chip:focus-visible { outline: 2px solid #fbfcfd; outline-offset: 1px; }
.chip .gene { font-style: italic; }

.exhibit-legend {
  position: absolute;
  top: 3.4rem;
  right: 0.9rem;
  z-index: 2;
  background: rgba(16, 21, 29, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  backdrop-filter: blur(8px) saturate(140%);
  max-width: 250px;
}
.exhibit-legend .lg-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.14rem 0.1rem;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 3px;
}
.exhibit-legend .lg-item:hover { background: rgba(255, 255, 255, 0.07); }
.exhibit-legend .lg-item.off { opacity: 0.35; }
.exhibit-legend .lg-item.off .lg-name { text-decoration: line-through; }
.exhibit-legend .lg-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.exhibit-legend .lg-count {
  margin-left: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.64rem;
}
.exhibit-legend .lg-ramp { width: 170px; height: 10px; border-radius: 2px; margin: 0.35rem 0 0.3rem; }
.exhibit-legend .lg-ramp-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.55);
}
.exhibit-legend .lg-note {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.3rem;
}

.exhibit-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.exhibit-labels .glabel {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 0 5px rgba(6, 9, 14, 0.95), 0 0 12px rgba(6, 9, 14, 0.9);
  white-space: nowrap;
}

.exhibit-zoom {
  position: absolute;
  right: 0.9rem;
  bottom: 3.4rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exhibit-zoom button {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 21, 29, 0.74);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.exhibit-zoom button:hover { background: rgba(255, 255, 255, 0.12); }
.exhibit-zoom button.is-on { background: #fbfcfd; border-color: #fbfcfd; color: #101418; }
.exhibit-zoom button:focus-visible { outline: 2px solid #fbfcfd; outline-offset: 1px; }

.exhibit-readout {
  position: absolute;
  left: 0.9rem;
  bottom: 3.2rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(16, 21, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  max-width: 60%;
}
.exhibit-readout.show { opacity: 1; }

.exhibit-hint {
  position: absolute;
  left: 50%;
  bottom: 3.2rem;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(16, 21, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 0.3rem 0.8rem;
  pointer-events: none;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
.exhibit-hint.hide { opacity: 0; }

/* ============================== modules ============================== */

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-mid);
  border: 1px solid var(--line-mid);
}
.module {
  background: var(--paper);
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.module .idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green);
  margin: 0 0 0.9rem;
}
.module h3 { margin-bottom: 0.5rem; }
.module p { font-size: 0.94rem; color: var(--muted); margin-bottom: 0; }
.module .schematic { margin: 0 0 1.1rem; }
.module .schematic svg { display: block; width: 100%; height: auto; }
.module .more { margin-top: auto; padding-top: 1rem; }
.module .more a {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* full-width research modules (research.html) */
.rmodule {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.rmodule:first-of-type { border-top: 0; }
.rmodule .schematic { border: 1px solid var(--line); background: var(--paper); padding: 1.2rem; }
.rmodule .schematic svg { display: block; width: 100%; height: auto; }
.rmodule .schematic .cap {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0.8rem 0 0;
}

/* ============================== log (news) ============================== */

.log { border: 1px solid var(--line-mid); background: var(--paper); }
.log-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.log-row:first-child { border-top: 0; }
.log-row .date {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  padding-top: 0.2rem;
}
.log-row .title { font-weight: 600; color: var(--ink); display: block; }
.log-row p { margin: 0.15rem 0 0; font-size: 0.92rem; color: var(--muted); }

/* ============================== people ============================== */

.pi-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  border: 1px solid var(--line-mid);
  background: var(--paper);
  padding: 2rem;
  align-items: start;
}
.portrait {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px;
  border: 1px solid var(--line-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--faint);
}
.speclist { margin: 1.25rem 0 0; display: grid; grid-template-columns: 120px 1fr; gap: 0.35rem 1.25rem; }
.speclist dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.22rem;
}
.speclist dd { margin: 0; font-size: 0.95rem; }

.roster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-mid);
  border: 1px solid var(--line-mid);
}
.person { background: var(--paper); padding: 1.4rem 1.35rem; }
.person .idx {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--faint);
  display: block;
  margin-bottom: 0.7rem;
}
.person .name { font-family: var(--disp); font-weight: 600; font-size: 1.05rem; color: var(--ink); display: block; }
.person .role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
  margin-top: 0.25rem;
}
.person .links { margin-top: 0.7rem; display: flex; gap: 1rem; }
.person .links a { font-family: var(--mono); font-size: 0.7rem; }

/* ============================== publications ============================== */

.pub-tools { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: 0 0 2rem; }
.pub-tools input[type="search"] {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-mid);
  border-radius: 3px;
  padding: 0.5rem 0.8rem;
  width: min(360px, 100%);
}
.pub-tools input::placeholder { color: var(--faint); }
.pub-count { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.pub-year { border-top: 1px solid var(--ink); margin-top: 2.2rem; }
.pub-year:first-of-type { margin-top: 0; }
.pub-year .yr {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  padding: 0.55rem 0;
  margin: 0;
}
.pub {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.25rem;
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--line);
}
.pub .no {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 0.25rem;
}
.pub .title { font-family: var(--disp); font-weight: 600; font-size: 1.02rem; color: var(--ink); display: block; line-height: 1.35; }
.pub .authors { font-size: 0.88rem; color: var(--muted); margin: 0.3rem 0 0; }
.pub .authors .me { color: var(--ink); font-weight: 600; }
.pub .meta { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); margin: 0.35rem 0 0; }
.pub .meta a { color: var(--green-ink); }
.pub .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.6rem;
  vertical-align: 2px;
}

/* ============================== join / contact ============================== */

.openings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-mid);
  border: 1px solid var(--line-mid);
}
.opening { background: var(--paper); padding: 1.5rem 1.4rem; }
.opening .idx {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green);
  display: block;
  margin-bottom: 0.7rem;
}
.opening p { font-size: 0.93rem; color: var(--muted); margin: 0.4rem 0 0; }

.contact-panel {
  border: 1px solid var(--line-mid);
  background: var(--paper);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* ============================== footer ============================== */

.site-footer {
  margin-top: 4.5rem;
  border-top: 1px solid var(--ink);
  padding: 2.2rem 0 2.6rem;
  background: var(--paper);
}
.foot-grid { display: flex; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot-grid .brand { font-size: 0.95rem; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-left: auto; }
.foot-links a {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-links a:hover { color: var(--green); }
.site-footer small {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* ============================== responsive ============================== */

@media (max-width: 940px) {
  .stat-rail { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4), .stat:nth-child(5) { border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-left: 0; }
  .module-grid { grid-template-columns: 1fr; }
  .rmodule { grid-template-columns: 1fr; gap: 1.5rem; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .pi-panel { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-mid);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--green); }
  .nav-toggle { display: block; }
  .brand .sub { display: none; }

  .section { padding: 3rem 0; }
  .stat-rail { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-left: 1px solid var(--line); }
  .roster { grid-template-columns: 1fr; }
  .openings { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .pub { grid-template-columns: 1fr; gap: 0.2rem; }
  .pub .no { display: none; }
  .axis-head { flex-direction: column; gap: 0.3rem; }
  .axis-head .m { margin-left: 0; text-align: left; }

  .exhibit-stage { aspect-ratio: auto; height: 76vh; }
  .exhibit-legend { max-width: 46%; }
  .exhibit-controls { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
  .exhibit-controls--top { right: 44%; }
  .chipgroup { flex-wrap: wrap; max-width: 100%; }
  .chips { flex-wrap: wrap; max-width: 100%; }
  .exhibit-legend { max-width: 42%; max-height: 42%; overflow-y: auto; }
  .exhibit-zoom { bottom: 8.5rem; }
  .fig-head .fig-meta { flex-basis: 100%; margin-left: 0; }
}
