:root {
  color-scheme: light;
  --bg: #f4f1eb;
  --paper: #fffdf9;
  --paper-soft: #ebe7df;
  --ink: #121615;
  --ink-soft: #343a37;
  --muted: #6f756f;
  --line: #d9d5cc;
  --line-strong: #bcb8af;
  --signal: #e75c3d;
  --signal-deep: #b83b24;
  --signal-soft: #f6d5cb;
  --teal: #587f7b;
  --teal-soft: #dce8e5;
  --lime: #ddeb7a;
  --mint: #b9d6ce;
  --sun: #efd174;
  --shadow: 0 24px 70px rgba(24, 31, 28, 0.09);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --header-height: 74px;
  --accent: var(--signal);
  --accent-soft: var(--signal-soft);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1312;
  --paper: #171c1a;
  --paper-soft: #202624;
  --ink: #f5f2eb;
  --ink-soft: #d4d8d4;
  --muted: #979e98;
  --line: #303633;
  --line-strong: #4a514d;
  --signal: #ff7150;
  --signal-deep: #ff947b;
  --signal-soft: #4c2922;
  --teal: #84aaa5;
  --teal-soft: #203633;
  --lime: #ddeb7a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(18, 22, 21, 0.025) calc(100% - 1px)) 0 0 / 80px 100%,
    var(--bg);
  font-family: Inter, "Aptos", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::selection,
::selection {
  color: #101310;
  background: var(--lime);
}

button,
input {
  color: inherit;
  font: inherit;
}

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  text-decoration: none;
}

.signal-mark {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
}

.signal-mark i {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: currentColor;
}

.signal-mark i:nth-child(1) { height: 7px; }
.signal-mark i:nth-child(2) { height: 15px; }
.signal-mark i:nth-child(3) { height: 11px; }
.signal-mark i:nth-child(4) { height: 18px; background: var(--signal); }

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

.wordmark strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.wordmark small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.archive-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-count i,
.signal-strip strong i,
.eyebrow i,
.radar-topbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 17%, transparent);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover {
  border-color: var(--ink);
  transform: rotate(12deg);
}

.library {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(48px, 7vw, 118px);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: clamp(72px, 8vw, 128px) clamp(24px, 5vw, 80px);
}

.library-hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker,
.mini-label,
.rail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.library-hero h1 {
  max-width: 900px;
  margin: 28px 0 26px;
  font-size: clamp(4.1rem, 7vw, 8.2rem);
  font-weight: 680;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.headline-line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0.08em 0.08em 0;
}

.headline-line > span {
  display: block;
}

.headline-line em {
  color: var(--signal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.07em;
}

.library-hero-copy > p:not(.hero-footnote) {
  max-width: 590px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(18, 22, 21, 0.13);
}

.button-primary b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-right: -7px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--lime);
}

.button-secondary,
.button-quiet {
  color: var(--ink);
  background: var(--paper);
}

.button-quiet {
  border-color: transparent;
  background: transparent;
}

.button:hover {
  border-color: var(--signal);
}

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
}

.hero-footnote span {
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}

.radar-stage {
  overflow: hidden;
  min-height: 610px;
  color: #edf2ec;
  border: 1px solid #303633;
  border-radius: var(--radius-lg);
  background: #101514;
  box-shadow: var(--shadow);
}

.radar-topbar,
.radar-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 22px;
  color: #9da7a1;
  border-bottom: 1px solid #2a302e;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radar-topbar span,
.radar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.radar-canvas {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(226, 237, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 237, 230, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

.radar-canvas::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 50% 50%, rgba(221, 235, 122, 0.07), transparent 48%);
}

.radar-axis {
  position: absolute;
  z-index: 1;
  background: rgba(238, 242, 237, 0.2);
}

.radar-axis-x { top: 50%; right: 6%; left: 6%; height: 1px; }
.radar-axis-y { top: 6%; bottom: 6%; left: 50%; width: 1px; }

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  border: 1px solid rgba(238, 242, 237, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring-one { width: 150px; height: 150px; }
.radar-ring-two { width: 290px; height: 290px; }
.radar-ring-three { width: 430px; height: 430px; }

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 215px;
  height: 215px;
  pointer-events: none;
  background: conic-gradient(from 270deg, rgba(221, 235, 122, 0.2), transparent 20%);
  transform-origin: left top;
}

.radar-origin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: #101514;
  transform: translate(-50%, -50%);
}

.radar-origin i {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(221, 235, 122, 0.45);
  border-radius: 50%;
}

