@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600;6..72,700&display=swap");

:root {
  --bg: #080808;
  --bg-soft: #0f0f0f;
  --bg-elevated: #131313;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --signal: #97ff63;
  --signal-soft: rgba(151, 255, 99, 0.12);
  --cyan: #5ef2ff;
  --amber: #ffc370;
  --danger: #ff6f61;
  --white-surface: #f3f3ef;
  --white-text: #111111;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
  --radius: 28px;
  --radius-sm: 18px;
  --page-width: 1220px;
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "Newsreader", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--white-surface);
  color: var(--white-text);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
  pointer-events: none;
  opacity: 0.15;
}

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

img,
canvas {
  display: block;
  max-width: 100%;
}

.site-shell {
  position: relative;
}

.wrap {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(8, 8, 8, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(151, 255, 99, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.03);
}

.brand-mark::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--signal);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-cta {
  padding: 11px 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #f5f5f5;
  color: #111;
  border-radius: 999px;
  font-weight: 600;
}

.nav-account {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.nav-account:hover,
.nav-account.is-active {
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

main {
  overflow: clip;
}

.section,
.page-hero {
  padding: 108px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.eyebrow--compact {
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.eyebrow--compact::before {
  width: 16px;
}

.hero {
  position: relative;
  padding: 56px 0 40px;
  text-align: center;
}

.hero-home {
  min-height: calc(100vh - 82px);
}

.hero-home::before,
.hero-home::after {
  content: "";
  position: absolute;
  top: 42px;
  width: min(28vw, 360px);
  height: min(58vh, 520px);
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-home::before {
  left: -40px;
  background:
    linear-gradient(130deg, rgba(151, 255, 99, 0.82), rgba(94, 242, 255, 0.42)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0 4px, transparent 4px 10px);
  clip-path: polygon(0 8%, 100% 0, 74% 40%, 100% 56%, 48% 72%, 16% 100%, 0 100%);
  filter: blur(1px);
  box-shadow: 0 0 120px rgba(94, 242, 255, 0.24);
}

.hero-home::after {
  right: -48px;
  background:
    linear-gradient(220deg, rgba(94, 242, 255, 0.9), rgba(151, 255, 99, 0.24) 58%, rgba(255, 195, 112, 0.52)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0 4px, transparent 4px 10px);
  clip-path: polygon(18% 0, 100% 12%, 100% 100%, 0 84%, 32% 60%, 0 42%);
  filter: blur(1px);
  box-shadow: 0 0 140px rgba(94, 242, 255, 0.18);
}

.hero-center {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.hero-copy,
.page-hero {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.hero-copy h1,
.page-hero h1,
.section-intro h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(3.15rem, 6.4vw, 5.35rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

.hero-copy p,
.page-hero p,
.section-intro p,
.section-head p,
.panel p,
.card p,
.case-card p,
.page-grid article p,
.flow-card p,
.quote-card p,
.contact-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button {
  background: #f5f5f5;
  color: #111;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-ghost {
  padding-inline: 0;
  color: var(--signal);
}

.logo-strip {
  position: relative;
  width: min(100%, 1060px);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 0;
}

.logo-strip::before,
.logo-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 84px;
  z-index: 2;
  pointer-events: none;
}

.logo-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.logo-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.logo-track {
  display: inline-flex;
  gap: 34px;
  min-width: max-content;
  animation: marquee 22s linear infinite;
  color: rgba(255, 255, 255, 0.44);
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.announcement {
  width: min(100%, 880px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.announcement-label,
.announcement-arrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  text-transform: uppercase;
}

.announcement-label {
  padding: 6px 8px;
  border: 1px solid rgba(151, 255, 99, 0.4);
  color: var(--signal);
}

.announcement-arrow {
  color: var(--muted);
}

.section-intro,
.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.section-intro {
  justify-items: center;
  text-align: center;
}

.section-intro h2,
.section-head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

.section-intro p,
.section-head p {
  max-width: 760px;
}

.panel,
.card,
.case-card,
.flow-card,
.quote-card,
.page-grid article,
.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.panel,
.card,
.case-card,
.flow-card,
.quote-card,
.page-grid article,
.contact-panel {
  border-radius: var(--radius);
  padding: 28px;
}

.watch-panel {
  padding: 0;
  overflow: hidden;
}

.demo-stage {
  display: grid;
  grid-template-columns: 0.86fr 1.22fr 0.92fr;
  min-height: 560px;
}

.demo-column {
  min-width: 0;
}

.demo-sidebar {
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.demo-sidebar h3,
.demo-main h3,
.demo-output h3,
.card h3,
.case-card h3,
.page-grid article h3,
.flow-card h3,
.contact-panel h2,
.quote-card blockquote,
.feature-copy h3,
.workflow-card h3,
.dev-card h3 {
  margin: 0 0 12px;
}

.tool-card {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tool-card + .tool-card {
  margin-top: 12px;
}

.tool-card strong,
.pill-list strong,
.coverage-list strong,
.check-list strong,
.workflow-surface strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-card span,
.tool-card p,
.demo-meta,
.small,
.provenance,
.finding-list span,
.check-list li,
.coverage-list span,
.workflow-surface li,
.timeline-list li,
.page-grid article p,
.quote-card cite,
.contact-box p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.demo-main {
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal {
  padding: 22px;
  border-radius: 22px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-bar span:first-child {
  background: rgba(255, 111, 97, 0.7);
}

.terminal-bar span:nth-child(2) {
  background: rgba(255, 195, 112, 0.7);
}

.terminal-bar span:nth-child(3) {
  background: rgba(151, 255, 99, 0.7);
}

.terminal pre,
.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.demo-meta {
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.impact-list,
.finding-list,
.check-list,
.coverage-list,
.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.impact-list li,
.finding-list li,
.check-list li,
.coverage-list li,
.timeline-list li {
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.demo-output {
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill.valid {
  background: rgba(151, 255, 99, 0.12);
  color: var(--signal);
}

.status-pill.warning {
  background: rgba(255, 195, 112, 0.12);
  color: var(--amber);
}

.status-pill.invalid {
  background: rgba(255, 111, 97, 0.12);
  color: var(--danger);
}

.provenance {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-step {
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.demo-step:last-child {
  border-right: 0;
}

.demo-step strong {
  display: block;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.demo-step.is-active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.feature-tabs {
  padding: 0;
  overflow: hidden;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-list button {
  padding: 18px 16px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-list button:last-child {
  border-right: 0;
}

.tab-list button[aria-selected="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.feature-visual,
.feature-copy {
  padding: 28px;
}

.feature-visual {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.code-surface,
.history-surface,
.cascade-surface,
.knowledge-surface {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  padding: 22px;
}

.history-node,
.knowledge-row,
.cascade-row {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.history-node:last-child,
.knowledge-row:last-child,
.cascade-row:last-child {
  border-bottom: 0;
}

.surface-light {
  background: var(--white-surface);
  color: var(--white-text);
}

.surface-light .eyebrow,
.surface-light .section-intro p,
.surface-light .section-head p,
.surface-light .workflow-card p,
.surface-light .workflow-surface li,
.surface-light .workflow-surface span {
  color: rgba(17, 17, 17, 0.72);
}

.surface-light .eyebrow::before {
  background: rgba(17, 17, 17, 0.18);
}

.surface-light .section-intro h2,
.surface-light .workflow-card h3,
.surface-light .workflow-card strong {
  color: var(--white-text);
}

.workflow-grid,
.page-grid,
.case-grid,
.flow,
.info-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

.workflow-card,
.dev-card {
  border-radius: var(--radius);
  padding: 28px;
}

.workflow-card {
  background: #101010;
  color: var(--text);
}

.workflow-surface {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.workflow-surface ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.developer-band {
  position: relative;
}

.developer-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(94, 242, 255, 0.14), transparent 24%),
    radial-gradient(circle at 92% 26%, rgba(151, 255, 99, 0.12), transparent 22%);
  pointer-events: none;
}

.developer-lockup {
  margin-bottom: 34px;
}

.developer-lockup .mono-display {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  line-height: 1.1;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.84);
}

.developer-lockup p {
  max-width: 760px;
  margin-top: 16px;
}

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

.dev-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.page-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero h1 {
  max-width: 12ch;
}

.page-hero p {
  max-width: 760px;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 20%;
  width: 360px;
  height: 360px;
  background:
    radial-gradient(circle at 30% 30%, rgba(94, 242, 255, 0.1), transparent 22%),
    radial-gradient(circle at 72% 18%, rgba(151, 255, 99, 0.12), transparent 18%),
    radial-gradient(circle at 82% 72%, rgba(255, 195, 112, 0.1), transparent 16%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(30deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, auto, 88px 88px, 88px 88px;
  opacity: 0.6;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 38%, transparent 78%);
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 10%;
  top: 34%;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, rgba(151, 255, 99, 0.5), transparent);
  opacity: 0.5;
}

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

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

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

.flow-arrow {
  display: inline-flex;
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
}

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

.metric-grid,
.layer-grid,
.domain-grid,
.hierarchy-grid,
.library-link-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card {
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.metric-value,
.stat-inline__value {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.metric-label,
.stat-inline__label {
  margin-top: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.metric-note,
.layer-card p,
.domain-toolbar p,
.hierarchy-node p,
.library-link-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.layer-card {
  border-radius: var(--radius);
  padding: 28px;
}

.layer-card h3,
.hierarchy-card h3,
.domain-card h3,
.library-link-card h3 {
  margin: 16px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.knowledge-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.knowledge-list li,
.prompt-list li,
.hierarchy-node {
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  line-height: 1.7;
}

.knowledge-list--dense {
  gap: 10px;
}

.knowledge-list--dense li {
  padding: 16px 18px;
}

.stat-inline {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.domain-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.domain-toolbar__top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}

.domain-search {
  width: min(100%, 680px);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.domain-search::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

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

.domain-card {
  display: grid;
  gap: 18px;
}

.domain-card__header p {
  margin-top: 14px;
}

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

.domain-card__section h4,
.hierarchy-node h4 {
  margin: 0 0 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.domain-card.is-hidden {
  display: none;
}

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

.hierarchy-card {
  display: grid;
  gap: 18px;
}

.hierarchy-stack {
  display: grid;
  gap: 14px;
}

.prompt-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

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

.library-link-card {
  display: grid;
  gap: 16px;
  border-radius: var(--radius);
  padding: 30px;
}

.library-link-card .button-secondary,
.library-link-card .button {
  justify-self: start;
}

.authority-hook {
  display: grid;
  gap: 20px;
}

.authority-hook__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.authority-hook__body {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0 0, rgba(151, 255, 99, 0.11), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.authority-hook__prompt,
.authority-hook__response {
  display: grid;
  gap: 12px;
}

.authority-hook__prompt {
  min-height: 196px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.authority-hook__response {
  min-height: 238px;
  padding: 26px;
  border-radius: 22px;
  background: rgba(7, 10, 8, 0.62);
  border: 1px solid rgba(151, 255, 99, 0.14);
}

.authority-hook__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.authority-hook__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.authority-hook__tag--agent {
  border-color: rgba(151, 255, 99, 0.16);
  background: rgba(151, 255, 99, 0.08);
  color: rgba(223, 255, 205, 0.92);
}

.authority-hook__micro {
  color: rgba(255, 255, 255, 0.44);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.authority-hook__status {
  color: rgba(223, 255, 205, 0.74);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.authority-hook__trace {
  display: grid;
  gap: 10px;
}

.authority-hook__trace-label {
  color: rgba(223, 255, 205, 0.78);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.authority-hook__trail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.authority-hook__trail-chip {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.64);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.authority-hook__trail-chip.is-visible {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(151, 255, 99, 0.14);
}

.authority-hook__question,
.authority-hook__answer {
  margin: 0;
}

.authority-hook__question {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 30ch;
}

.authority-hook__answer {
  color: var(--muted);
  line-height: 1.75;
  max-width: 68ch;
}

.authority-hook__question.is-typing::after,
.authority-hook__answer.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 0.14em;
  vertical-align: -0.12em;
  background: rgba(151, 255, 99, 0.92);
  animation: authority-caret 1s steps(1) infinite;
}

@keyframes authority-caret {
  50% {
    opacity: 0;
  }
}

.authority-hook__dots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.authority-hook__dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.authority-hook__dot.is-active {
  background: var(--signal);
  border-color: rgba(151, 255, 99, 0.88);
  transform: scale(1.06);
}

.caption-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.caption-row .small {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.is-hidden {
  display: none !important;
}

body.knowledge-page {
  --kp-bg: #f3efe5;
  --kp-surface: rgba(255, 251, 245, 0.92);
  --kp-surface-strong: #fffdf8;
  --kp-ink: #18251c;
  --kp-muted: #617165;
  --kp-line: rgba(24, 37, 28, 0.1);
  --kp-line-strong: rgba(24, 37, 28, 0.16);
  --kp-accent: #25583b;
  --kp-accent-soft: rgba(37, 88, 59, 0.09);
  --kp-warm: #ac7441;
  background:
    radial-gradient(circle at top left, rgba(172, 116, 65, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 88, 59, 0.08), transparent 26%),
    var(--kp-bg);
  color: var(--kp-ink);
  font-family: var(--font-sans);
}

body.knowledge-page::before {
  background-image:
    linear-gradient(rgba(24, 37, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 37, 28, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 86%);
}

body.knowledge-page .button,
body.knowledge-page .button-secondary,
body.knowledge-page .button-ghost {
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 15px 22px;
}

body.knowledge-page .button {
  background: var(--kp-ink);
  color: #f6f0e8;
}

body.knowledge-page .button-secondary {
  border-color: var(--kp-line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: var(--kp-ink);
}

body.knowledge-page .button-ghost {
  border-color: var(--kp-line);
  color: var(--kp-ink);
}

body.knowledge-page .section,
body.knowledge-page .page-hero {
  padding: 98px 0;
}

body.knowledge-page .page-hero {
  text-align: left;
}

body.knowledge-page .page-hero::before,
body.knowledge-page .page-hero::after {
  display: none;
}

.knowledge-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.92fr);
  gap: 36px;
  align-items: end;
}

.knowledge-hero__copy {
  display: grid;
  gap: 18px;
  justify-items: start;
  text-align: left;
}

body.knowledge-page .knowledge-hero__copy h1,
body.knowledge-page .knowledge-section__intro h2,
body.knowledge-page .knowledge-brief h2,
body.knowledge-page .authority-hook__headline {
  font-family: "Newsreader", Georgia, serif;
  color: var(--kp-ink);
  letter-spacing: -0.045em;
}

body.knowledge-page .knowledge-hero__copy h1 {
  margin: 0;
  max-width: 10.5ch;
  font-size: clamp(3.6rem, 6vw, 6rem);
  line-height: 0.9;
}

body.knowledge-page .knowledge-hero__copy p,
body.knowledge-page .knowledge-section__intro p,
body.knowledge-page .knowledge-brief p,
body.knowledge-page .authority-hook__caption {
  color: var(--kp-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

body.knowledge-page .knowledge-hero__copy p {
  max-width: 58ch;
}

.knowledge-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.knowledge-subnav a,
.domain-index__link {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--kp-line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--kp-ink);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.knowledge-subnav a:hover,
.domain-index__link:hover {
  transform: translateY(-1px);
  border-color: var(--kp-line-strong);
  background: rgba(255, 255, 255, 0.86);
}

.knowledge-hero__rail,
.knowledge-story-grid {
  display: grid;
  gap: 18px;
}

.knowledge-brief {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
}

body.knowledge-page .knowledge-brief h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
}

.knowledge-brief__facts {
  margin: 0;
  display: grid;
  gap: 12px;
}

.knowledge-brief__facts div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--kp-line);
}

.knowledge-brief__facts dt {
  color: var(--kp-muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.knowledge-brief__facts dd {
  margin: 0;
  color: var(--kp-ink);
  font-weight: 700;
  text-align: right;
}

.knowledge-section {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.knowledge-section__intro {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 108px;
}

body.knowledge-page .knowledge-section__intro h2 {
  margin: 0;
  font-size: clamp(2.25rem, 3vw, 3.55rem);
  line-height: 0.96;
}

.knowledge-section__content,
.knowledge-section__content--stack {
  display: grid;
  gap: 20px;
}

.knowledge-story-grid,
body.knowledge-page .metric-grid,
body.knowledge-page .layer-grid,
body.knowledge-page .library-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.domain-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.knowledge-page .domain-grid,
body.knowledge-page .hierarchy-grid {
  grid-template-columns: 1fr;
  gap: 22px;
}

body.knowledge-page .domain-card,
body.knowledge-page .hierarchy-card,
body.knowledge-page .layer-card,
body.knowledge-page .library-link-card,
body.knowledge-page .metric-card,
body.knowledge-page .panel {
  border-radius: 28px;
  border: 1px solid var(--kp-line);
  background: var(--kp-surface);
  color: var(--kp-ink);
  box-shadow: 0 22px 56px rgba(31, 44, 34, 0.08);
}

body.knowledge-page .panel::before,
body.knowledge-page .card::before,
body.knowledge-page .case-card::before,
body.knowledge-page .flow-card::before,
body.knowledge-page .quote-card::before,
body.knowledge-page .page-grid article::before,
body.knowledge-page .contact-panel::before,
body.knowledge-page .workflow-card::before,
body.knowledge-page .backbone-card::before,
body.knowledge-page .tool-card::before,
body.knowledge-page .ontology-pill::before,
body.knowledge-page .stakeholder-card::before {
  background: rgba(37, 88, 59, 0.12);
  border-color: rgba(37, 88, 59, 0.26);
  box-shadow: none;
}

body.knowledge-page .panel::after,
body.knowledge-page .card::after,
body.knowledge-page .case-card::after,
body.knowledge-page .flow-card::after,
body.knowledge-page .quote-card::after,
body.knowledge-page .page-grid article::after,
body.knowledge-page .contact-panel::after,
body.knowledge-page .workflow-card::after,
body.knowledge-page .backbone-card::after,
body.knowledge-page .tool-card::after,
body.knowledge-page .ontology-pill::after,
body.knowledge-page .stakeholder-card::after {
  background: linear-gradient(90deg, rgba(172, 116, 65, 0.5), transparent);
}

body.knowledge-page .metric-card,
body.knowledge-page .layer-card,
body.knowledge-page .domain-card,
body.knowledge-page .hierarchy-card {
  padding: 34px;
}

body.knowledge-page .metric-value,
body.knowledge-page .stat-inline__value {
  color: var(--kp-ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.55rem, 4vw, 4.3rem);
  letter-spacing: -0.06em;
}

body.knowledge-page .metric-label,
body.knowledge-page .stat-inline__label,
body.knowledge-page .domain-card__section h4,
body.knowledge-page .hierarchy-node h4,
body.knowledge-page .authority-hook__trace-label,
body.knowledge-page .authority-hook__snapshot-label {
  color: var(--kp-accent);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.knowledge-page .metric-note,
body.knowledge-page .layer-card p,
body.knowledge-page .domain-toolbar p,
body.knowledge-page .hierarchy-node p,
body.knowledge-page .library-link-card p,
body.knowledge-page .prompt-list li,
body.knowledge-page .knowledge-list li {
  color: var(--kp-muted);
}

body.knowledge-page .layer-card h3,
body.knowledge-page .hierarchy-card h3,
body.knowledge-page .domain-card h3,
body.knowledge-page .library-link-card h3,
body.knowledge-page .knowledge-story-grid h3,
body.knowledge-page .knowledge-prompt-panel h3 {
  color: var(--kp-ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.7rem, 2.5vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

body.knowledge-page .knowledge-list li,
body.knowledge-page .prompt-list li,
body.knowledge-page .hierarchy-node,
body.knowledge-page .domain-card__section {
  border-radius: 20px;
  border: 1px solid rgba(24, 37, 28, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

body.knowledge-page .domain-card {
  gap: 20px;
}

body.knowledge-page .domain-card__header p {
  max-width: 64ch;
}

body.knowledge-page .domain-card__grid {
  gap: 16px;
}

body.knowledge-page .domain-card__section {
  padding: 22px;
}

body.knowledge-page .domain-search {
  width: 100%;
  border-radius: 16px;
  border-color: var(--kp-line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--kp-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}

body.knowledge-page .domain-search::placeholder {
  color: rgba(24, 37, 28, 0.42);
}

body.knowledge-page .caption-row .small,
body.knowledge-page .small.mono,
body.knowledge-page .authority-hook__micro,
body.knowledge-page .authority-hook__status {
  color: var(--kp-muted);
}

body.knowledge-page .footer {
  color: var(--kp-muted);
}

body.knowledge-page .footer-links a:hover {
  color: var(--kp-ink);
}

body.knowledge-page .authority-hook {
  gap: 18px;
}

.authority-hook__title {
  display: grid;
  gap: 8px;
}

.authority-hook__caption {
  margin: 0;
  max-width: 46ch;
}

.authority-hook__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.knowledge-page .authority-hook__body {
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(172, 116, 65, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.4));
  border: 1px solid var(--kp-line);
  box-shadow: 0 26px 72px rgba(26, 34, 28, 0.08);
}

.authority-hook__stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
}

body.knowledge-page .authority-hook__prompt {
  min-height: 308px;
  padding: 28px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 37, 28, 0.08);
}

body.knowledge-page .authority-hook__response {
  min-height: 308px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(151, 216, 166, 0.08), transparent 28%),
    linear-gradient(180deg, #1a3025, #16281f);
  border: 1px solid rgba(37, 88, 59, 0.22);
  color: #edf1e9;
}

body.knowledge-page .authority-hook__meta {
  align-items: flex-start;
}

body.knowledge-page .authority-hook__tag {
  border-color: rgba(24, 37, 28, 0.09);
  background: rgba(24, 37, 28, 0.04);
  color: rgba(24, 37, 28, 0.72);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
}

body.knowledge-page .authority-hook__tag--agent {
  border-color: rgba(151, 216, 166, 0.2);
  background: rgba(151, 216, 166, 0.1);
  color: #dff0e3;
}

body.knowledge-page .authority-hook__question {
  max-width: none;
  color: var(--kp-ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.authority-hook__snapshot {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 37, 28, 0.08);
}

.authority-hook__snapshot-value {
  color: var(--kp-ink);
  font-weight: 700;
}

body.knowledge-page .authority-hook__headline {
  margin: 0;
  color: #f1f4ef;
  font-size: clamp(1.9rem, 2.5vw, 2.65rem);
  line-height: 0.98;
}

body.knowledge-page .authority-hook__trace {
  gap: 12px;
}

body.knowledge-page .authority-hook__trail {
  gap: 10px;
}

body.knowledge-page .authority-hook__trail-chip {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 244, 239, 0.72);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body.knowledge-page .authority-hook__trail-chip.is-visible {
  border-color: rgba(151, 216, 166, 0.22);
  color: rgba(241, 244, 239, 0.92);
}

.authority-hook__facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.authority-hook__fact {
  display: grid;
  gap: 7px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.authority-hook__fact dt {
  color: rgba(214, 230, 219, 0.68);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authority-hook__fact dd {
  margin: 0;
  color: #f1f4ef;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

body.knowledge-page .authority-hook__answer,
body.knowledge-page .authority-hook__decision {
  color: rgba(241, 244, 239, 0.82);
  max-width: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

body.knowledge-page .authority-hook__answer {
  font-size: 1.02rem;
  line-height: 1.8;
}

body.knowledge-page .authority-hook__decision {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(220, 236, 225, 0.92);
  font-weight: 700;
}

.authority-hook__fact.is-visible,
body.knowledge-page .authority-hook__answer.is-visible,
body.knowledge-page .authority-hook__decision.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.knowledge-page .authority-hook__question.is-typing::after,
body.knowledge-page .authority-hook__headline.is-typing::after {
  background: var(--kp-warm);
}

body.knowledge-page .authority-hook__dots {
  gap: 12px;
}

body.knowledge-page .authority-hook__dot {
  width: 12px;
  height: 12px;
  border-color: rgba(24, 37, 28, 0.2);
  background: rgba(24, 37, 28, 0.08);
}

body.knowledge-page .authority-hook__dot.is-active {
  background: var(--kp-accent);
  border-color: var(--kp-accent);
}

@media (max-width: 1180px) {
  .knowledge-hero__grid,
  .knowledge-section,
  .authority-hook__stage {
    grid-template-columns: 1fr;
  }

  .knowledge-section__intro {
    position: static;
  }
}

@media (max-width: 900px) {
  .knowledge-story-grid,
  body.knowledge-page .metric-grid,
  body.knowledge-page .layer-grid,
  body.knowledge-page .library-link-grid,
  .authority-hook__facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body.knowledge-page .page-hero {
    padding: 92px 0 58px;
  }

  body.knowledge-page .knowledge-hero__copy h1 {
    max-width: none;
    font-size: clamp(2.9rem, 13vw, 4.6rem);
  }

  .knowledge-brief,
  body.knowledge-page .metric-card,
  body.knowledge-page .layer-card,
  body.knowledge-page .domain-card,
  body.knowledge-page .hierarchy-card,
  body.knowledge-page .library-link-card,
  body.knowledge-page .panel,
  body.knowledge-page .authority-hook__body {
    padding: 22px;
  }

  body.knowledge-page .authority-hook__prompt,
  body.knowledge-page .authority-hook__response {
    min-height: auto;
    padding: 20px;
  }

  body.knowledge-page .authority-hook__question {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  body.knowledge-page .domain-card__grid,
  .knowledge-brief__facts div {
    grid-template-columns: 1fr;
  }

  .knowledge-brief__facts dd {
    text-align: left;
  }
}

.display-headline {
  display: inline-grid;
  gap: 0.1em;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

.display-line {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
  text-align: center;
}

body.knowledge-page {
  --kp-bg: #08100f;
  --kp-surface: rgba(14, 20, 20, 0.9);
  --kp-surface-strong: #121b1a;
  --kp-ink: #eef4ee;
  --kp-muted: #9eaca3;
  --kp-line: rgba(255, 255, 255, 0.07);
  --kp-line-strong: rgba(255, 255, 255, 0.14);
  --kp-accent: #74d8a3;
  --kp-accent-soft: rgba(116, 216, 163, 0.1);
  --kp-warm: #d4b16c;
  background:
    radial-gradient(circle at top left, rgba(116, 216, 163, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(212, 177, 108, 0.06), transparent 22%),
    linear-gradient(180deg, #08100f, #0b1413 38%, #08100f);
  color: var(--kp-ink);
}

body.knowledge-page::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.12;
}

body.knowledge-page .button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--kp-ink);
  border-color: var(--kp-line);
}

body.knowledge-page .button {
  background: var(--kp-accent);
  color: #0a1512;
}

body.knowledge-page .knowledge-hero__copy h1,
body.knowledge-page .knowledge-section__intro h2,
body.knowledge-page .knowledge-brief h2,
body.knowledge-page .authority-hook__headline,
body.knowledge-page .authority-hook__question,
body.knowledge-page .layer-card h3,
body.knowledge-page .hierarchy-card h3,
body.knowledge-page .domain-card h3,
body.knowledge-page .library-link-card h3,
body.knowledge-page .knowledge-story-grid h3,
body.knowledge-page .knowledge-prompt-panel h3 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.065em;
}

body.knowledge-page .knowledge-subnav a,
body.knowledge-page .domain-index__link,
body.knowledge-page .domain-library__item,
body.knowledge-page .hierarchy-library__item {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--kp-line);
  color: var(--kp-ink);
}

body.knowledge-page .knowledge-subnav a:hover,
body.knowledge-page .domain-index__link:hover,
body.knowledge-page .domain-library__item:hover,
body.knowledge-page .hierarchy-library__item:hover {
  background: rgba(255, 255, 255, 0.07);
}

body.knowledge-page .knowledge-brief,
body.knowledge-page .metric-card,
body.knowledge-page .layer-card,
body.knowledge-page .domain-card,
body.knowledge-page .hierarchy-card,
body.knowledge-page .library-link-card,
body.knowledge-page .domain-summary-card,
body.knowledge-page .panel {
  background: var(--kp-surface);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
}

body.knowledge-page .knowledge-list li,
body.knowledge-page .prompt-list li,
body.knowledge-page .hierarchy-node,
body.knowledge-page .domain-card__section {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--kp-line);
}

body.knowledge-page .domain-search {
  background: rgba(255, 255, 255, 0.04);
}

body.knowledge-page .knowledge-brief__facts div,
body.knowledge-page .authority-hook__snapshot,
body.knowledge-page .authority-hook__decision {
  border-color: var(--kp-line);
}

body.knowledge-page .authority-hook__body {
  background:
    radial-gradient(circle at top left, rgba(116, 216, 163, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

body.knowledge-page .authority-hook__prompt {
  background: linear-gradient(180deg, #111918, #0f1716);
  border-color: var(--kp-line);
}

body.knowledge-page .authority-hook__question,
body.knowledge-page .authority-hook__snapshot-value {
  color: var(--kp-ink);
}

body.knowledge-page .authority-hook__response {
  background:
    radial-gradient(circle at top right, rgba(116, 216, 163, 0.08), transparent 28%),
    linear-gradient(180deg, #13271f, #11211a);
}

body.knowledge-page .authority-hook__trail-chip,
body.knowledge-page .authority-hook__fact {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

body.knowledge-page .authority-hook__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.knowledge-page .authority-hook__caption {
  max-width: 52ch;
}

body.knowledge-page .authority-hook__body {
  padding: 24px;
  border-radius: 30px;
}

.authority-hook__thread {
  display: grid;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

body.knowledge-page .authority-hook__message {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 24px;
}

body.knowledge-page .authority-hook__message--user {
  justify-self: end;
  width: min(76%, 760px);
  background: linear-gradient(180deg, #111918, #101716);
  border: 1px solid var(--kp-line);
}

body.knowledge-page .authority-hook__message--agent {
  justify-self: start;
  width: min(88%, 900px);
  background:
    radial-gradient(circle at top right, rgba(116, 216, 163, 0.08), transparent 28%),
    linear-gradient(180deg, #13271f, #11211a);
  border: 1px solid rgba(116, 216, 163, 0.16);
  color: #edf1e9;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
}

body.knowledge-page .authority-hook__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.knowledge-page .authority-hook__process {
  display: grid;
  gap: 10px;
  width: min(88%, 900px);
  padding: 2px 8px 2px 10px;
}

.authority-hook__process-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

body.knowledge-page .authority-hook__trace-label {
  color: rgba(214, 230, 219, 0.7);
}

body.knowledge-page .authority-hook__question {
  margin: 0;
  font-size: clamp(1.34rem, 1.9vw, 1.72rem);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

body.knowledge-page .authority-hook__snapshot {
  margin-top: 2px;
  padding-top: 12px;
}

body.knowledge-page .authority-hook__headline {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.08rem);
  line-height: 1.08;
}

body.knowledge-page .authority-hook__answer,
body.knowledge-page .authority-hook__decision {
  margin: 0;
}

body.knowledge-page .authority-hook__answer {
  font-size: 1rem;
  line-height: 1.72;
}

body.knowledge-page .authority-hook__facts {
  margin-top: 2px;
}

body.knowledge-page .authority-hook__fact {
  background: rgba(255, 255, 255, 0.045);
}

body.knowledge-page .authority-hook__trail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.knowledge-page .authority-hook__trail-chip {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(241, 244, 239, 0.7);
}

body.knowledge-page .authority-hook__tag {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 244, 239, 0.82);
}

body.knowledge-page .authority-hook__tag--agent {
  border-color: rgba(116, 216, 163, 0.22);
  background: rgba(116, 216, 163, 0.08);
  color: #dff0e3;
}

body.knowledge-page .knowledge-hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
  gap: 40px;
  align-items: start;
}

body.knowledge-page .knowledge-hero__copy h1 {
  max-width: none;
  font-size: clamp(2.85rem, 5.2vw, 5.1rem);
  line-height: 0.92;
}

body.knowledge-page--library .knowledge-hero__copy h1,
body.knowledge-page--agent .knowledge-hero__copy h1 {
  font-size: clamp(2.55rem, 4.5vw, 4.45rem);
}

body.knowledge-page .knowledge-section__intro h2 {
  font-size: clamp(1.78rem, 2.45vw, 2.72rem);
  line-height: 0.94;
}

body.knowledge-page .knowledge-brief h2 {
  font-size: clamp(1.6rem, 2.1vw, 2.25rem);
  line-height: 0.98;
}

body.knowledge-page .knowledge-hero__copy p,
body.knowledge-page .knowledge-section__intro p,
body.knowledge-page .knowledge-brief p,
body.knowledge-page .authority-hook__caption,
body.knowledge-page .library-link-card p,
body.knowledge-page .knowledge-story-grid p,
body.knowledge-page .layer-card p,
body.knowledge-page .domain-card__header p,
body.knowledge-page .hierarchy-card > p {
  font-size: 1rem;
  line-height: 1.65;
}

body.knowledge-page .knowledge-hero__copy p {
  max-width: 46ch;
}

.knowledge-section {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 28px;
}

.knowledge-section--full {
  grid-template-columns: 1fr;
  gap: 18px;
}

.knowledge-section--full .knowledge-section__intro {
  position: static;
  max-width: 760px;
}

.knowledge-section--full .knowledge-section__content {
  min-width: 0;
}

.domain-library,
.hierarchy-library {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.domain-library__sidebar,
.hierarchy-library__nav {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 10px;
}

.domain-library__list {
  display: grid;
  gap: 10px;
}

.domain-library__item,
.hierarchy-library__item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
}

.domain-library__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kp-accent);
}

.domain-library__item strong,
.hierarchy-library__item strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.domain-library__item span:last-child,
.hierarchy-library__item span:last-child {
  color: var(--kp-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.domain-library__item.is-active,
.hierarchy-library__item.is-active {
  border-color: rgba(116, 216, 163, 0.28);
  background: rgba(116, 216, 163, 0.08);
}

.domain-library__detail,
.hierarchy-library__detail {
  min-width: 0;
}

.domain-library__empty {
  padding: 28px;
  border-radius: 26px;
}

.domain-summary-card {
  display: grid;
  gap: 16px;
  padding: 26px;
}

body.knowledge-page .domain-card__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.knowledge-page .layer-card h3,
body.knowledge-page .hierarchy-card h3,
body.knowledge-page .domain-card h3,
body.knowledge-page .library-link-card h3,
body.knowledge-page .knowledge-story-grid h3,
body.knowledge-page .knowledge-prompt-panel h3,
body.knowledge-page .authority-hook__question,
body.knowledge-page .authority-hook__headline {
  letter-spacing: -0.05em;
}

body.knowledge-page .authority-hook__question {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1.05;
}

body.knowledge-page .authority-hook__headline {
  font-size: clamp(1.7rem, 2.1vw, 2.2rem);
  line-height: 1.02;
}

body.knowledge-page .authority-hook__answer {
  font-size: 0.98rem;
  line-height: 1.7;
}

body.knowledge-page--hub .domain-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  body.knowledge-page .authority-hook__message--user,
  body.knowledge-page .authority-hook__message--agent,
  body.knowledge-page .authority-hook__process {
    width: 100%;
  }

  .display-line {
    white-space: normal;
  }

  .domain-library,
  .hierarchy-library {
    grid-template-columns: 1fr;
  }

  .domain-library__sidebar,
  .hierarchy-library__nav {
    position: static;
  }
}

@media (max-width: 900px) {
  body.knowledge-page--hub .domain-grid {
    grid-template-columns: 1fr;
  }

  body.knowledge-page .domain-card__grid {
    grid-template-columns: 1fr;
  }
}

body.knowledge-page .knowledge-hero--centered {
  padding-top: 144px;
  padding-bottom: 74px;
}

body.knowledge-page .knowledge-hero__grid--centered {
  grid-template-columns: 1fr;
  justify-items: center;
}

body.knowledge-page .knowledge-hero__copy--centered {
  justify-items: center;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  gap: 20px;
}

body.knowledge-page--hub .knowledge-hero__copy--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
}

body.knowledge-page .knowledge-hero__copy--centered h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: 0.9;
}

body.knowledge-page--hub .knowledge-hero__copy--centered h1 {
  max-width: none;
  font-size: clamp(2.75rem, 4.65vw, 4.3rem);
}

body.knowledge-page--hub .display-headline {
  display: grid;
  width: 100%;
  max-width: 980px;
  justify-items: center;
}

body.knowledge-page--hub .display-line {
  width: 100%;
}

body.knowledge-page--library .knowledge-hero__copy--centered h1,
body.knowledge-page--agent .knowledge-hero__copy--centered h1 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 5.8vw, 5rem);
}

body.knowledge-page .knowledge-hero__copy--centered p {
  max-width: 38ch;
  margin: 0 auto;
}

.knowledge-reference-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--kp-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--kp-muted);
  font-size: 0.92rem;
}

.knowledge-reference-strip strong {
  color: var(--kp-ink);
  font-weight: 700;
}

.knowledge-reference-strip__label {
  color: var(--kp-accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-reference-strip--compact {
  padding-inline: 14px;
}

.domain-toolbar--centered {
  width: min(680px, 100%);
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.library-search-results {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  text-align: left;
}

.library-search-results__meta {
  color: var(--kp-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.library-search-results__list {
  display: grid;
  gap: 8px;
}

.library-search-result {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--kp-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--kp-ink);
  text-align: left;
  cursor: pointer;
}

.library-search-result:hover {
  border-color: var(--kp-line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.library-search-result__type {
  color: var(--kp-accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.library-search-result strong {
  font-size: 0.96rem;
  line-height: 1.35;
}

.library-search-result span:last-child {
  color: var(--kp-muted);
  line-height: 1.45;
}

.library-search-results__empty {
  color: var(--kp-muted);
  line-height: 1.55;
}

.knowledge-compact-section {
  padding-top: 0;
}

.knowledge-workspace {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: 34px;
}

.knowledge-workspace__bar {
  display: grid;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--kp-line);
}

.knowledge-workspace__intro {
  display: grid;
  gap: 8px;
  max-width: 46ch;
}

.knowledge-workspace__intro h2 {
  margin: 0;
  color: var(--kp-ink);
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.knowledge-workspace__intro p,
.knowledge-panel-intro p {
  margin: 0;
  color: var(--kp-muted);
  line-height: 1.65;
}

.knowledge-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.knowledge-tab {
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--kp-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--kp-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.knowledge-tab:hover,
.knowledge-tab.is-active {
  color: var(--kp-ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--kp-line-strong);
}

.knowledge-tab-panel {
  display: none;
  gap: 18px;
}

.knowledge-tab-panel.is-active {
  display: grid;
}

.knowledge-panel-intro {
  display: grid;
  gap: 6px;
  max-width: 44ch;
}

.knowledge-panel-intro h3 {
  margin: 0;
}

.knowledge-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.knowledge-guide-links a {
  color: var(--kp-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.knowledge-guide-links a:hover {
  color: var(--kp-ink);
}

.knowledge-overview {
  display: grid;
  gap: 18px;
}

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

.knowledge-overview__stat {
  display: grid;
  gap: 6px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--kp-line);
  background: rgba(255, 255, 255, 0.03);
}

.knowledge-overview__stat strong {
  color: var(--kp-ink);
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.knowledge-overview__stat span {
  color: var(--kp-accent);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-overview__stat p {
  margin: 0;
  color: var(--kp-muted);
  line-height: 1.55;
}

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

.knowledge-overview__cluster {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--kp-line);
  background: rgba(255, 255, 255, 0.025);
}

.knowledge-overview__cluster h3 {
  margin: 0;
  color: var(--kp-ink);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.knowledge-overview__cluster p {
  margin: 0;
  color: var(--kp-muted);
  line-height: 1.6;
}

.knowledge-list--compact li {
  background: rgba(255, 255, 255, 0.02);
}

.domain-library,
.hierarchy-library {
  grid-template-columns: minmax(220px, 248px) minmax(0, 1fr);
  min-height: 560px;
  gap: 18px;
}

.domain-library__sidebar,
.hierarchy-library__nav {
  position: static;
  max-height: 560px;
  overflow: auto;
  padding-right: 8px;
}

.domain-library__detail,
.hierarchy-library__detail {
  min-height: 560px;
}

body.knowledge-page .domain-card,
body.knowledge-page .hierarchy-card {
  gap: 18px;
  min-height: 100%;
  padding: 8px 6px 8px 18px;
}

body.knowledge-page .domain-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.knowledge-page .domain-card::before,
body.knowledge-page .domain-card::after {
  display: none;
}

.domain-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--kp-line);
}

.domain-card__stats span {
  padding: 0;
  color: var(--kp-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.domain-card__stats span::after {
  content: "•";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.18);
}

.domain-card__stats span:last-child::after {
  display: none;
}

body.knowledge-page .domain-card__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding-top: 4px;
}

body.knowledge-page .domain-card__section {
  padding: 0;
  border: 0;
  background: transparent;
  border-top: 1px solid var(--kp-line);
  padding-top: 14px;
}

body.knowledge-page .domain-card__section h4 {
  margin: 0 0 12px;
}

body.knowledge-page .domain-card__section .knowledge-list li,
body.knowledge-page .hierarchy-node .knowledge-list li {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.65;
}

body.knowledge-page .domain-card__header {
  display: grid;
  gap: 10px;
}

body.knowledge-page .domain-card__header p {
  max-width: 64ch;
}

.domain-library__list {
  gap: 4px;
}

.domain-library__item {
  gap: 3px;
  padding: 10px 0 12px 14px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.domain-library__item span:last-child {
  font-size: 0.82rem;
}

.domain-library__item.is-active {
  border-color: var(--kp-accent);
  background: transparent;
}

.domain-library__item:hover {
  background: transparent;
}

.domain-library__detail {
  padding-left: 8px;
  border-left: 1px solid var(--kp-line);
}

.knowledge-panel--simple {
  padding: 24px;
}

.knowledge-panel--simple .knowledge-list li,
.knowledge-panel--simple .prompt-list li {
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.7;
}

body.knowledge-page .authority-hook__body {
  display: grid;
  gap: 18px;
  padding: 22px 26px;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.authority-hook__thread,
body.knowledge-page .authority-hook__message,
body.knowledge-page .authority-hook__process {
  all: unset;
}

.authority-hook__section {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--kp-line);
}

.authority-hook__section:first-child {
  padding-top: 0;
  border-top: 0;
}

body.knowledge-page .authority-hook__label {
  color: var(--kp-accent);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.knowledge-page .authority-hook__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body.knowledge-page .authority-hook__question {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

body.knowledge-page .authority-hook__headline {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.7rem, 2.45vw, 2.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

body.knowledge-page .authority-hook__answer {
  max-width: 72ch;
  margin: 0;
  color: rgba(241, 244, 239, 0.82);
  font-size: 1rem;
  line-height: 1.72;
}

body.knowledge-page .authority-hook__facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.knowledge-page .authority-hook__fact {
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

body.knowledge-page .authority-hook__fact dt {
  margin-bottom: 4px;
  color: rgba(214, 230, 219, 0.62);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.knowledge-page .authority-hook__fact dd {
  margin: 0;
  color: #f1f4ef;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

body.knowledge-page .authority-hook__snapshot-value,
body.knowledge-page .authority-hook__status {
  color: var(--kp-muted);
}

body.knowledge-page .authority-hook__tag,
body.knowledge-page .authority-hook__tag--agent,
body.knowledge-page .authority-hook__trail,
body.knowledge-page .authority-hook__trail-chip,
body.knowledge-page .authority-hook__decision {
  display: none;
}

@media (max-width: 900px) {
  body.knowledge-page .authority-hook__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  body.knowledge-page .authority-hook__facts {
    grid-template-columns: 1fr;
  }
}

body.knowledge-page .hierarchy-stack {
  display: grid;
  gap: 12px;
}

body.knowledge-page .hierarchy-node {
  padding: 16px 18px;
  border-radius: 18px;
}

body.knowledge-page .authority-hook__top {
  padding-inline: 6px;
}

body.knowledge-page .authority-hook__body {
  padding: 20px;
  border-radius: 28px;
  box-shadow: none;
}

.authority-hook__thread {
  max-width: 760px;
}

body.knowledge-page .authority-hook__message--user {
  width: 100%;
}

body.knowledge-page .authority-hook__process {
  width: 100%;
  padding-inline: 2px;
}

body.knowledge-page .authority-hook__message--agent {
  width: 100%;
}

body.knowledge-page .authority-hook__trail {
  gap: 8px;
}

body.knowledge-page .authority-hook__trail-chip {
  padding: 6px 10px;
  font-size: 0.76rem;
}

body.knowledge-page .authority-hook__facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.knowledge-page .authority-hook__fact {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 4px;
}

body.knowledge-page .authority-hook__fact dd {
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 1080px) {
  .knowledge-workspace__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

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

@media (max-width: 900px) {
  body.knowledge-page .knowledge-hero__copy--centered h1,
  body.knowledge-page--library .knowledge-hero__copy--centered h1,
  body.knowledge-page--agent .knowledge-hero__copy--centered h1 {
    max-width: 10ch;
  }

  .knowledge-overview__stats,
  .knowledge-overview__grid {
    grid-template-columns: 1fr;
  }

  .knowledge-reference-strip {
    border-radius: 24px;
  }

  body.knowledge-page .domain-card__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .domain-library__detail {
    padding-left: 0;
    border-left: 0;
  }
}

.code-block {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.7;
}

.cta-band {
  padding-top: 80px;
  padding-bottom: 110px;
}

.cta-panel {
  text-align: center;
}

.cta-panel h2 {
  margin: 18px auto 14px;
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

.footer {
  padding: 32px 0 48px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 18px;
  padding-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.52);
  transition: color 160ms ease;
}

.footer-legal a:hover {
  color: var(--text);
}

.footer-dot {
  color: rgba(255, 255, 255, 0.22);
  user-select: none;
}

.section-masthead__copy h1,
.story-hero__copy h1,
.story-copy h2,
.story-cta h2,
.page-hero .section-masthead__copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.hero-reference-note {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 460ms ease, transform 460ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-home::before,
.hero-home::after {
  display: none;
}

.hero-home {
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
}

.hero-grid .hero-copy {
  justify-items: start;
  text-align: left;
}

.hero-grid .hero-copy p {
  max-width: 40rem;
}

.hero-grid .hero-actions {
  justify-content: flex-start;
}

.hero-kicker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kicker-list span {
  position: relative;
  padding: 10px 14px 10px 28px;
  border: 1px solid rgba(151, 255, 99, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-kicker-list span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  transform: translateY(-50%);
  box-shadow: 0 0 14px rgba(151, 255, 99, 0.28);
}

.hero-network {
  position: relative;
  overflow: hidden;
  padding: 28px;
  min-height: 620px;
  background:
    radial-gradient(circle at 18% 12%, rgba(94, 242, 255, 0.08), transparent 28%),
    radial-gradient(circle at 82% 84%, rgba(151, 255, 99, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.hero-network::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.2;
}

.hero-network-head,
.hero-network-map,
.hero-network-notes {
  position: relative;
  z-index: 1;
}

.hero-network-head {
  display: grid;
  gap: 8px;
}

.hero-network-head h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.hero-network-head p {
  max-width: 28rem;
}

.hero-network-map {
  position: relative;
  min-height: 420px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.82);
}

.hero-node-center {
  box-shadow: 0 0 40px rgba(151, 255, 99, 0.16);
}

.hero-network-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hero-note {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.hero-rail {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.panel,
.card,
.case-card,
.flow-card,
.quote-card,
.page-grid article,
.contact-panel,
.workflow-card,
.backbone-card,
.tool-card,
.ontology-pill,
.stakeholder-card {
  position: relative;
  overflow: hidden;
}

.panel::after,
.card::after,
.case-card::after,
.flow-card::after,
.quote-card::after,
.page-grid article::after,
.contact-panel::after,
.workflow-card::after,
.backbone-card::after,
.tool-card::after,
.ontology-pill::after,
.stakeholder-card::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, rgba(151, 255, 99, 0.52), transparent);
  pointer-events: none;
}

.panel::before,
.card::before,
.case-card::before,
.flow-card::before,
.quote-card::before,
.page-grid article::before,
.contact-panel::before,
.workflow-card::before,
.backbone-card::before,
.tool-card::before,
.ontology-pill::before,
.stakeholder-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(151, 255, 99, 0.18);
  border: 1px solid rgba(151, 255, 99, 0.38);
  box-shadow: 0 0 14px rgba(151, 255, 99, 0.12);
  pointer-events: none;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

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

  .hero-network {
    min-height: auto;
  }

  .hero-network-notes {
    grid-template-columns: 1fr;
  }

  .demo-stage,
  .feature-panel,
  .workflow-grid,
  .page-grid,
  .case-grid,
  .flow,
  .info-grid,
  .contact-grid,
  .metric-grid,
  .layer-grid,
  .domain-grid,
  .hierarchy-grid,
  .library-link-grid,
  .domain-card__grid,
  .dev-grid {
    grid-template-columns: 1fr;
  }

  .demo-sidebar,
  .demo-main,
  .feature-visual {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 780px) {
  .hero-grid .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-grid .hero-actions {
    justify-content: center;
  }

  .nav-row {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    padding: 12px;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 8, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav-links a,
  .nav-cta {
    width: 100%;
  }

  .nav-account {
    margin-top: 2px;
  }

  .domain-toolbar__top {
    align-items: start;
  }

  .authority-hook__top {
    align-items: start;
  }

  .section,
  .page-hero {
    padding: 86px 0;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-home::before,
  .hero-home::after {
    width: 34vw;
    height: 24vh;
    top: 240px;
    opacity: 0.28;
  }

  .hero-copy h1,
  .page-hero h1,
  .section-intro h2,
  .contact-panel h2,
  .cta-panel h2 {
    font-size: clamp(2.4rem, 10.8vw, 4rem);
    max-width: none;
  }

  .hero-copy h1 {
    max-width: 8.6ch;
    line-height: 0.92;
  }

  .hero-network-map {
    min-height: 380px;
  }

  .hero-node-center {
    left: 30% !important;
  }

  .page-hero::before {
    width: 220px;
    height: 220px;
    right: -40px;
    top: 12%;
  }

  .page-hero::after {
    width: 110px;
    left: 5%;
  }

  .hero-copy p,
  .page-hero p,
  .section-intro p,
  .section-head p {
    font-size: 1rem;
  }

  .logo-track {
    font-size: 1.35rem;
    gap: 22px;
  }

  .announcement {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .tab-list,
  .demo-steps {
    grid-template-columns: 1fr;
  }

  .tab-list button,
  .demo-step {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tab-list button:last-child,
  .demo-step:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    display: grid;
    justify-items: start;
  }
}

.graph-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.graph-header h3 {
  margin: 0;
  font-size: 1.16rem;
}

.graph-story {
  color: var(--muted);
  line-height: 1.7;
}

.graph-surface {
  position: relative;
  min-height: 340px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(151, 255, 99, 0.08), transparent 34%),
    #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.graph-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.24;
}

.graph-edge {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transform-origin: left center;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.graph-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.graph-node::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.graph-node.state-neutral,
.graph-edge.state-neutral {
  background-color: rgba(255, 255, 255, 0.08);
}

.graph-node.state-neutral {
  color: rgba(255, 255, 255, 0.78);
}

.graph-node.state-neutral::before {
  background: rgba(255, 255, 255, 0.4);
}

.graph-node.state-signal,
.graph-edge.state-signal {
  background-color: rgba(151, 255, 99, 0.42);
}

.graph-node.state-signal {
  border-color: rgba(151, 255, 99, 0.42);
  background: rgba(151, 255, 99, 0.1);
  color: #f4fff0;
  box-shadow: 0 0 24px rgba(151, 255, 99, 0.12);
}

.graph-node.state-signal::before {
  background: var(--signal);
  box-shadow: 0 0 18px rgba(151, 255, 99, 0.4);
}

.graph-node.state-warning,
.graph-edge.state-warning {
  background-color: rgba(255, 195, 112, 0.46);
}

.graph-node.state-warning {
  border-color: rgba(255, 195, 112, 0.36);
  background: rgba(255, 195, 112, 0.1);
  color: #fff4e1;
}

.graph-node.state-warning::before {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(255, 195, 112, 0.3);
}

.graph-node.state-danger,
.graph-edge.state-danger {
  background-color: rgba(255, 111, 97, 0.48);
}

.graph-node.state-danger {
  border-color: rgba(255, 111, 97, 0.38);
  background: rgba(255, 111, 97, 0.1);
  color: #fff1ee;
}

.graph-node.state-danger::before {
  background: var(--danger);
  box-shadow: 0 0 18px rgba(255, 111, 97, 0.3);
}

.graph-caption {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.ontology-grid,
.stakeholder-grid {
  display: grid;
  gap: 12px;
}

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

.ontology-pill,
.stakeholder-card,
.backbone-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.ontology-pill strong,
.stakeholder-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ontology-pill span,
.stakeholder-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.stakeholder-surface {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
  padding: 22px;
}

.backbone-band {
  position: relative;
}

.backbone-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(94, 242, 255, 0.14), transparent 24%),
    radial-gradient(circle at 92% 26%, rgba(151, 255, 99, 0.12), transparent 22%);
  pointer-events: none;
}

.backbone-lockup {
  margin-bottom: 34px;
}

.backbone-lockup .mono-display {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  line-height: 1.1;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.84);
}

.backbone-lockup p {
  max-width: 760px;
  margin-top: 16px;
}

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

.backbone-card {
  border-radius: var(--radius);
  padding: 28px;
}

.backbone-card h3 {
  margin: 0 0 12px;
}

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

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

  .graph-surface {
    min-height: 430px;
  }
}

body.section-page {
  background:
    radial-gradient(circle at 14% 12%, rgba(151, 255, 99, 0.08), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(94, 242, 255, 0.07), transparent 20%),
    linear-gradient(180deg, #06100e 0%, #07100f 38%, #081110 100%);
}

body.section-page .page-hero {
  position: relative;
  padding: 104px 0 62px;
  text-align: left;
}

body.section-page .page-hero::before,
body.section-page .page-hero::after {
  display: none;
}

body.section-page .page-hero::after {
  display: block;
  content: "";
  position: absolute;
  inset: auto 0 -24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

body.section-page .nav-cta {
  color: #111;
}

body.section-page main {
  padding-bottom: 112px;
}

.section-masthead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.section-masthead__copy {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.section-masthead__copy h1 {
  margin: 0;
  max-width: 11.2ch;
  font-family: var(--font-sans);
  font-size: clamp(2.95rem, 5.3vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.085em;
}

.section-masthead__copy p {
  max-width: 35rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.74;
}

.section-masthead__rail {
  position: relative;
  display: grid;
  gap: 20px;
  width: min(100%, 430px);
  justify-self: end;
  padding: 30px 32px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(151, 255, 99, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(23, 35, 31, 0.96), rgba(12, 20, 18, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.section-masthead__rail::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 52%);
  pointer-events: none;
}

.section-rail-title {
  display: grid;
  gap: 10px;
}

.section-rail-title h2,
.section-rail-title h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-rail-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.96rem;
  line-height: 1.65;
}

.section-stat-list,
.section-mini-list,
.section-meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.section-stat-list {
  gap: 0;
}

.section-stat-list li,
.section-mini-list li {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-stat-list li:first-child,
.section-mini-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-stat-list strong,
.section-mini-list strong,
.section-meta-list dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(151, 255, 99, 0.92);
}

.section-stat-list span,
.section-mini-list span,
.section-meta-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.section-meta-list {
  gap: 14px;
}

.section-meta-list div {
  display: grid;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-meta-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-block {
  padding: 48px 0 0;
}

.section-block + .section-block {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-block__grid {
  display: grid;
  grid-template-columns: minmax(260px, 292px) minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 52px);
  align-items: start;
}

.section-block__head {
  display: grid;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 104px;
}

.section-block__head h2 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-sans);
  font-size: clamp(1.78rem, 2.4vw, 2.65rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.section-block__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.section-block__body {
  display: grid;
  gap: 18px;
}

.section-block__lede {
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
}

.section-grid-2,
.section-grid-3 {
  display: grid;
  gap: 20px;
}

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

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

.section-card {
  display: grid;
  gap: 14px;
  padding: 26px 26px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(151, 255, 99, 0.06), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.section-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.28rem;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.section-card__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(151, 255, 99, 0.92);
}

.sequence-list,
.outline-list {
  display: grid;
  gap: 0;
}

.sequence-row,
.outline-row {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sequence-row:first-child,
.outline-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.sequence-row strong,
.outline-row strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(151, 255, 99, 0.92);
}

.sequence-row p,
.outline-row p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

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

.evidence-entry {
  display: grid;
  gap: 14px;
  padding: 26px 26px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(151, 255, 99, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.evidence-entry h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.34rem;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.evidence-entry p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.evidence-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.evidence-points li {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.62;
}

.evidence-points li:first-child {
  padding-top: 0;
  border-top: 0;
}

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

.route-link {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.018));
}

.route-link strong {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.route-link span {
  color: var(--muted);
  line-height: 1.62;
}

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

.fit-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.022));
}

.fit-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.3rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.fit-card ul,
.section-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.fit-card li,
.section-card li {
  color: var(--muted);
  line-height: 1.6;
}

.contact-sheet {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(94, 242, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.contact-sheet strong {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.contact-sheet p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

body.section-page .knowledge-workspace {
  padding: 30px 34px;
  border-radius: 34px;
}

body.section-page .knowledge-workspace__bar {
  gap: 22px;
  padding-bottom: 22px;
}

body.section-page .knowledge-workspace__intro h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

body.section-page .knowledge-workspace__intro p {
  max-width: 58ch;
}

body.section-page .knowledge-guide-links {
  margin-top: 28px;
}

body.section-page .knowledge-guide-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

body.section-page .knowledge-guide-links a:hover {
  color: var(--text);
}

body.section-page.section-page--knowledge-hub .section-masthead__copy h1,
body.section-page.section-page--capabilities .section-masthead__copy h1,
body.section-page.section-page--assistant .section-masthead__copy h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.4vw, 5.2rem);
}

body.section-page.section-page--evidence .section-masthead__copy h1,
body.section-page.section-page--method .section-masthead__copy h1 {
  max-width: 9.4ch;
}

body.section-page.section-page--company .section-masthead__copy h1,
body.section-page.section-page--access .section-masthead__copy h1,
body.section-page.section-page--install .section-masthead__copy h1 {
  max-width: 11ch;
}

body.section-page .domain-toolbar {
  width: 100%;
  max-width: none;
  align-items: stretch;
}

body.section-page .domain-search {
  width: 100%;
}

body.section-page .library-search-results {
  width: 100%;
}

body.section-page.knowledge-page {
  --kp-bg: #07100f;
  --kp-surface: rgba(255, 255, 255, 0.03);
  --kp-surface-strong: rgba(255, 255, 255, 0.05);
  --kp-ink: rgba(255, 255, 255, 0.96);
  --kp-muted: rgba(255, 255, 255, 0.64);
  --kp-line: rgba(255, 255, 255, 0.08);
  --kp-line-strong: rgba(255, 255, 255, 0.14);
  --kp-accent: #97ff63;
  --kp-accent-soft: rgba(151, 255, 99, 0.08);
  --kp-warm: #5ef2ff;
}

body.section-page.knowledge-page .button-secondary {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body.section-page.knowledge-page .button {
  background: var(--signal);
  color: #07100f;
}

body.section-page.knowledge-page .knowledge-workspace {
  padding: 32px 34px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(94, 242, 255, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

body.section-page.knowledge-page .knowledge-workspace__bar {
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.section-page.knowledge-page .knowledge-workspace__intro,
body.section-page.knowledge-page .knowledge-panel-intro {
  max-width: 50ch;
}

body.section-page.knowledge-page .knowledge-workspace__intro h2,
body.section-page.knowledge-page .knowledge-panel-intro h3 {
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: -0.05em;
}

body.section-page.knowledge-page .knowledge-workspace__intro p,
body.section-page.knowledge-page .knowledge-panel-intro p,
body.section-page.knowledge-page .knowledge-guide-links a,
body.section-page.knowledge-page .library-link-card p,
body.section-page.knowledge-page .knowledge-overview__cluster p,
body.section-page.knowledge-page .knowledge-overview__stat p {
  color: var(--muted);
}

body.section-page.knowledge-page .knowledge-tab {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
}

body.section-page.knowledge-page .knowledge-tab:hover,
body.section-page.knowledge-page .knowledge-tab.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

body.section-page.knowledge-page .knowledge-overview__stat,
body.section-page.knowledge-page .knowledge-overview__cluster,
body.section-page.knowledge-page .domain-card__section,
body.section-page.knowledge-page .hierarchy-node,
body.section-page.knowledge-page .authority-hook__fact {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

body.section-page.knowledge-page .knowledge-overview__stat strong,
body.section-page.knowledge-page .knowledge-overview__cluster h3,
body.section-page.knowledge-page .hierarchy-card h3,
body.section-page.knowledge-page .domain-card h3,
body.section-page.knowledge-page .authority-hook__headline,
body.section-page.knowledge-page .authority-hook__question {
  color: var(--text);
}

body.section-page.knowledge-page .knowledge-overview__stat span,
body.section-page.knowledge-page .domain-library__eyebrow,
body.section-page.knowledge-page .authority-hook__label,
body.section-page.knowledge-page .authority-hook__tag,
body.section-page.knowledge-page .authority-hook__trail-chip,
body.section-page.knowledge-page .authority-hook__snapshot-value,
body.section-page.knowledge-page .authority-hook__status {
  color: rgba(151, 255, 99, 0.92);
}

body.section-page.knowledge-page .knowledge-list li,
body.section-page.knowledge-page .prompt-list li,
body.section-page.knowledge-page .domain-library__item span:last-child,
body.section-page.knowledge-page .hierarchy-library__item span:last-child,
body.section-page.knowledge-page .authority-hook__answer,
body.section-page.knowledge-page .authority-hook__caption {
  color: var(--muted);
}

body.section-page.knowledge-page .domain-search {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

body.section-page.knowledge-page .domain-search::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

body.section-page.knowledge-page .library-search-results,
body.section-page.knowledge-page .domain-library__detail,
body.section-page.knowledge-page .hierarchy-library__detail {
  border-color: rgba(255, 255, 255, 0.08);
}

body.section-page.knowledge-page .domain-library__item,
body.section-page.knowledge-page .hierarchy-library__item {
  color: var(--text);
}

body.section-page.knowledge-page .domain-library__item.is-active,
body.section-page.knowledge-page .hierarchy-library__item.is-active {
  border-color: var(--signal);
}

body.section-page.knowledge-page .knowledge-guide-links a:hover {
  color: var(--text);
}

body.section-page.knowledge-page .authority-hook__body {
  padding: 24px 0 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.section-page.knowledge-page .authority-hook__section {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.section-page.knowledge-page .authority-hook__section:first-child {
  padding-top: 0;
  border-top: 0;
}

body.section-page.knowledge-page .authority-hook__facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body,
.brand,
.logo-track {
  font-family: var(--font-sans);
}

.line-lockup {
  display: grid;
  gap: 0.08em;
}

.line-lockup__line {
  display: block;
  white-space: nowrap;
}

.hero-copy h1,
.page-hero h1,
.section-intro h2,
.section-head h2,
.contact-panel h2,
.section-masthead__copy h1,
.section-rail-title h2,
.section-rail-title h3,
.section-block__head h2,
.section-card h3,
.route-link strong,
.fit-card h3,
.contact-sheet strong,
.metric-value,
.stat-inline__value,
body.section-page .knowledge-workspace__intro h2,
body.section-page .knowledge-panel-intro h3,
body.section-page.knowledge-page .knowledge-overview__stat strong,
body.section-page.knowledge-page .knowledge-overview__cluster h3,
body.section-page.knowledge-page .hierarchy-card h3,
body.section-page.knowledge-page .domain-card h3,
body.section-page.knowledge-page .library-link-card h3,
body.section-page.knowledge-page .authority-hook__question,
body.section-page.knowledge-page .authority-hook__headline {
  font-family: var(--font-display);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-wrap: balance;
}

.hero-copy h1,
.page-hero h1,
.section-masthead__copy h1 {
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -0.032em;
}

.section-intro h2,
.section-head h2,
.section-block__head h2,
body.section-page .knowledge-workspace__intro h2 {
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
}

.section-rail-title h2,
.section-rail-title h3,
.contact-panel h2,
.section-card h3,
.route-link strong,
.fit-card h3,
.contact-sheet strong,
.metric-value,
.stat-inline__value,
body.section-page .knowledge-workspace__intro h2,
body.section-page .knowledge-panel-intro h3,
body.section-page.knowledge-page .knowledge-overview__stat strong,
body.section-page.knowledge-page .knowledge-overview__cluster h3,
body.section-page.knowledge-page .hierarchy-card h3,
body.section-page.knowledge-page .domain-card h3,
body.section-page.knowledge-page .library-link-card h3,
body.section-page.knowledge-page .authority-hook__question,
body.section-page.knowledge-page .authority-hook__headline {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-masthead__copy h1 {
  max-width: 12.8ch;
  font-size: clamp(2.65rem, 4.85vw, 4.7rem);
}

.section-block__head h2 {
  max-width: 12.5ch;
  font-size: clamp(1.55rem, 2.15vw, 2.3rem);
}

body.section-page .knowledge-workspace__intro h2 {
  max-width: 15ch;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

body.section-page .knowledge-panel-intro h3 {
  max-width: 24ch;
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
}

.section-card h3,
.route-link strong,
.fit-card h3,
.contact-sheet strong,
.section-rail-title h2,
.section-rail-title h3,
.contact-panel h2,
body.section-page.knowledge-page .layer-card h3,
body.section-page.knowledge-page .hierarchy-card h3,
body.section-page.knowledge-page .domain-card h3,
body.section-page.knowledge-page .library-link-card h3,
body.section-page.knowledge-page .knowledge-overview__cluster h3 {
  font-size: clamp(1.12rem, 1.45vw, 1.45rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
}

body.section-page.knowledge-page .authority-hook__question {
  max-width: 30ch;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}

body.section-page.knowledge-page .authority-hook__headline {
  max-width: 34ch;
  font-size: clamp(1.16rem, 1.55vw, 1.45rem);
  line-height: 1.14;
  letter-spacing: -0.014em;
}

body.section-page.knowledge-page .knowledge-overview__stat strong,
.metric-value,
.stat-inline__value {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

body.section-page.section-page--knowledge-hub .section-masthead__copy h1,
body.section-page.section-page--capabilities .section-masthead__copy h1,
body.section-page.section-page--assistant .section-masthead__copy h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 4.1vw, 3.9rem);
}

body.section-page.section-page--evidence .section-masthead__copy h1,
body.section-page.section-page--method .section-masthead__copy h1 {
  max-width: 12.2ch;
  font-size: clamp(2.35rem, 4.25vw, 4rem);
}

body.section-page.section-page--company .section-masthead__copy h1,
body.section-page.section-page--access .section-masthead__copy h1,
body.section-page.section-page--install .section-masthead__copy h1 {
  max-width: 12.8ch;
  font-size: clamp(2.4rem, 4.3vw, 4.05rem);
}

@media (max-width: 1080px) {
  .section-masthead__grid,
  .section-block__grid,
  .section-grid-3,
  .route-links,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .section-block__head {
    position: static;
  }

  .evidence-ledger,
  .section-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  body.section-page .page-hero {
    padding: 92px 0 52px;
  }

  body.section-page.knowledge-page .authority-hook__facts {
    grid-template-columns: 1fr;
  }

  .section-masthead__rail,
  .contact-sheet,
  .route-link,
  .fit-card,
  .section-card,
  .evidence-entry {
    padding: 22px;
  }

  .section-inline-stats {
    grid-template-columns: 1fr;
  }

  .section-masthead__copy h1 {
    max-width: 100%;
    font-size: clamp(2.1rem, 9vw, 3.2rem);
  }

  .line-lockup__line {
    white-space: normal;
  }

  .section-block__head h2,
  body.section-page .knowledge-workspace__intro h2 {
    max-width: 100%;
    font-size: clamp(1.45rem, 5.4vw, 1.95rem);
  }

  body.section-page .knowledge-panel-intro h3,
  body.section-page.knowledge-page .authority-hook__question,
  body.section-page.knowledge-page .authority-hook__headline {
    max-width: 100%;
  }

  .sequence-row,
  .outline-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.section-masthead__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.section-masthead__copy--wide {
  max-width: 72rem;
}

.hero-actions--left {
  justify-content: flex-start;
}

.section-inline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-inline-stats li {
  display: grid;
  gap: 6px;
  margin: 0;
}

.section-inline-stats strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-inline-stats span {
  color: var(--muted);
  line-height: 1.55;
}

.section-block--plain {
  padding-top: 0;
}

.reference-shell {
  display: grid;
  gap: 26px;
}

.reference-shell__toolbar {
  display: grid;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-shell__toolbar--stacked {
  gap: 16px;
}

.reference-shell__intro {
  display: grid;
  gap: 8px;
  max-width: 64ch;
}

.reference-shell__intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.reference-search {
  display: grid;
  gap: 14px;
  max-width: 60rem;
}

.reference-search__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.reference-browser {
  display: grid;
  grid-template-columns: minmax(220px, 244px) minmax(0, 1fr);
  gap: 32px;
  min-height: 520px;
}

.reference-index {
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-index__list {
  display: grid;
  gap: 0;
}

.reference-index__item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 0 12px 14px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.reference-index__item strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.reference-index__item span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.reference-index__item.is-active {
  border-color: var(--signal);
}

.reference-index__item:hover {
  background: rgba(255, 255, 255, 0.015);
}

.reference-detail,
.domain-library__detail,
.hierarchy-library__detail,
.walk-library__detail {
  min-width: 0;
  padding-left: 0;
  border-left: 0;
}

.reference-sheet {
  display: grid;
  gap: 22px;
}

.reference-sheet--simple {
  gap: 18px;
}

.reference-sheet__header {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-sheet__header h3 {
  margin: 0;
  max-width: 26ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.reference-sheet__header p {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.65;
}

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

.reference-meta__item {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-meta__item dt {
  color: rgba(151, 255, 99, 0.92);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-meta__item dd {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}

.reference-sheet__sections {
  display: grid;
  gap: 24px;
}

.reference-sheet__sections--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.reference-sheet__section {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-sheet__section h4 {
  margin: 0;
  color: rgba(151, 255, 99, 0.92);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-sheet__note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.reference-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-list--loose {
  gap: 12px;
}

.reference-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.65;
}

.reference-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(151, 255, 99, 0.7);
  transform: translateY(-50%);
}

.overview-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.overview-metric {
  display: grid;
  gap: 6px;
}

.overview-metric strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.038em;
}

.overview-metric span {
  color: rgba(151, 255, 99, 0.92);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-metric p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.walk-graph-list {
  display: grid;
  gap: 22px;
}

.walk-graph {
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(151, 255, 99, 0.24) rgba(255, 255, 255, 0.04);
}

.walk-graph__svg {
  display: block;
  min-width: max-content;
}

.walk-graph__edge {
  fill: none;
  stroke: rgba(151, 255, 99, 0.58);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.walk-graph__arrow-head {
  fill: rgba(151, 255, 99, 0.76);
}

.walk-graph__rect {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
}

.walk-graph__node--start .walk-graph__rect {
  fill: rgba(151, 255, 99, 0.09);
  stroke: rgba(151, 255, 99, 0.5);
}

.walk-graph__node--end .walk-graph__rect {
  fill: rgba(94, 242, 255, 0.08);
  stroke: rgba(94, 242, 255, 0.36);
}

.walk-graph__label {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.section-page.knowledge-page .knowledge-workspace {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.section-page.knowledge-page .knowledge-workspace__bar {
  padding-bottom: 0;
  border-bottom: 0;
}

body.section-page.knowledge-page .knowledge-workspace__intro,
body.section-page.knowledge-page .knowledge-panel-intro,
body.section-page.knowledge-page .knowledge-overview__cluster,
body.section-page.knowledge-page .knowledge-overview__stat,
body.section-page.knowledge-page .hierarchy-node,
body.section-page.knowledge-page .authority-hook__fact {
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.section-page.knowledge-page .domain-library,
body.section-page.knowledge-page .hierarchy-library,
body.section-page.knowledge-page .walk-library {
  min-height: 0;
  gap: 32px;
}

body.section-page.knowledge-page .domain-library__list,
body.section-page.knowledge-page .hierarchy-library__nav,
body.section-page.knowledge-page .walk-library__nav {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

body.section-page.knowledge-page .domain-library__item,
body.section-page.knowledge-page .hierarchy-library__item,
body.section-page.knowledge-page .walk-library__item {
  padding-left: 14px;
  border-radius: 0;
  box-shadow: none;
}

body.section-page.knowledge-page .domain-library__item span:last-child,
body.section-page.knowledge-page .hierarchy-library__item span:last-child,
body.section-page.knowledge-page .walk-library__item span:last-child {
  font-size: 0.82rem;
}

body.section-page.knowledge-page .authority-hook {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.section-page.knowledge-page .authority-hook__top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.section-page.knowledge-page .authority-hook__title {
  display: grid;
  gap: 6px;
}

body.section-page.knowledge-page .authority-hook__question {
  max-width: 28ch;
  font-size: clamp(1.45rem, 2.15vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
}

body.section-page.knowledge-page .authority-hook__headline {
  max-width: 34ch;
  font-size: clamp(1.18rem, 1.7vw, 1.5rem);
  line-height: 1.14;
}

body.section-page.knowledge-page .authority-hook__answer {
  max-width: 70ch;
  color: var(--text);
  line-height: 1.72;
}

body.section-page.knowledge-page .authority-hook__answer,
body.section-page.knowledge-page .authority-hook__decision,
body.section-page.knowledge-page .authority-hook__fact {
  opacity: 1;
  transform: none;
  transition: none;
}

body.section-page.knowledge-page .authority-hook__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}

body.section-page.knowledge-page .authority-hook__fact {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.section-page.knowledge-page .authority-hook__fact dt {
  color: rgba(151, 255, 99, 0.92);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.section-page.knowledge-page .authority-hook__fact dd {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

body.section-page.section-page--knowledge-hub .section-masthead__copy h1,
body.section-page.section-page--capabilities .section-masthead__copy h1,
body.section-page.section-page--assistant .section-masthead__copy h1 {
  max-width: 18ch;
  font-size: clamp(2.45rem, 4vw, 4rem);
}

@media (max-width: 1080px) {
  .section-inline-stats,
  .overview-metric-strip,
  .reference-sheet__sections--three,
  .reference-meta,
  .reference-browser {
    grid-template-columns: 1fr;
  }

  .reference-index {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 780px) {
  .section-inline-stats {
    gap: 14px;
  }

  .reference-search__meta,
  body.section-page.knowledge-page .authority-hook__top {
    align-items: start;
    flex-direction: column;
  }

  body.section-page.knowledge-page .authority-hook__facts {
    grid-template-columns: 1fr;
  }

  .walk-graph__label {
    font-size: 12px;
  }
}

@keyframes knowledge-render-shimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.knowledge-page:not(.knowledge-catalog-ready) [data-render]:empty {
  min-height: 14rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.09) 45%,
    rgba(255, 255, 255, 0.04) 90%
  );
  background-size: 200% 100%;
  animation: knowledge-render-shimmer 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-page:not(.knowledge-catalog-ready) [data-render]:empty {
    animation: none;
    background: rgba(255, 255, 255, 0.04);
  }
}

.text-link-inherit {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.legal-prose {
  max-width: 42rem;
}

.legal-prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p,
.legal-prose li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.legal-prose ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-prose li {
  margin: 0.35rem 0;
}

.legal-prose strong {
  color: var(--text);
}

.legal-prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
