:root {
  --paper: #f5f2e9;
  --paper-deep: #ebe5d6;
  --ink: #14241f;
  --ink-soft: #41534c;
  --ink-faint: #718078;
  --line: #d7d2c4;
  --line-strong: #b8b3a6;
  --forest: #183d32;
  --forest-2: #245648;
  --lime: #c7ee77;
  --lime-deep: #8eb93d;
  --orange: #e9844a;
  --blue: #5e8fa3;
  --violet: #826f9d;
  --red: #bb5b50;
  --gold: #b78a35;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(25, 46, 38, 0.12);
  --shadow-small: 0 12px 30px rgba(25, 46, 38, 0.10);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --max-width: 1500px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(199, 238, 119, 0.17), transparent 28rem),
    linear-gradient(180deg, #f8f5ed 0%, var(--paper) 48%, #f0ecdf 100%);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  outline-offset: 3px;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  overflow: hidden;
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 30;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(20, 36, 31, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 290px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--forest);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 38px;
  height: 38px;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.03em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--forest);
  transition: right 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.prototype-pill {
  padding: 8px 12px;
  border: 1px solid rgba(24, 61, 50, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--forest);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  align-items: center;
  gap: 72px;
  padding: 80px 0 68px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--forest-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--lime);
}

.hero h1,
.section-heading h2,
.llm-inner h2 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 7vw, 104px);
}

.hero-lead {
  max-width: 750px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.tool-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-action {
  padding: 0 22px;
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(24, 61, 50, 0.20);
}

.secondary-action {
  padding: 0 22px;
  border: 1px solid rgba(20, 36, 31, 0.20);
  background: rgba(255, 255, 255, 0.48);
}

.primary-action:hover,
.secondary-action:hover,
.tool-button:hover {
  transform: translateY(-2px);
}

.search-wrap {
  position: relative;
  max-width: 690px;
  margin-top: 42px;
}

.search-wrap label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.search-control {
  position: relative;
  display: flex;
  align-items: center;
}

.search-control input {
  width: 100%;
  height: 60px;
  padding: 0 54px 0 50px;
  border: 1px solid rgba(20, 36, 31, 0.18);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: var(--shadow-small);
}

.search-control input:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(36, 86, 72, 0.10), var(--shadow-small);
}

.search-icon {
  position: absolute;
  left: 20px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink-soft);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  background: var(--ink-soft);
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-control kbd {
  position: absolute;
  right: 16px;
  min-width: 26px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
}

.search-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding: 13px 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  background: #f0f4e9;
}

.search-result strong {
  font-size: 14px;
}

.search-result small {
  color: var(--ink-faint);
  font-size: 11px;
}

.search-result p {
  grid-column: 1 / -1;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-ledger {
  position: relative;
}

.hero-ledger::before,
.hero-ledger::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
}

.hero-ledger::before {
  width: 330px;
  height: 330px;
  top: -55px;
  right: -40px;
  background: rgba(199, 238, 119, 0.28);
}

.hero-ledger::after {
  width: 170px;
  height: 170px;
  left: -45px;
  bottom: -55px;
  background: rgba(94, 143, 163, 0.15);
}

.ledger-paper {
  position: relative;
  z-index: 2;
  padding: 27px 30px 30px;
  border: 1px solid rgba(20, 36, 31, 0.16);
  border-radius: 4px 4px 24px 4px;
  background:
    linear-gradient(90deg, transparent 0 54px, rgba(187, 91, 80, 0.18) 54px 55px, transparent 55px),
    repeating-linear-gradient(180deg, rgba(20, 36, 31, 0.045) 0 1px, transparent 1px 34px),
    #fffdf6;
  box-shadow: 20px 28px 70px rgba(25, 46, 38, 0.17);
  transform: rotate(1.2deg);
}

.ledger-paper-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ledger-equation {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 40px 0 38px 26px;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.25vw, 18px);
  font-weight: 800;
}

.ledger-equation i {
  position: relative;
  height: 1px;
  background: var(--ink);
}