.radar-company {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 7px;
  color: #edf2ec;
  border: 1px solid #3b4541;
  border-radius: 999px;
  background: rgba(22, 29, 27, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.radar-company::before {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  content: attr(data-initial);
  display: grid;
  place-items: center;
  color: #111;
  background: var(--node);
  font-weight: 800;
}

.radar-company::after {
  position: absolute;
  inset: -6px;
  border: 1px solid color-mix(in srgb, var(--node) 44%, transparent);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 160ms ease, transform 160ms ease;
}

.radar-company:hover::after,
.radar-company:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.radar-caption {
  position: absolute;
  z-index: 2;
  color: #75817b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.radar-caption-top { top: 16px; left: calc(50% + 12px); }
.radar-caption-side { top: calc(50% + 12px); right: 16px; }

.radar-legend {
  border-top: 1px solid #2a302e;
  border-bottom: 0;
  text-transform: none;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b9690;
}

.legend-dot-hot { background: var(--lime); box-shadow: 0 0 0 4px rgba(221, 235, 122, 0.12); }

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}

.signal-strip > div:last-child { border-right: 0; }

.signal-strip span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
}

.library-section,
.directory-section,
.about-section {
  margin: 0 clamp(24px, 5vw, 80px);
  padding: clamp(90px, 10vw, 156px) 0;
}

.library-section-heading,
.directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.library-section h2,
.directory-section h2,
.about-section h2,
.profile-section h2 {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.library-section-heading p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.company-grid {
  display: flex;
  gap: 16px;
  padding: 4px 2px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.company-card {
  position: relative;
  display: flex;
  flex: 0 0 min(430px, calc(88vw - 32px));
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
  padding: 26px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-snap-align: start;
  text-decoration: none;
  transform-origin: center bottom;
}

.company-card::before {
  position: absolute;
  right: -32px;
  bottom: -105px;
  color: var(--accent-soft);
  content: attr(data-initial);
  font-size: 20rem;
  font-weight: 800;
  letter-spacing: -0.12em;
  line-height: 1;
  pointer-events: none;
}

.company-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  content: "";
  background: var(--accent);
  transform: scaleX(0.14);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.company-card:hover::after { transform: scaleX(1); }

.company-card-top,
.company-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.company-card-top > span:first-child {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.company-card .company-monogram {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1rem;
  font-weight: 800;
}

.company-card-body {
  position: relative;
  z-index: 1;
  margin-top: 64px;
}

.company-card .card-focus {
  display: inline-flex;
  margin-bottom: 15px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-card h3 {
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 4.3rem);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.company-card p {
  max-width: 330px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.company-card-footer {
  margin-top: auto;
  padding-top: 38px;
  font-size: 0.78rem;
  font-weight: 750;
}

.company-card-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
}

.directory-section {
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.directory-search {
  display: flex;
  align-items: center;
  width: min(390px, 100%);
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.directory-search svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
}

.directory-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.84rem;
}

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

.directory-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 14%, transparent);
}

.directory-search kbd {
  padding: 3px 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-soft);
  font-size: 0.62rem;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.directory-toolbar > span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.directory-filters,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.workflow-tab,
.segmented button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 650;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active,
.workflow-tab:hover,
.workflow-tab.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
}

.filter-button.is-active::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  vertical-align: 1px;
}

.directory-labels,
.directory-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) minmax(110px, .7fr) minmax(140px, .8fr) 120px;
  gap: 18px;
  align-items: center;
}

.directory-labels {
  padding: 16px 18px 10px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-directory {
  border-top: 1px solid var(--line);
}

.directory-row {
  position: relative;
  min-height: 84px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 170ms ease, padding-left 220ms ease;
}

.directory-row::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 4px;
  background: var(--company-color);
  content: "";
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 180ms ease, transform 220ms ease;
}

.directory-row:hover {
  padding-left: 24px;
  background: var(--paper);
}

.directory-row:hover::before { opacity: 1; transform: scaleY(1); }

.directory-company {
  display: flex;
  align-items: center;
  gap: 14px;
}

.directory-monogram {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--company-color) 40%, var(--line));
  border-radius: 10px;
  color: var(--company-color);
  background: color-mix(in srgb, var(--company-color) 11%, var(--paper));
  font-weight: 800;
}

.directory-company strong { letter-spacing: -0.02em; }
.directory-row > span:not(.directory-company):not(.directory-arrow) { color: var(--muted); font-size: 0.78rem; }
.directory-arrow { justify-self: end; font-size: 0.72rem; font-weight: 700; }

.about-section {
  margin-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 72px;
}

.about-stamp {
  padding: 12px 15px;
  color: var(--signal-deep);
  border: 1px solid var(--signal);
  border-radius: 50%;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(7deg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(54px, 10vw, 160px);
  align-items: start;
}

.about-grid h2 {
  max-width: 870px;
  margin: 0;
}

.about-grid p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Profile */
.page-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 94px);
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.chapter-rail {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 60px);
}

