:root {
  --paper: #fffdf7;
  --paper-2: #f6f2e7;
  --ink: #173934;
  --ink-2: #365752;
  --muted: #6a7773;
  --line: #d9ddd3;
  --green: #2f776a;
  --lime: #e6f16a;
  --coral: #f36b5d;
  --violet: #7a67e8;
  --sky: #61b7e8;
  --gold: #f4c95d;
  --white: #ffffff;
  --danger: #9e3f37;
  --shadow-sm: 0 8px 24px rgba(23, 57, 52, 0.08);
  --shadow-md: 0 18px 50px rgba(23, 57, 52, 0.12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 34px;
  --max: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --paper: #10211f;
  --paper-2: #172d29;
  --ink: #f5f4ea;
  --ink-2: #d5ddd7;
  --muted: #aeb9b4;
  --line: #35504a;
  --green: #7ec3b5;
  --lime: #ddea68;
  --coral: #ff8378;
  --violet: #9b8bf1;
  --sky: #7ac5ed;
  --gold: #f2ce6d;
  --white: #18302c;
  --danger: #ff9f95;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--lime);
  color: #173934;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 36px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  text-decoration: none;
}

.brand img {
  width: 210px;
  height: 44px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: var(--paper-2);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-button:hover,
.menu-button:hover {
  background: var(--paper-2);
}

.menu-button {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--paper-2);
}

.btn-lime {
  background: var(--lime);
  color: #173934;
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.narrow {
  width: min(780px, calc(100% - 36px));
  margin-inline: auto;
}

main {
  flex: 1;
}

.announcement {
  border-bottom: 1px solid var(--line);
  background: var(--lime);
  color: #173934;
  font-size: 0.9rem;
  font-weight: 750;
}

.announcement .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 68px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.42;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  left: -250px;
  top: -90px;
  background: radial-gradient(circle, var(--sky), transparent 68%);
}

.hero::after {
  width: 520px;
  height: 520px;
  right: -320px;
  bottom: -310px;
  background: radial-gradient(circle, var(--violet), transparent 67%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero h1,
.page-hero h1,
.display-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.hero h1 .accent {
  position: relative;
  display: inline-block;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.18em;
  z-index: -1;
  border-radius: 999px;
  background: var(--lime);
  transform: rotate(-1.6deg);
}

.hero-copy {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

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

.hero-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar-stack span {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #173934;
  font-size: 0.7rem;
  font-weight: 900;
}

.avatar-stack span:first-child {
  margin-left: 0;
}

.avatar-a { background: var(--lime); }
.avatar-b { background: var(--sky); }
.avatar-c { background: #ffd3c8; }
.avatar-d { background: #cfc7ff; }

.hero-graph-card {
  position: relative;
  min-height: 520px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(145deg, var(--lime), var(--sky), var(--violet)) border-box;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-graph-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.graph-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.graph-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 850;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--coral) 18%, transparent);
}

.graph-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-graph {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 410px;
  margin-top: 18px;
}

.hero-graph svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mini-edge {
  stroke: color-mix(in srgb, var(--ink) 25%, transparent);
  stroke-width: 2;
  fill: none;
}

.mini-edge.dashed {
  stroke-dasharray: 6 7;
}

.mini-node {
  cursor: pointer;
  transition: transform 150ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.mini-node:hover {
  transform: scale(1.05);
}

.mini-node rect {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 1.5;
  filter: drop-shadow(0 7px 12px rgba(23, 57, 52, 0.09));
}

.mini-node text {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.mini-node .node-dot {
  stroke: var(--paper);
  stroke-width: 3;
}

.graph-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.78rem;
}

.search-panel {
  margin-top: -12px;
  position: relative;
  z-index: 4;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.search-box svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box .btn {
  flex: 0 0 auto;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 58px 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 38px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.content-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #173934;
}

.icon-lime { background: var(--lime); }
.icon-sky { background: var(--sky); }
.icon-coral { background: #ffd3c8; }
.icon-violet { background: #d7d0ff; }

.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.48rem;
  line-height: 1.16;
}

.card p {
  margin: 12px 0 0;
  color: var(--ink-2);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.step-number {
  position: absolute;
  top: 14px;
  right: 18px;
  color: color-mix(in srgb, var(--ink) 12%, transparent);
  font-family: var(--serif);
  font-size: 4.3rem;
  line-height: 1;
}

.step-card h3 {
  margin: 82px 0 0;
  font-size: 1.04rem;
}

.step-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.quote-band {
  position: relative;
  padding: 88px 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.quote-band::before {
  content: '“';
  position: absolute;
  top: -90px;
  left: 4vw;
  font-family: var(--serif);
  font-size: 22rem;
  color: color-mix(in srgb, var(--lime) 17%, transparent);
  line-height: 1;
}

.quote-band blockquote {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.quote-band p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  font-size: 1.05rem;
}

.care-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: start;
}

.care-orbit {
  position: sticky;
  top: 112px;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.orbit-ring {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 999px;
}

.orbit-ring.r1 { width: 150px; height: 150px; }
.orbit-ring.r2 { width: 270px; height: 270px; }
.orbit-ring.r3 { width: 390px; height: 390px; }

.orbit-center {
  width: 98px;
  height: 98px;
  border-radius: 28px;
  background: var(--lime);
  color: #173934;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  line-height: 1.05;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-sm);
}

.orbit-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
  font-weight: 800;
}

.orbit-chip::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--chip-color, var(--green));
}

.orbit-chip.human { top: 75px; left: 50%; transform: translateX(-50%); --chip-color: var(--coral); }
.orbit-chip.animals { right: 18px; top: 220px; --chip-color: var(--gold); }
.orbit-chip.ecology { bottom: 75px; left: 50%; transform: translateX(-50%); --chip-color: var(--green); }
.orbit-chip.future { left: 16px; top: 220px; --chip-color: var(--violet); }

.care-list {
  display: grid;
  gap: 14px;
}

.care-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.care-item:first-child {
  padding-top: 0;
}

.care-item:last-child {
  border-bottom: 0;
}

.care-item h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
}

.care-item p {
  margin: 9px 0 0;
  color: var(--ink-2);
}

.cta-panel {
  position: relative;
  padding: 54px;
  border-radius: var(--radius-lg);
  background: var(--lime);
  color: #173934;
  overflow: hidden;
}

.cta-panel::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  bottom: -130px;
  border: 2px solid rgba(23, 57, 52, 0.18);
  border-radius: 999px;
  box-shadow: 0 0 0 38px rgba(23, 57, 52, 0.05), 0 0 0 76px rgba(23, 57, 52, 0.04);
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.cta-panel p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.cta-panel .hero-actions {
  position: relative;
  z-index: 1;
}

.page-hero {
  padding: 70px 0 48px;
}

.page-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.2rem);
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 1.12rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 800;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.pill.documented .pill-dot { background: var(--green); }
.pill.supported .pill-dot { background: var(--sky); }
.pill.probable .pill-dot { background: var(--gold); }
.pill.disputed .pill-dot { background: var(--coral); }

.explorer-shell {
  width: min(1460px, calc(100% - 28px));
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 330px;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.explorer-sidebar,
.explorer-detail {
  padding: 22px;
  background: var(--paper);
}

.explorer-sidebar {
  border-right: 1px solid var(--line);
}

.explorer-detail {
  border-left: 1px solid var(--line);
}

.explorer-canvas {
  position: relative;
  min-width: 0;
  min-height: 720px;
  overflow: hidden;
  background: var(--paper-2);
}

.explorer-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
}

.explorer-canvas svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.explorer-toolbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.explorer-toolbar > * {
  pointer-events: auto;
}

.canvas-badge {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.zoom-controls {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
}

.zoom-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.zoom-controls button:hover {
  background: var(--paper-2);
}

.filter-group {
  margin-top: 24px;
}

.filter-group h3,
.sidebar-title {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-search {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  outline: 0;
}

.sidebar-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.check-row .left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.legend-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend-line {
  width: 30px;
  height: 2px;
  background: var(--green);
}

.legend-line.dashed {
  background: linear-gradient(90deg, var(--gold) 0 50%, transparent 50% 100%);
  background-size: 8px 2px;
}

.legend-line.dotted {
  background: linear-gradient(90deg, var(--coral) 0 25%, transparent 25% 100%);
  background-size: 6px 2px;
}

.graph-edge {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 24%, transparent);
  stroke-width: 2;
}

.graph-edge.probable {
  stroke: var(--gold);
  stroke-dasharray: 7 6;
}

.graph-edge.disputed {
  stroke: var(--coral);
  stroke-dasharray: 2 6;
}

.graph-edge.hidden,
.graph-node.hidden {
  display: none;
}

.graph-node {
  cursor: pointer;
}

.graph-node .node-card {
  fill: var(--paper);
  stroke: var(--line);
  stroke-width: 1.3;
  filter: drop-shadow(0 8px 12px rgba(23, 57, 52, 0.09));
  transition: stroke 150ms ease, stroke-width 150ms ease;
}

.graph-node:hover .node-card,
.graph-node.selected .node-card {
  stroke: var(--green);
  stroke-width: 2.6;
}

.graph-node .node-name {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
}

.graph-node .node-meta {
  fill: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  pointer-events: none;
}

.graph-node .type-dot {
  stroke: var(--paper);
  stroke-width: 3;
}

.detail-empty {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.detail-empty svg {
  margin: 0 auto 14px;
}

.detail-content[hidden],
.detail-empty[hidden] {
  display: none;
}

.detail-kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-content h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.06;
}

.detail-summary {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.detail-facts {
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.fact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.fact-row span:first-child {
  color: var(--muted);
  font-weight: 700;
}

.fact-row span:last-child {
  text-align: right;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 44px;
  align-items: start;
}

.profile-main {
  min-width: 0;
}

.profile-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.info-card h3 {
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-list {
  display: grid;
  gap: 11px;
}

.info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-row dt {
  color: var(--muted);
  font-weight: 700;
}

.info-row dd {
  margin: 0;
  font-weight: 750;
}

.profile-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.profile-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.profile-section > p {
  color: var(--ink-2);
}

.relation-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.relation-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-decoration: none;
}

.relation-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

.relation-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--green);
  font-weight: 900;
}

.relation-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.relation-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.evidence-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.evidence-badge.probable::before { background: var(--gold); }
.evidence-badge.disputed::before { background: var(--coral); }
.evidence-badge.supported::before { background: var(--sky); }

.source-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.source-card {
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
  background: var(--paper-2);
}

.source-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.source-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.source-card a {
  display: inline-flex;
  margin-top: 9px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.notice {
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--gold) 65%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 12%, var(--paper));
  color: var(--ink-2);
  font-size: 0.88rem;
}

.notice strong {
  color: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.story-card.placeholder {
  border-style: dashed;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.story-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
}

.story-card p {
  color: var(--ink-2);
}

.consent-box {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.consent-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: #173934;
}

.consent-box h3 {
  margin: 0;
}

.consent-box p {
  margin: 6px 0 0;
  color: var(--ink-2);
}

.charter-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.charter-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 5px;
}

.charter-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.charter-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.charter-article {
  display: grid;
  gap: 18px;
}

.charter-principle {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 105px;
}

.charter-principle:first-child {
  border-top: 0;
  padding-top: 0;
}

.principle-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  border-radius: 12px;
  background: var(--lime);
  color: #173934;
  font-weight: 900;
}

.charter-principle h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.charter-principle p,
.charter-principle li {
  color: var(--ink-2);
}

.charter-principle ul {
  padding-left: 20px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 44px;
  align-items: start;
}

.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.form-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-section h2 {
  margin: 0 0 18px;
  font-size: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.radio-chip {
  position: relative;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.radio-chip input:checked + span {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, var(--paper));
  color: var(--ink);
}

.form-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

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

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: relative;
  width: 30px;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  content: '';
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 3px solid var(--paper);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  z-index: 1;
}

.timeline-item:not(:last-child) .timeline-marker::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: -4px;
  width: 1px;
  background: var(--line);
}

.timeline-copy h3 {
  margin: 0;
  font-size: 0.9rem;
}

.timeline-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(8, 22, 20, 0.56);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.modal-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
}

.modal-card p {
  color: var(--ink-2);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: var(--paper-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.6fr);
  gap: 40px;
}

.footer-brand img {
  width: 180px;
}

.footer-brand p {
  max-width: 390px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.mobile-only {
  display: none;
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy-wrap {
    max-width: 800px;
  }

  .hero-graph-card {
    min-height: 490px;
  }

  .explorer-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .explorer-detail {
    display: none;
  }

  .care-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .menu-button {
    display: inline-grid;
  }

  .header-actions .btn {
    display: none;
  }

  .card-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

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

  .care-grid,
  .profile-layout,
  .form-layout,
  .charter-layout {
    grid-template-columns: 1fr;
  }

  .care-orbit,
  .profile-aside,
  .form-aside,
  .charter-nav {
    position: static;
  }

  .charter-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .explorer-shell {
    grid-template-columns: 1fr;
  }

  .explorer-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-groups-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .explorer-canvas {
    min-height: 640px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow {
    width: min(100% - 24px, var(--max));
  }

  .nav-wrap {
    width: calc(100% - 24px);
    height: 68px;
  }

  .nav-links {
    top: 68px;
    left: 12px;
    right: 12px;
  }

  .brand,
  .brand img {
    width: 174px;
    min-width: 174px;
  }

  .hero {
    padding: 54px 0 50px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .hero-graph-card {
    min-height: 430px;
    padding: 16px;
    border-radius: 24px;
  }

  .hero-graph {
    height: 345px;
  }

  .graph-caption {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .graph-caption span:last-child {
    display: none;
  }

  .search-box {
    border-radius: 18px;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 14px;
  }

  .search-box input {
    min-height: 38px;
  }

  .search-box .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .steps-grid,
  .field-grid,
  .filter-groups-wrap {
    grid-template-columns: 1fr;
  }

  .care-orbit {
    min-height: 390px;
  }

  .orbit-ring.r3 { width: 320px; height: 320px; }
  .orbit-ring.r2 { width: 230px; height: 230px; }
  .orbit-chip.human { top: 46px; }
  .orbit-chip.animals { top: 184px; right: 5px; }
  .orbit-chip.future { top: 184px; left: 5px; }
  .orbit-chip.ecology { bottom: 44px; }

  .cta-panel {
    padding: 34px 24px;
  }

  .page-hero {
    padding: 52px 0 34px;
  }

  .explorer-shell {
    width: calc(100% - 12px);
    border-radius: 20px;
  }

  .explorer-canvas {
    min-height: 560px;
  }

  .relation-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .relation-card .evidence-badge {
    grid-column: 2;
    justify-self: start;
  }

  .form-card {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-only {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Governance page — v0.2 */
.governance-manifesto {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 15%, color-mix(in srgb, var(--lime) 36%, transparent), transparent 28%),
    radial-gradient(circle at 8% 90%, color-mix(in srgb, var(--violet) 16%, transparent), transparent 32%),
    var(--paper-2);
}

.governance-manifesto blockquote {
  max-width: 900px;
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.governance-manifesto > p:last-child {
  max-width: 830px;
  margin: 0;
  color: var(--ink-2);
}

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

.role-card {
  min-height: 235px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.role-card.agent {
  background: color-mix(in srgb, var(--violet) 7%, var(--paper));
}

.role-level {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card h3 {
  margin: 18px 0 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.role-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 60px;
  align-items: center;
}

.split-feature h2 {
  margin: 6px 0 16px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.split-feature > div:first-child > p:not(.eyebrow) {
  color: var(--ink-2);
}

.protection-stack {
  display: grid;
  gap: 10px;
}

.protection-stack article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.protection-stack article > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lime);
  color: #173934;
  font-weight: 900;
}

.protection-stack h3,
.protection-stack p {
  margin: 0;
}

.protection-stack h3 {
  font-size: 0.98rem;
}

.protection-stack p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.badge-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 0.86rem;
}

.small-note {
  font-size: 0.82rem !important;
  color: var(--muted) !important;
}

.dispute-timeline {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.covenant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.covenant-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.covenant-grid article > span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.covenant-grid h3 {
  margin: 13px 0 7px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.covenant-grid p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.85rem;
}

@media (max-width: 1080px) {
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-feature {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 720px) {
  .governance-manifesto {
    padding: 24px;
  }

  .role-grid,
  .covenant-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: auto;
  }

  .protection-stack article {
    grid-template-columns: 46px 1fr;
  }
}