.ledger-equation i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border-left: 7px solid var(--ink);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.ledger-facts {
  margin: 0 0 0 26px;
}

.ledger-facts div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(20, 36, 31, 0.25);
}

.ledger-facts dt {
  color: var(--ink-soft);
  font-size: 12px;
}

.ledger-facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.ledger-note {
  margin: 28px 0 0 26px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.metrics-band {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid rgba(20, 36, 31, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.47);
  backdrop-filter: blur(14px);
}

.metric {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px;
  border-right: 1px solid rgba(20, 36, 31, 0.12);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  font-family: var(--font-mono);
  font-size: 29px;
  line-height: 1;
}

.metric span {
  margin-top: 9px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.map-section,
.join-section,
.discipline-section {
  padding-bottom: 132px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 42px;
}

.section-heading h2,
.llm-inner h2 {
  font-size: clamp(38px, 4.2vw, 70px);
}

.section-heading > p:not(.eyebrow),
.llm-inner > div > p:not(.eyebrow) {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
}

.evidence-notice {
  max-width: 350px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(183, 138, 53, 0.30);
  border-radius: 13px;
  background: rgba(255, 248, 224, 0.76);
  color: #6e572a;
  font-size: 12px;
  line-height: 1.5;
}

.notice-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(183, 138, 53, 0.13);
}

.graph-toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px 12px 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #fffdf7;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-group label {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar-group select {
  min-width: 190px;
  height: 40px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.toolbar-actions {
  display: flex;
  gap: 9px;
}

.tool-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 12px;
}

.tool-button-accent {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.tool-button-accent.is-active {
  border-color: var(--orange);
  background: var(--orange);
}

.graph-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: #f7f5ee;
  box-shadow: var(--shadow);
}

.graph-viewport {
  position: relative;
  height: 720px;
  overflow: hidden;
  background:
    linear-gradient(rgba(20, 36, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 36, 31, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 35%, rgba(199, 238, 119, 0.12), transparent 42%),
    #f8f7f1;
  background-size: 28px 28px, 28px 28px, auto, auto;
  cursor: grab;
  touch-action: none;
}

.graph-viewport:active {
  cursor: grabbing;
}

#graph-svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}

#arrow-head path {
  fill: #6a7a73;
}

.graph-edge {
  cursor: pointer;
  transition: opacity 150ms ease;
}

.graph-edge-path {
  fill: none;
  stroke: #6a7a73;
  stroke-width: 2.1;
  marker-end: url(#arrow-head);
  transition: stroke 150ms ease, stroke-width 150ms ease, opacity 150ms ease;
}

.graph-edge-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 18;
}

.graph-edge:hover .graph-edge-path,
.graph-edge.is-selected .graph-edge-path {
  stroke: var(--orange);
  stroke-width: 4;
}

.graph-edge.is-featured .graph-edge-path {
  stroke: var(--forest-2);
  stroke-width: 3.1;
}

.graph-edge.is-highlighted .graph-edge-path {
  stroke: var(--orange);
  stroke-width: 4.4;
}

.graph-edge.is-dimmed,
.graph-node.is-dimmed {
  opacity: 0.13;
}

.graph-edge.is-filtered {
  display: none;
}