.back-to-library {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 45px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.back-to-library:hover { color: var(--ink); }

.rail-company {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.rail-company strong {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

#chapter-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chapter-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 37px;
  padding: 0 12px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, padding-left 190ms ease;
}

.chapter-link::before {
  width: 0;
  height: 1px;
  margin-right: 0;
  content: "";
  background: var(--accent);
  transition: width 180ms ease, margin-right 180ms ease;
}

.chapter-link:hover,
.chapter-link.is-active {
  color: var(--ink);
  background: var(--paper);
}

.chapter-link.is-active::before { width: 14px; margin-right: 9px; }

.rail-controls {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.rail-controls > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-soft);
}

.segmented button {
  min-height: 31px;
  border: 0;
  border-radius: 6px;
}

.segmented button.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(18, 22, 21, 0.08);
}

.profile {
  min-width: 0;
  max-width: 1040px;
}

.profile article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.profile-hero {
  position: relative;
  min-height: 630px;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.profile-hero::after {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 430px;
  height: 430px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 70px color-mix(in srgb, var(--accent) 5%, transparent),
    0 0 0 140px color-mix(in srgb, var(--accent) 3%, transparent);
}

.eyebrow-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.updated {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 90px;
}

.company-lockup {
  min-width: 0;
}

.company-lockup > .company-monogram {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 18px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1.8rem;
  font-weight: 800;
}

.tag-row,
.company-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
}

.company-lockup h1 {
  margin: 16px 0 18px;
  font-size: clamp(4.2rem, 8vw, 7.7rem);
  font-weight: 670;
  letter-spacing: -0.08em;
  line-height: 0.86;
}

.hero-dek {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.27rem);
  line-height: 1.55;
}

.profile-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 9px;
  width: 165px;
}

.profile-actions .button { width: 100%; }

.fact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 74px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-strip > div {
  min-width: 0;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}