.edge-label {
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.graph-edge:hover .edge-label,
.graph-edge.is-selected .edge-label,
.graph-edge.is-highlighted .edge-label,
.graph-edge.is-featured .edge-label {
  opacity: 1;
}

.edge-label rect {
  fill: rgba(255, 253, 247, 0.96);
  stroke: var(--line);
}

.edge-label text {
  fill: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.graph-node {
  cursor: pointer;
  transition: opacity 150ms ease;
}

.graph-node .node-card {
  fill: #fffefa;
  stroke: #aeb8b1;
  stroke-width: 1.5;
  filter: url(#node-shadow);
  transition: stroke 150ms ease, stroke-width 150ms ease, fill 150ms ease;
}

.graph-node:hover .node-card,
.graph-node.is-selected .node-card {
  stroke: var(--orange);
  stroke-width: 3;
}

.graph-node.is-highlighted .node-card {
  stroke: var(--orange);
  stroke-width: 4;
  fill: #fff7ed;
}

.graph-node.is-featured .node-card {
  stroke: var(--forest-2);
  stroke-width: 2.5;
}

.graph-node.is-featured.is-selected .node-card,
.graph-node.is-featured.is-highlighted .node-card {
  stroke: var(--orange);
  stroke-width: 4;
  fill: #fff7ed;
}

.graph-node .node-accent {
  fill: var(--blue);
}

.graph-node[data-type="nutrient_element"] .node-accent { fill: var(--lime-deep); }
.graph-node[data-type="rna"],
.graph-node[data-type="rna_modification"] .node-accent { fill: var(--violet); }
.graph-node[data-type="protein"] .node-accent,
.graph-node[data-type="protein_family"] .node-accent,
.graph-node[data-type="protein_complex"] .node-accent { fill: var(--blue); }
.graph-node[data-type="protein_state"] .node-accent { fill: var(--orange); }
.graph-node[data-type="cellular_process"] .node-accent { fill: var(--gold); }
.graph-node[data-type="gene"] .node-accent,
.graph-node[data-type="cytokine"] .node-accent { fill: var(--red); }
.graph-node[data-type="ion"] .node-accent,
.graph-node[data-type="small_molecule"] .node-accent { fill: #4f9c8b; }

.node-type {
  fill: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.node-title {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
}

.node-count {
  fill: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.node-badge rect {
  fill: var(--forest);
}

.node-badge text {
  fill: var(--lime);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.graph-corner-help,
.graph-legend {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(20, 36, 31, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-faint);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 9px;
}

.graph-corner-help {
  right: 14px;
  bottom: 14px;
}

.graph-legend {
  left: 14px;
  bottom: 14px;
}

.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-node {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.legend-nutrient { background: var(--lime-deep); }
.legend-rna { background: var(--violet); }
.legend-protein { background: var(--blue); }
.legend-state { background: var(--orange); }
.legend-process { background: var(--gold); }
.legend-output { background: var(--red); }

.loading-state {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  background: rgba(248, 247, 241, 0.94);
  transition: opacity 220ms ease, visibility 220ms ease;
}

.loading-state.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-state p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.loading-grid {
  width: 58px;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  transform: rotate(45deg);
}

.loading-grid span {
  border-radius: 6px;
  background: var(--forest);
  animation: ledger-pulse 1.1s infinite ease-in-out;
}

.loading-grid span:nth-child(2) { animation-delay: 120ms; background: var(--lime-deep); }
.loading-grid span:nth-child(3) { animation-delay: 240ms; background: var(--blue); }
.loading-grid span:nth-child(4) { animation-delay: 360ms; background: var(--orange); }

@keyframes ledger-pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.42; }
  50% { transform: scale(1); opacity: 1; }
}

.page-error {
  position: absolute;
  z-index: 10;
  inset: 20px;
  padding: 20px;
  border: 1px solid rgba(187, 91, 80, 0.35);
  border-radius: 14px;
  background: #fff0ed;
  color: #7e342d;
}

.detail-drawer {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(510px, 92vw);
  overflow: auto;
  border-left: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: -24px 0 70px rgba(20, 36, 31, 0.18);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.detail-drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  position: sticky;
  z-index: 3;
  top: 14px;
  float: right;
  margin: 14px 14px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.drawer-content {
  padding: 46px 30px 36px;
}

.drawer-empty {
  min-height: 560px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.drawer-empty-mark {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 28%, var(--orange) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 35%, var(--blue) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 72%, var(--lime-deep) 0 5px, transparent 6px),
    linear-gradient(35deg, transparent 45%, var(--line-strong) 46% 48%, transparent 49%),
    linear-gradient(-35deg, transparent 45%, var(--line-strong) 46% 48%, transparent 49%);
}

.drawer-empty h3 {
  margin: 22px 0 8px;
}

.drawer-empty p {
  max-width: 330px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.drawer-kicker {
  margin: 0 0 10px;
  color: var(--forest-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.drawer-title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.drawer-description {
  margin: 17px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.drawer-badge,
.context-chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f5ed;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.status-badge[data-status="source_derived_draft"] {
  border-color: rgba(183, 138, 53, 0.35);
  background: #fff8e5;
  color: #6e572a;
}

.status-badge[data-status="hypothesis"] {
  border-color: rgba(130, 111, 157, 0.35);
  background: #f4effa;
  color: #5e4e77;
}

.drawer-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.drawer-section h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.drawer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.drawer-stats.has-participants {
  grid-template-columns: repeat(2, 1fr);
}

.participant-claims-section {
  border-left: 3px solid var(--blue);
  padding-left: 16px;
}

.participant-claim-item small {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.drawer-stat {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf8f1;
}

.drawer-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 19px;
}

.drawer-stat span {
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.claim-list,
.participant-list,
.evidence-list,
.hypothesis-mini-list {
  display: grid;
  gap: 9px;
}

.claim-item,
.participant-item,
.evidence-card,
.hypothesis-mini {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffefa;
}

.claim-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.claim-item:hover,
.claim-item:focus-visible {
  border-color: var(--forest-2);
  background: #f4f7ee;
}

.claim-item strong,
.participant-item strong,
.evidence-card strong,
.hypothesis-mini strong {
  display: block;
  font-size: 12px;
}

.claim-item span,
.participant-item span,
.evidence-card span,
.hypothesis-mini span {
  display: block;
  margin-top: 5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.claim-statement {
  margin: 22px 0 0;
  padding: 18px;
  border-left: 4px solid var(--orange);
  background: #fff7ed;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}

.event-card {
  padding: 16px;
  border: 1px solid rgba(36, 86, 72, 0.25);
  border-radius: 14px;
  background: #f2f7f2;
}

.event-card h5 {
  margin: 0;
  font-size: 15px;
}

.event-card > p {
  margin: 8px 0 15px;
  color: var(--ink-soft);
  font-size: 12px;
}

.evidence-card pre {
  max-height: 260px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 9px;
  background: #f3f1e9;
  color: #34443e;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.drawer-loading {
  min-height: 480px;
  display: grid;
  place-content: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.join-section {
  padding-top: 12px;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.join-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
}

.join-card-featured {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.join-card-index {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.join-card-featured .join-card-index,
.join-card-featured .card-kicker,
.join-card-featured p {
  color: rgba(255, 255, 255, 0.68);
}

.card-kicker {
  margin: auto 0 10px;
  color: var(--forest-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.join-card h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.join-card > p:last-of-type {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.62;
}

.text-button {
  align-self: flex-start;
  margin-top: 18px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.llm-section {
  margin-bottom: 132px;
  background:
    radial-gradient(circle at 15% 10%, rgba(199, 238, 119, 0.15), transparent 30rem),
    var(--forest);
  color: var(--white);
}

.llm-inner {
  min-height: 590px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
  padding-top: 75px;
  padding-bottom: 75px;
}

.llm-inner > div > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.67);
}

.code-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  background: #0f251e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.code-window-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.code-window-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.code-window-head span:nth-child(2) { background: var(--gold); }
.code-window-head span:nth-child(3) { background: var(--lime-deep); }

.code-window-head b {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

.code-window pre {
  margin: 0;
  padding: 28px;
  overflow: auto;
  color: #d5e8dc;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
}

.status-key {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 230px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.47);
  color: var(--ink-soft);
  font-size: 11px;
}

.status-key span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-draft { background: var(--gold); }
.status-hypothesis { background: var(--violet); }
.status-correction { background: var(--orange); }

.discipline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ledger-panel,
.sources-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
}

.sources-panel {
  margin-top: 18px;
}

.panel-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.panel-heading span {
  font-size: 13px;
  font-weight: 800;
}

.panel-heading small {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.corrections-list,
.hypotheses-list {
  min-height: 260px;
  padding: 18px;
}

.correction-entry,
.hypothesis-entry {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefa;
}

.correction-entry + .correction-entry,
.hypothesis-entry + .hypothesis-entry {
  margin-top: 12px;
}

.correction-entry header,
.hypothesis-entry header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.correction-entry h3,
.hypothesis-entry h3 {
  margin: 0;
  font-size: 15px;
}

.correction-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.correction-flow p {
  min-height: 92px;
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f3f1e9;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.correction-flow p:last-child {
  background: #eff6e7;
}

.correction-arrow {
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 900;
}

.hypothesis-entry > p {
  color: var(--ink-soft);
  font-size: 12px;
}

.experiment-box {
  margin-top: 14px;
  padding: 12px;
  border-left: 3px solid var(--violet);
  background: #f4effa;
  color: #58496f;
  font-size: 11px;
  line-height: 1.55;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.source-card {
  min-height: 205px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.source-card:last-child {
  border-right: 0;
}

.source-card .source-index {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.source-card h3 {
  margin: 32px 0 10px;
  font-size: 17px;
  line-height: 1.25;
}

.source-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.source-hash {
  display: block;
  margin-top: 14px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  word-break: break-all;
}

.skeleton-line {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.site-footer {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  font-size: 15px;
}

.site-footer p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .site-nav { display: none; }
  .prototype-pill { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-ledger { max-width: 720px; }
  .metrics-band { grid-template-columns: repeat(3, 1fr); }
  .metric:nth-child(3) { border-right: 0; }
  .metric:nth-child(n+4) { border-top: 1px solid rgba(20, 36, 31, 0.12); }
  .join-grid { grid-template-columns: repeat(2, 1fr); }
  .llm-inner { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: 1fr; }
  .source-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-card:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
  .section-shell,
  .site-header,
  .metrics-band,
  .site-footer { width: min(calc(100% - 28px), var(--max-width)); }
  .site-header { min-height: 76px; }
  .brand { min-width: 0; }
  .brand-copy small { display: none; }
  .prototype-pill { display: none; }
  .hero { min-height: auto; padding: 58px 0 75px; gap: 60px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .ledger-paper { padding-left: 18px; padding-right: 18px; }
  .metrics-band { grid-template-columns: 1fr 1fr; }
  .metric { border-top: 1px solid rgba(20, 36, 31, 0.12); }
  .metric:nth-child(1), .metric:nth-child(2) { border-top: 0; }
  .metric:nth-child(even) { border-right: 0; }
  .metric:nth-child(3) { border-right: 1px solid rgba(20, 36, 31, 0.12); }
  .metric:last-child { grid-column: 1 / -1; }
  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .graph-toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { flex-wrap: wrap; }
  .toolbar-actions .tool-button { flex: 1 1 auto; }
  .graph-viewport { height: 650px; }
  .graph-legend { display: none; }
  .graph-corner-help { left: 12px; right: 12px; justify-content: center; }
  .join-grid,
  .discipline-grid { grid-template-columns: 1fr; }
  .join-card { min-height: 280px; }
  .correction-flow { grid-template-columns: 1fr; }
  .correction-arrow { transform: rotate(90deg); justify-self: center; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 38px 0; }
}

@media (max-width: 560px) {
  .brand-copy strong { font-size: 13px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-action, .secondary-action { width: 100%; }
  .ledger-paper-head { align-items: flex-start; flex-direction: column; }
  .ledger-equation { margin-left: 0; font-size: 10px; }
  .ledger-facts, .ledger-note { margin-left: 0; }
  .metrics-band { grid-template-columns: 1fr; }
  .metric { border-right: 0 !important; border-top: 1px solid rgba(20, 36, 31, 0.12) !important; }
  .metric:first-child { border-top: 0 !important; }
  .metric:last-child { grid-column: auto; }
  .graph-viewport { height: 600px; }
  .toolbar-group { align-items: stretch; flex-direction: column; }
  .toolbar-group select { width: 100%; }
  .detail-drawer { width: 100%; }
  .drawer-content { padding-left: 20px; padding-right: 20px; }
  .drawer-stats { grid-template-columns: 1fr; }
  .drawer-stats.has-participants { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}