.fact-strip > div:first-child { padding-left: 0; }
.fact-strip > div:last-child { border-right: 0; }
.fact-strip dt { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.57rem; letter-spacing: .07em; text-transform: uppercase; }
.fact-strip dd { margin: 7px 0 0; overflow: hidden; font-size: 0.84rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.profile-section {
  padding: clamp(72px, 8vw, 112px) clamp(34px, 7vw, 86px);
  border-bottom: 1px solid var(--line);
}

.profile-section-last { border-bottom: 0; }

.section-content { min-width: 0; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.profile-section h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }

.read-time {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
}

.section-intro {
  max-width: 780px;
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.thesis-card {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  color: #f7f4ee;
  border-radius: var(--radius);
  background: #121716;
  overflow: hidden;
}

.thesis-card::after {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(221, 235, 122, .22);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 42px rgba(221, 235, 122, .025), 0 0 0 84px rgba(221, 235, 122, .018);
}

.thesis-label {
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thesis-card > p {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 22px 0 34px;
  font-size: clamp(1.35rem, 2.7vw, 2.3rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.confidence-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8f9a94;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.6rem;
}

.confidence-row strong { color: #f1f3ee; }
.confidence-meter { display: flex; gap: 3px; }
.confidence-meter i { width: 18px; height: 3px; border-radius: 4px; background: #3b4540; }
.confidence-meter i:nth-child(-n+4) { background: var(--lime); }

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.takeaway-card {
  min-height: 240px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.takeaway-card:last-child { border-right: 0; }
.takeaway-card > span { color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.takeaway-card h3 { margin: 58px 0 12px; font-size: 1.18rem; letter-spacing: -.03em; }
.takeaway-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }

.workflow-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.workflow-copy { padding: 30px; }
.workflow-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 40px; }
.workflow-detail h3 { margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -.04em; }
.workflow-detail p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }

.workflow-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 40px;
  border-left: 1px solid #303633;
  color: #eff2ed;
  background:
    linear-gradient(rgba(226, 237, 230, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 237, 230, .07) 1px, transparent 1px),
    #121716;
  background-size: 32px 32px;
}

.flow-node {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 1px solid #39423e;
  border-radius: 9px;
  background: rgba(22, 28, 26, .94);
}

.flow-node span { display: block; margin-bottom: 5px; color: #7f8b85; font-family: "SFMono-Regular", Consolas, monospace; font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; }
.flow-node strong { font-size: .87rem; }
.flow-node-accent { color: #111513; border-color: var(--lime); background: var(--lime); }
.flow-node-accent span { color: #5b651b; }
.flow-line { height: 58px; margin-left: 30px; border-left: 1px dashed #56615b; }
.flow-line i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); transform: translate(-4px, 4px); }

.deep-content { margin-top: 18px; }
body[data-reading="brief"] .deep-content { display: none; }
.note-block { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--teal-soft); }
.note-icon { color: var(--teal); font-size: 1.4rem; }
.note-block strong { font-size: .82rem; }
.note-block p { margin: 7px 0 0; color: var(--ink-soft); font-size: .86rem; }

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.business-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.business-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }
.business-card h3 { margin: 30px 0 10px; font-size: 1.05rem; }
.business-card p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.business-card strong { margin-top: auto; padding-top: 22px; color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; }
.prose { padding: 10px 4px; columns: 2; column-gap: 40px; color: var(--ink-soft); font-size: .9rem; }
.prose p { margin: 0 0 16px; }

.competition-map {
  position: relative;
  min-height: 530px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(18, 22, 21, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 22, 21, .06) 1px, transparent 1px),
    var(--paper-soft);
  background-size: 42px 42px;
}

.axis-lines i { position: absolute; background: var(--line-strong); }
.axis-lines i:first-child { top: 50%; right: 7%; left: 7%; height: 1px; }
.axis-lines i:last-child { top: 7%; bottom: 7%; left: 50%; width: 1px; }
.axis-label { position: absolute; z-index: 1; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .55rem; text-transform: uppercase; }
.axis-label-y { top: 14px; left: calc(50% + 10px); }
.axis-label-x { right: 14px; bottom: calc(50% + 10px); }

.competitor-bubble {
  position: absolute;
  z-index: 3;
  display: grid;
  width: var(--size);
  height: var(--size);
  padding: 8px;
  place-items: center;
  color: #1b201e;
  border: 1px solid rgba(18, 22, 21, .16);
  border-radius: 50%;
  background: var(--bubble);
  box-shadow: 0 8px 20px rgba(18, 22, 21, .08);
  font-size: .63rem;
  font-weight: 750;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: filter 180ms ease, opacity 180ms ease;
}

.competitor-bubble:hover,
.competitor-bubble.is-active { outline: 3px solid var(--paper); box-shadow: 0 0 0 5px var(--ink); }
.competitor-bubble.is-muted { opacity: .2; filter: grayscale(1); }

.competitor-drawer {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  margin-top: 10px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
  font-size: .8rem;
}
.competitor-drawer strong { flex: 0 0 120px; color: var(--accent); }
.competitor-drawer span { color: var(--muted); }

.competition-table { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.competition-row { display: grid; grid-template-columns: 140px 150px 1fr; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: .78rem; }
.competition-row:last-child { border-bottom: 0; }
.competition-row.header { color: var(--muted); background: var(--paper-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: .55rem; letter-spacing: .07em; text-transform: uppercase; }
.competition-row span { color: var(--muted); }

.watch-columns { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.watch-column { padding: 26px; border-right: 1px solid var(--line); }
.watch-column:last-child { border-right: 0; }
.watch-column h3 { display: flex; flex-direction: column; gap: 4px; margin: 0 0 24px; font-size: 1rem; }
.watch-column h3 span { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; }
.signal-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 0 0 16px; color: var(--ink-soft); font-size: .78rem; cursor: pointer; }
.signal-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.watch-progress { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); }
.watch-progress > span { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .58rem; }
.watch-progress > div { height: 4px; margin-top: 11px; overflow: hidden; border-radius: 4px; background: var(--line); }
.watch-progress i { display: block; width: 0; height: 100%; background: var(--accent); transition: width 280ms ease; }

.source-list { border-top: 1px solid var(--line); }
.source-item { display: grid; grid-template-columns: 40px 1fr 26px; gap: 14px; align-items: center; min-height: 78px; padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left 170ms ease, background 170ms ease; }
.source-item:hover { padding-left: 16px; background: var(--paper-soft); }
.source-item > span:first-child { color: var(--accent); font-family: "SFMono-Regular", Consolas, monospace; font-size: .6rem; }
.source-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.source-item strong { font-size: .82rem; }
.source-item small { color: var(--muted); font-size: .72rem; }
.disclosure { margin: 24px 0 0; color: var(--muted); font-size: .7rem; }

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.article-footer > div { display: flex; flex-direction: column; gap: 7px; }
.article-footer a { text-decoration: none; }
.article-footer a:hover { color: var(--accent); }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: 330px;
  padding: 13px 16px;
  color: #f7f4ee;
  border: 1px solid #303633;
  border-radius: 9px;
  background: #111615;
  box-shadow: var(--shadow);
  font-size: .75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--signal) 48%, transparent);
  outline-offset: 3px;
}

@media (max-width: 1120px) {
  .library-hero { grid-template-columns: 1fr; min-height: auto; }
  .library-hero-copy { max-width: 900px; }
  .radar-stage { min-height: 560px; }
  .page-shell { grid-template-columns: 205px minmax(0, 1fr); gap: 32px; }
  .directory-labels, .directory-row { grid-template-columns: minmax(200px, 1.4fr) minmax(150px, 1fr) minmax(100px, .7fr) 120px; }
  .directory-labels span:nth-child(4), .directory-row > span:nth-child(4) { display: none; }
}

@media (max-width: 860px) {
  :root { --header-height: 66px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .site-nav { display: none; }
  .archive-count { display: none; }
  .library-hero { gap: 58px; padding: 72px 24px; }
  .library-hero h1 { font-size: clamp(3.7rem, 14vw, 7rem); }
  .radar-stage { min-height: 520px; }
  .radar-canvas { min-height: 410px; }
  .radar-ring-three { width: 350px; height: 350px; }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip > div:nth-child(2) { border-right: 0; }
  .signal-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .library-section-heading, .directory-heading { align-items: flex-start; flex-direction: column; }
  .directory-search { width: 100%; }
  .directory-labels { display: none; }
  .directory-row { grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .8fr) 90px; }
  .directory-row > span:nth-child(3), .directory-arrow { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .page-shell { display: block; width: min(100% - 30px, 820px); padding-top: 18px; }
  .chapter-rail { position: sticky; top: var(--header-height); z-index: 70; display: flex; align-items: center; gap: 8px; width: calc(100vw - 30px); max-height: none; margin-bottom: 18px; padding: 10px 0; overflow-x: auto; background: var(--bg); }
  .back-to-library { flex: 0 0 auto; margin: 0 12px 0 0; }
  .rail-company, .rail-controls { display: none; }
  #chapter-nav { flex-direction: row; }
  .chapter-link { flex: 0 0 auto; border: 1px solid var(--line); background: var(--paper); }
  .chapter-link.is-active::before { width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; }
  .hero-grid { align-items: flex-start; flex-direction: column; margin-top: 65px; }
  .profile-actions { width: 100%; flex-direction: row; }
  .profile-actions .button { width: auto; }
  .fact-strip { grid-template-columns: repeat(3, 1fr); }
  .fact-strip > div:nth-child(3) { border-right: 0; }
  .fact-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .takeaway-grid, .business-grid, .watch-columns { grid-template-columns: 1fr; }
  .takeaway-card, .watch-column { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .takeaway-card:last-child, .watch-column:last-child { border-bottom: 0; }
  .takeaway-card h3 { margin-top: 28px; }
  .workflow-lab { grid-template-columns: 1fr; }
  .workflow-visual { min-height: 340px; border-top: 1px solid #303633; border-left: 0; }
}

@media (max-width: 580px) {
  body { background-image: none; }
  .wordmark small { display: none; }
  .library-hero { padding-top: 58px; }
  .library-hero h1 { margin-top: 22px; font-size: clamp(3.45rem, 17vw, 5.8rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-footnote { display: none; }
  .radar-stage { min-height: 455px; border-radius: 16px; }
  .radar-canvas { min-height: 350px; }
  .radar-ring-one { width: 110px; height: 110px; }
  .radar-ring-two { width: 220px; height: 220px; }
  .radar-ring-three { width: 320px; height: 320px; }
  .radar-sweep { width: 160px; height: 160px; }
  .radar-legend span:nth-child(2) { display: none; }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-strip > div:last-child { border-bottom: 0; }
  .library-section, .directory-section, .about-section { padding: 82px 0; }
  .library-section h2, .directory-section h2, .about-section h2 { font-size: 2.75rem; }
  .company-card { min-height: 440px; padding: 22px; }
  .company-card-body { margin-top: 52px; }
  .company-card h3 { font-size: 3.3rem; }
  .directory-toolbar { align-items: flex-start; flex-direction: column; }
  .directory-row { grid-template-columns: 1fr auto; min-height: 76px; padding-right: 6px; padding-left: 6px; }
  .directory-row > span:not(.directory-company) { display: none; }
  .directory-monogram { width: 38px; height: 38px; }
  .about-label { margin-bottom: 54px; }
  .profile article { border-radius: 16px; }
  .profile-hero { min-height: 600px; padding: 26px 22px; }
  .profile-hero::after { right: -220px; }
  .eyebrow-row { align-items: flex-start; gap: 18px; }
  .hero-grid { margin-top: 54px; }
  .company-lockup > .company-monogram { width: 58px; height: 58px; margin-bottom: 22px; border-radius: 14px; font-size: 1.35rem; }
  .company-lockup h1 { font-size: 4.5rem; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .profile-actions .button { width: 100%; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); margin-top: 52px; }
  .fact-strip > div { border-top: 1px solid var(--line); }
  .fact-strip > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact-strip > div:nth-child(even) { border-right: 0; }
  .fact-strip > div:first-child, .fact-strip > div:nth-child(2) { border-top: 0; }
  .profile-section { padding: 72px 22px; }
  .section-heading { align-items: flex-start; }
  .profile-section h2 { font-size: 2.7rem; }
  .read-time { display: none; }
  .thesis-card { padding: 28px 22px; }
  .thesis-card > p { font-size: 1.45rem; }
  .confidence-row { flex-wrap: wrap; }
  .workflow-copy, .workflow-visual { padding: 24px 20px; }
  .prose { columns: 1; }
  .competition-map { min-height: 450px; }
  .axis-label { display: none; }
  .competitor-drawer { align-items: flex-start; flex-direction: column; }
  .competition-row { grid-template-columns: 1fr; }
  .competition-row.header { display: none; }
  .article-footer { align-items: stretch; flex-direction: column; padding: 24px; }
}

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

/* Multi-view library refresh */
:root {
  --radar-bg: #e9ece6;
  --radar-panel: #f4f5f1;
  --radar-ink: #1a2521;
  --radar-muted: #64716b;
  --radar-line: rgba(25, 38, 33, .16);
  --radar-grid: rgba(25, 38, 33, .075);
  --radar-chip: rgba(252, 253, 249, .92);
}

:root[data-theme="dark"] {
  --radar-bg: #101514;
  --radar-panel: #151b19;
  --radar-ink: #edf2ec;
  --radar-muted: #919d97;
  --radar-line: rgba(238, 242, 237, .18);
  --radar-grid: rgba(226, 237, 230, .07);
  --radar-chip: rgba(22, 29, 27, .94);
}

.site-header {
  grid-template-columns: minmax(210px, 1fr) auto minmax(150px, 1fr);
}

.site-nav {
  gap: 6px;
  font-family: Inter, "Aptos", "Helvetica Neue", Arial, sans-serif;
}

.site-nav .nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav .nav-tab span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.site-nav .nav-tab::after { display: none; }
.site-nav .nav-tab:hover { color: var(--ink); border-color: var(--line); background: var(--paper); }
.site-nav .nav-tab.is-active { color: var(--ink); border-color: var(--line-strong); background: var(--paper); box-shadow: 0 2px 8px rgba(24, 31, 28, .04); }
.site-nav .nav-tab.is-active span { color: var(--signal); }

.library-page { min-height: calc(100vh - var(--header-height)); }

.library-hero {
  grid-template-columns: minmax(0, .9fr) minmax(470px, .82fr);
  gap: clamp(44px, 7vw, 100px);
  min-height: 0;
  padding-top: clamp(48px, 5vw, 78px);
  padding-bottom: clamp(42px, 5vw, 70px);
}

.library-hero-copy { max-width: 650px; }
.library-hero h1 { margin: 23px 0 24px; font-size: clamp(4rem, 6.4vw, 7.3rem); line-height: .91; }
.library-hero-copy > p:not(.hero-footnote) { max-width: 500px; font-size: clamp(1rem, 1.3vw, 1.18rem); }

.radar-stage {
  width: min(100%, 560px);
  min-height: 0;
  justify-self: center;
  color: var(--radar-ink);
  border-color: var(--radar-line);
  border-radius: 18px;
  background: var(--radar-bg);
  box-shadow: 0 18px 50px rgba(24, 31, 28, .08);
}

:root[data-theme="dark"] .radar-stage { box-shadow: 0 22px 60px rgba(0, 0, 0, .3); }

.radar-topbar,
.radar-legend {
  min-height: 48px;
  padding: 0 18px;
  color: var(--radar-muted);
  border-color: var(--radar-line);
  font-size: .56rem;
}

.radar-canvas {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.32 / 1;
  background-color: var(--radar-bg);
  background-image: linear-gradient(var(--radar-grid) 1px, transparent 1px), linear-gradient(90deg, var(--radar-grid) 1px, transparent 1px);
  background-size: 34px 34px;
}

.radar-canvas::after { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--lime) 12%, transparent), transparent 49%); }
.radar-axis { background: var(--radar-line); }
.radar-axis-x { right: 8%; left: 8%; }
.radar-axis-y { top: 8%; bottom: 8%; }
.radar-ring { border-color: var(--radar-line); }
.radar-ring-one { width: 25%; height: auto; aspect-ratio: 1; }
.radar-ring-two { width: 50%; height: auto; aspect-ratio: 1; }
.radar-ring-three { width: 76%; height: auto; aspect-ratio: 1; }
.radar-sweep {
  inset: 12%;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: conic-gradient(from 270deg, color-mix(in srgb, var(--lime) 24%, transparent), transparent 22%);
  transform-origin: center;
}
.radar-origin { color: var(--radar-ink); background: var(--radar-bg); }
.radar-company { color: var(--radar-ink); border-color: var(--radar-line); background: var(--radar-chip); box-shadow: 0 7px 18px rgba(15, 20, 18, .11); font-size: .62rem; }
.radar-caption { color: var(--radar-muted); font-size: .5rem; }
.radar-legend { border-top-color: var(--radar-line); }
.radar-legend span:last-child { margin-left: auto; }

.directory-home {
  padding-top: clamp(42px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.directory-home .directory-heading { margin-bottom: 28px; }
.directory-home h2 { font-size: clamp(2.2rem, 3.5vw, 3.8rem); }

.directory-row { min-height: 88px; }
.directory-company { flex-wrap: wrap; }
.directory-company strong { margin-right: 2px; }
.investment-badge {
  display: inline-flex;
  padding: 3px 6px;
  color: var(--signal-deep);
  border: 1px solid color-mix(in srgb, var(--signal) 28%, var(--line));
  border-radius: 5px;
  background: color-mix(in srgb, var(--signal-soft) 58%, transparent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.page-view {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(90px, 10vw, 150px);
}

.page-view-heading {
  align-items: flex-end;
  min-height: 170px;
  margin-bottom: 48px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.page-view-heading h1,
.about-section h1 {
  margin: 8px 0 0;
  font-size: clamp(3.6rem, 7vw, 7.8rem);
  font-weight: 650;
  letter-spacing: -.07em;
  line-height: .92;
}

.page-view-heading p { max-width: 340px; margin: 0; color: var(--muted); }

.investment-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px 16px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .56rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.investment-list { border-top: 1px solid var(--line-strong); }
.investment-row {
  display: grid;
  grid-template-columns: 54px minmax(230px, 1.1fr) minmax(180px, 1fr) 120px;
  gap: 20px;
  align-items: center;
  min-height: 96px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 180ms ease, background 180ms ease;
}
.investment-row:hover { padding-right: 16px; padding-left: 16px; background: var(--paper); }
.investment-number { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .59rem; }
.investment-name { display: flex; align-items: center; gap: 14px; }
.investment-name > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.investment-name strong { font-size: 1.02rem; }
.investment-name small { color: var(--muted); font-size: .68rem; }
.investment-focus { color: var(--ink-soft); font-size: .8rem; }
.investment-open { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .57rem; text-align: right; text-transform: uppercase; }

.about-section.page-view { padding-top: clamp(90px, 12vw, 180px); }
.about-section.page-view .about-grid { align-items: start; }
.about-section.page-view .about-grid h1 { max-width: 800px; }
.about-section.page-view .about-grid p { max-width: 560px; }

@media (max-width: 1120px) {
  .library-hero { grid-template-columns: 1fr 1fr; gap: 44px; }
  .radar-stage { min-height: 0; }
  .radar-canvas { min-height: 0; }
}

@media (max-width: 900px) {
  :root { --header-height: 116px; }
  .site-header { grid-template-columns: 1fr auto; align-content: center; padding: 10px 20px 9px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; gap: 5px; padding-top: 7px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav .nav-tab { flex: 0 0 auto; min-height: 34px; padding: 0 10px; }
  .library-hero { grid-template-columns: 1fr; gap: 50px; padding-top: 68px; }
  .library-hero-copy { max-width: 760px; }
  .radar-stage { width: min(100%, 610px); }
  .directory-labels, .directory-row { grid-template-columns: minmax(210px, 1.4fr) minmax(150px, 1fr) minmax(90px, .7fr); }
  .directory-labels span:nth-child(4), .directory-row > span:nth-child(4), .directory-arrow { display: none; }
}

@media (max-width: 700px) {
  .page-view-heading { align-items: flex-start; flex-direction: column; min-height: 0; }
  .investment-row { grid-template-columns: 34px 1fr auto; gap: 12px; }
  .investment-focus { display: none; }
  .investment-open { font-size: 0; }
  .investment-open::after { content: "↗"; font-size: .8rem; }
}

@media (max-width: 580px) {
  .site-header { padding-right: 14px; padding-left: 14px; }
  .signal-mark { width: 34px; height: 34px; }
  .wordmark strong { font-size: .9rem; }
  .site-nav .nav-tab { font-size: .69rem; }
  .library-hero { gap: 38px; padding: 48px 18px 42px; }
  .library-hero h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .radar-stage { border-radius: 13px; }
  .radar-canvas { min-height: 0; aspect-ratio: 1 / 1; }
  .radar-topbar span:last-child { display: none; }
  .radar-legend { min-height: 44px; }
  .radar-company { gap: 5px; padding: 5px 7px 5px 5px; font-size: .54rem; }
  .radar-company::before { width: 18px; height: 18px; }
  .directory-home { padding: 42px 0 80px; }
  .page-view { padding: 68px 0 100px; }
  .page-view-heading h1, .about-section h1 { font-size: clamp(3.2rem, 16vw, 5.3rem); }
  .investment-summary span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav .nav-tab,
  .investment-row { transition: none !important; }
}

/* Softer editorial type and radar treatment */
:root {
  --font-sans: "Aptos", "Aptos Display", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Aptos Display", "Aptos", Inter, "Helvetica Neue", Arial, sans-serif;
  --radar-bg: #e7ede8;
  --radar-panel: #f3f0e9;
  --radar-ink: #24322d;
  --radar-muted: #68756f;
  --radar-line: rgba(35, 54, 47, .17);
  --radar-grid: rgba(35, 54, 47, .065);
  --radar-chip: rgba(255, 253, 248, .95);
  --radar-sweep-color: rgba(224, 104, 72, .22);
}

:root[data-theme="dark"] {
  --radar-bg: #15201d;
  --radar-panel: #111715;
  --radar-ink: #edf1eb;
  --radar-muted: #91a099;
  --radar-line: rgba(212, 228, 219, .16);
  --radar-grid: rgba(212, 228, 219, .055);
  --radar-chip: rgba(24, 34, 31, .95);
  --radar-sweep-color: rgba(245, 112, 78, .20);
}

body,
button,
input,
.site-nav { font-family: var(--font-sans); }

.library-hero h1,
.library-section h2,
.directory-section h2,
.page-view-heading h1,
.about-section h1,
.company-card h3,
.company-lockup h1,
.profile-section h2 {
  font-family: var(--font-display);
  font-weight: 590;
  letter-spacing: -.052em;
}

.library-hero h1 {
  max-width: 760px;
  font-size: clamp(3.8rem, 5.9vw, 6.7rem);
  line-height: .94;
}

.headline-line em {
  color: var(--signal);
  font-family: inherit;
  font-size: .96em;
  font-style: italic;
  font-weight: 510;
  letter-spacing: -.045em;
}

.library-hero-copy > p:not(.hero-footnote) { font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.62; }
.page-view-heading h1, .about-section h1 { font-size: clamp(3.4rem, 6.2vw, 6.8rem); }
.company-card h3 { font-size: clamp(2.5rem, 3.5vw, 3.75rem); }
.company-lockup h1 { font-size: clamp(4.2rem, 7.5vw, 7.2rem); }
.profile-section h2 { font-size: clamp(2.15rem, 4vw, 3.85rem); }
.directory-company strong, .investment-name strong { font-weight: 620; letter-spacing: -.018em; }
.site-nav .nav-tab { font-weight: 560; letter-spacing: -.01em; }

.radar-stage {
  width: min(100%, 540px);
  overflow: hidden;
  color: var(--radar-ink);
  border: 1px solid color-mix(in srgb, var(--radar-line) 82%, var(--line));
  border-radius: 28px;
  background: var(--radar-panel);
  box-shadow: 0 22px 60px rgba(28, 45, 38, .10);
}

:root[data-theme="dark"] .radar-stage { box-shadow: 0 24px 70px rgba(0, 0, 0, .30); }

.radar-topbar,
.radar-legend {
  min-height: 54px;
  padding: 0 22px;
  color: var(--radar-muted);
  border: 0;
  background: transparent;
  letter-spacing: .075em;
}

.radar-canvas {
  width: calc(100% - 36px);
  min-height: 0;
  aspect-ratio: 1.12 / 1;
  margin: 0 18px;
  overflow: hidden;
  border: 1px solid var(--radar-line);
  border-radius: 22px;
  background-color: var(--radar-bg);
  background-image:
    linear-gradient(var(--radar-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--radar-grid) 1px, transparent 1px);
  background-size: 30px 30px;
  box-shadow: inset 0 0 70px color-mix(in srgb, var(--radar-ink) 4%, transparent);
}

.radar-canvas::after {
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--teal) 13%, transparent), transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,.05), transparent 42%);
}

.radar-axis { background: var(--radar-line); }
.radar-axis-x { right: 9%; left: 9%; }
.radar-axis-y { top: 9%; bottom: 9%; }
.radar-ring { border-color: color-mix(in srgb, var(--radar-line) 88%, transparent); }
.radar-ring-one { width: 24%; }
.radar-ring-two { width: 48%; border-style: dashed; }
.radar-ring-three { width: 73%; }
.radar-sweep {
  inset: 13.5%;
  border-radius: 50%;
  background: conic-gradient(from 270deg, var(--radar-sweep-color), transparent 20%, transparent 100%);
  filter: blur(.2px);
}

.radar-origin {
  width: 11px;
  height: 11px;
  border-color: var(--signal);
  background: var(--radar-bg);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--signal) 10%, transparent);
}
.radar-origin i { border-color: color-mix(in srgb, var(--signal) 42%, transparent); }

.radar-company {
  gap: 7px;
  padding: 6px 9px 6px 6px;
  color: var(--radar-ink);
  border-color: color-mix(in srgb, var(--node) 25%, var(--radar-line));
  border-radius: 11px;
  background: var(--radar-chip);
  box-shadow: 0 8px 20px rgba(18, 30, 25, .10);
  font-family: var(--font-sans);
  font-size: .64rem;
  font-weight: 620;
  letter-spacing: -.01em;
}

.radar-company::before {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: .64rem;
  font-weight: 700;
}
.radar-company::after { border-radius: 15px; }
.radar-caption { font-size: .48rem; letter-spacing: .1em; }
.radar-legend { min-height: 52px; text-transform: uppercase; }
.legend-dot-hot { background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 12%, transparent); }

@media (max-width: 900px) {
  .radar-stage { width: min(100%, 570px); }
}

@media (max-width: 580px) {
  .library-hero h1 { font-size: clamp(3.15rem, 15vw, 4.7rem); }
  .radar-stage { border-radius: 20px; }
  .radar-canvas { width: calc(100% - 24px); margin: 0 12px; border-radius: 16px; aspect-ratio: 1 / 1; }
  .radar-topbar, .radar-legend { padding: 0 15px; }
  .radar-company { gap: 4px; padding: 4px 6px 4px 4px; border-radius: 9px; font-size: .53rem; }
  .radar-company::before { width: 19px; height: 19px; border-radius: 6px; font-size: .55rem; }
}
