:root {
  color-scheme: light;
  --ink: oklch(17% 0.012 185);
  --muted: oklch(40% 0.014 185);
  --soft: oklch(64% 0.014 185);
  --paper: oklch(95.8% 0.009 190);
  --panel: oklch(98.6% 0.004 190);
  --panel-cool: oklch(96.8% 0.008 200);
  --wash: oklch(92.5% 0.012 195);
  --line: oklch(73% 0.013 190);
  --line-soft: oklch(86% 0.01 190);
  --deep: oklch(31% 0.073 168);
  --deep-2: oklch(22% 0.057 168);
  --authority: oklch(76% 0.078 160);
  --authority-bg: oklch(90% 0.046 160);
  --authority-soft: oklch(96% 0.022 160);
  --authority-ink: oklch(27% 0.07 162);
  --review: oklch(72% 0.062 290);
  --review-bg: oklch(91% 0.04 290);
  --review-soft: oklch(97% 0.018 290);
  --review-ink: oklch(31% 0.085 290);
  --watch: oklch(78% 0.073 80);
  --watch-bg: oklch(91% 0.052 80);
  --watch-soft: oklch(97% 0.022 80);
  --watch-ink: oklch(32% 0.07 80);
  --flow: oklch(67% 0.075 225);
  --flow-bg: oklch(90% 0.045 225);
  --flow-soft: oklch(96% 0.026 225);
  --flow-ink: oklch(27% 0.07 225);
  --control: oklch(65% 0.065 255);
  --control-bg: oklch(90% 0.042 255);
  --control-soft: oklch(96% 0.024 255);
  --control-ink: oklch(28% 0.065 255);
  --evidence: oklch(70% 0.085 45);
  --evidence-bg: oklch(91% 0.05 45);
  --evidence-soft: oklch(97% 0.024 45);
  --evidence-ink: oklch(31% 0.075 45);
  --final: oklch(40% 0.018 220);
  --final-bg: oklch(94% 0.007 220);
  --final-soft: oklch(97% 0.004 220);
  --final-ink: oklch(25% 0.018 220);
  --mint: var(--authority-bg);
  --mint-strong: var(--authority);
  --lavender: var(--review-bg);
  --blue: var(--flow-bg);
  --amber: var(--watch-bg);
  --shadow: 0 24px 80px oklch(22% 0.018 190 / 0.12);
  font-family:
    Aptos, "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: oklch(98.8% 0.005 190 / 0.92);
  box-shadow: 0 14px 54px oklch(19% 0.016 170 / 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 102px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a,
.nav-cta,
.primary-action,
.secondary-action {
  border-radius: 999px;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-links a:hover {
  background: var(--panel-cool);
  color: var(--ink);
}

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

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel);
}

.language-option {
  appearance: none;
  min-width: 36px;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.language-option.active {
  background: var(--deep-2);
  color: oklch(96% 0.008 165);
}

.nav-cta {
  padding: 10px 16px;
  background: var(--deep-2);
  color: oklch(96% 0.008 165);
  font-size: 0.9rem;
  font-weight: 650;
}

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

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(440px, 620px);
  justify-content: center;
  align-items: end;
  gap: clamp(36px, 5vw, 72px);
  padding: 142px 24px 76px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-scene {
  position: relative;
  order: 2;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 1;
}

.scene-shell {
  width: 100%;
  min-height: 665px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scene-intro {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.scene-intro div {
  display: grid;
  gap: 4px;
  max-width: 430px;
}

.scene-intro span,
.scene-intro em {
  color: var(--deep);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scene-intro strong {
  font-size: clamp(0.94rem, 1.25vw, 1.1rem);
  line-height: 1.25;
}

.scene-intro em {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--panel-cool);
}

.scene-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  gap: 1px;
  min-height: 585px;
  background: var(--line);
}

.scene-panel {
  padding: 26px;
  background: var(--panel);
}

.panel-label {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.signal-card {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 166px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  perspective: 900px;
  cursor: pointer;
}

.signal-inner {
  position: relative;
  display: block;
  min-height: 166px;
  transform-style: preserve-3d;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.signal-card.flipped .signal-inner {
  transform: rotateY(180deg);
}

.signal-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 166px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backface-visibility: hidden;
}

.signal-card.high .signal-front {
  background: var(--authority-bg);
  border-color: var(--authority);
}

.signal-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  border: 1px solid var(--authority);
  border-radius: 999px;
  background: var(--authority-soft);
  color: var(--deep-2);
}

.signal-icon svg,
.hero-dual-icon svg,
.job-icon svg,
.trust-icon svg,
.node-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-front span:not(.signal-icon) {
  color: var(--muted);
  font-size: 0.74rem;
}

.signal-front strong {
  max-width: 15ch;
  font-size: clamp(0.84rem, 1.05vw, 0.98rem);
  line-height: 1.18;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.signal-front em {
  color: var(--deep);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-back {
  gap: 9px;
  transform: rotateY(180deg);
  background: var(--deep-2);
  color: oklch(95% 0.01 175);
}

.signal-back strong {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-back span {
  color: oklch(86% 0.025 180);
  font-size: 0.84rem;
  line-height: 1.36;
}

.signal-card:focus-visible,
.model-item:focus-visible,
.lineage-node:focus-visible,
.trust-card:focus-visible,
.language-option:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid var(--flow);
  outline-offset: 3px;
}

.route-step {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.88rem;
}

.route-step.active {
  color: var(--deep-2);
  border-color: var(--flow);
  background: var(--flow-bg);
  font-weight: 700;
}

.document-line {
  height: 12px;
  width: 74%;
  margin-bottom: 16px;
  border-radius: 999px;
  background: oklch(82% 0.01 165);
}

.document-line.wide {
  width: 88%;
}

.document-line.short {
  width: 48%;
}

.approval-pill {
  display: inline-flex;
  margin-top: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--authority-soft);
  color: var(--authority-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.panel-output strong {
  display: block;
  max-width: 260px;
  margin-top: 2px;
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  line-height: 1.2;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.panel-output p {
  max-width: 310px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-content {
  position: relative;
  order: 1;
  z-index: 2;
  width: 100%;
  margin: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3.2rem, 4.9vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 780;
}

.hero-copy {
  max-width: 560px;
  margin: 30px 0 0;
  color: oklch(32% 0.018 170);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

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

.hero-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 620px;
}

.hero-dual article {
  min-height: 138px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero-dual article:first-child {
  background: var(--authority-soft);
}

.hero-dual article:nth-child(2) {
  background: var(--flow-soft);
}

.hero-dual-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep-2);
}

.hero-dual article:first-child .hero-dual-icon {
  border-color: var(--authority);
  background: var(--authority-bg);
  color: var(--authority-ink);
}

.hero-dual article:nth-child(2) .hero-dual-icon {
  border-color: var(--flow);
  background: var(--flow-bg);
  color: var(--flow-ink);
}

.hero-dual strong,
.hero-dual p {
  display: block;
}

.hero-dual strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.hero-dual p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.hero-note {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 19px;
  font-weight: 720;
}

.primary-action {
  background: var(--deep-2);
  color: oklch(97% 0.006 165);
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
  scroll-margin-top: 118px;
}

.section.compact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: start;
  padding-top: 88px;
}

.section-heading {
  max-width: 780px;
}

.section-heading.narrow {
  max-width: 660px;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.15rem, 4vw, 4.8rem);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.08;
}

.fit-copy {
  max-width: 680px;
  color: oklch(32% 0.018 170);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.58;
}

.fit-copy p {
  margin: 0;
}

.fit-copy p + p {
  margin-top: 20px;
}

.jobs-section {
  padding-top: 92px;
  border-bottom: 1px solid var(--line);
}

.jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.jobs article {
  position: relative;
  min-height: 300px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--panel);
}

.jobs article:first-child {
  background: var(--deep-2);
  color: oklch(96% 0.008 180);
}

.jobs article:nth-child(2) {
  background: var(--flow-bg);
}

.job-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  opacity: 0.86;
}

.job-index {
  display: block;
  margin-bottom: 42px;
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.jobs article:first-child .job-index,
.jobs article:first-child p {
  color: oklch(86% 0.025 180);
}

.jobs p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.authority-matrix {
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.authority-intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px 28px;
  align-items: start;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.authority-intro > span {
  grid-row: span 2;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.authority-intro h3 {
  max-width: 640px;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
}

.authority-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.authority-table-wrap {
  overflow-x: auto;
}

.authority-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.authority-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.authority-table th,
.authority-table td {
  padding: 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.authority-table tr:last-child th,
.authority-table tr:last-child td {
  border-bottom: 0;
}

.authority-table th:last-child,
.authority-table td:last-child {
  border-right: 0;
}

.authority-table thead th {
  background: var(--panel-cool);
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 840;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.authority-table tbody th {
  width: 30%;
  text-align: left;
}

.authority-table tbody th strong,
.authority-table tbody th span,
.matrix-cell strong,
.matrix-cell span {
  display: block;
}

.authority-table tbody th strong {
  font-size: 1.02rem;
  line-height: 1.18;
}

.authority-table tbody th span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.42;
}

.matrix-cell {
  width: 23.333%;
  color: var(--soft);
}

.matrix-cell:not(.is-active) > span {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--line-soft);
}

.matrix-cell.is-active {
  color: var(--ink);
}

.matrix-cell.is-active strong {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.matrix-cell.is-active span {
  max-width: 240px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.matrix-cell.obligation {
  background: var(--authority-bg);
}

.matrix-cell.review {
  background: var(--review-bg);
}

.matrix-cell.watch {
  background: var(--watch-bg);
}

.need-section {
  border-bottom: 1px solid var(--line);
}

.need-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.need-points div {
  min-height: 164px;
  padding: 22px;
  border-top: 4px solid var(--authority);
  background: var(--authority-soft);
}

.need-points div:nth-child(2) {
  border-top-color: var(--evidence);
  background: var(--evidence-soft);
}

.need-points div:nth-child(3) {
  border-top-color: var(--control);
  background: var(--control-soft);
}

.need-points div:nth-child(4) {
  border-top-color: var(--review);
  background: var(--review-soft);
}

.need-points span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--deep);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0.1em;
}

.need-points strong,
.need-points small {
  display: block;
}

.need-points strong {
  font-size: 1.05rem;
  line-height: 1.18;
}

.need-points small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.platform-model {
  border-top: 1px solid var(--line);
}

.model-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: 54px;
  align-items: start;
}

.model-menu {
  border-top: 1px solid var(--line);
}

.model-item {
  appearance: none;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px 20px;
  width: 100%;
  padding: 24px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.model-item.active {
  background: var(--panel);
}

.model-item span {
  grid-row: span 2;
  color: var(--deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.model-item strong {
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.1;
}

.model-item small {
  max-width: 580px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.model-item.active strong {
  color: var(--deep-2);
}

.model-detail {
  position: sticky;
  top: 112px;
  min-height: 510px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px oklch(22% 0.02 200 / 0.08);
}

.detail-kicker {
  margin: 0 0 18px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-detail h3 {
  max-width: 440px;
}

.model-detail > p:not(.detail-kicker) {
  margin: 22px 0 0;
  color: oklch(31% 0.017 170);
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.6;
}

.model-points {
  display: grid;
  gap: 18px;
  margin: 44px 0 0;
}

.model-points div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.model-points dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-points dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.workflow {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lineage-showcase {
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lineage-topbar {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
  padding: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: var(--deep-2);
  color: oklch(96% 0.008 180);
}

.lineage-topbar div {
  display: grid;
  gap: 10px;
}

.lineage-topbar span {
  color: oklch(78% 0.06 168);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lineage-topbar strong {
  max-width: 680px;
  font-size: clamp(1.55rem, 3vw, 3.2rem);
  line-height: 0.98;
}

.lineage-topbar p {
  margin: 0;
  color: oklch(84% 0.024 180);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.52;
}

.lineage-map {
  display: grid;
  grid-template-columns: 230px minmax(390px, 1fr) 330px;
  gap: 1px;
  background: var(--line);
}

.source-stack,
.lineage-flow,
.lineage-detail {
  background: var(--panel);
}

.source-stack {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.source-stack .panel-label {
  grid-column: 1 / -1;
}

.source-token {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
}

.source-token.official {
  background: var(--authority-bg);
  border-color: var(--authority);
}

.source-token.guidance {
  background: var(--review-bg);
  border-color: var(--review);
}

.source-token.market {
  background: var(--watch-bg);
  border-color: var(--watch);
}

.source-token span {
  color: var(--deep);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source-token strong,
.source-token small {
  display: block;
}

.source-token strong {
  line-height: 1.18;
}

.source-token small {
  color: var(--muted);
  font-size: 0.82rem;
}

.lineage-flow {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.lineage-flow::before {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 52px;
  left: 51px;
  width: 1px;
  background: var(--line);
}

.lineage-node {
  appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 44px 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px 16px 14px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lineage-node.active {
  border-color: var(--line);
  background: var(--panel-cool);
}

.node-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.node-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-cool);
  color: var(--muted);
}

.lineage-node[data-lineage="source"] .node-icon {
  border-color: var(--authority);
  background: var(--authority-soft);
  color: var(--authority-ink);
}

.lineage-node[data-lineage="source"] .node-number {
  border-color: var(--authority);
  color: var(--authority-ink);
}

.lineage-node[data-lineage="classify"] .node-icon {
  border-color: var(--flow);
  background: var(--flow-soft);
  color: var(--flow-ink);
}

.lineage-node[data-lineage="classify"] .node-number {
  border-color: var(--flow);
  color: var(--flow-ink);
}

.lineage-node[data-lineage="assign"] .node-icon {
  border-color: var(--control);
  background: var(--control-soft);
  color: var(--control-ink);
}

.lineage-node[data-lineage="assign"] .node-number {
  border-color: var(--control);
  color: var(--control-ink);
}

.lineage-node[data-lineage="evidence"] .node-icon {
  border-color: var(--evidence);
  background: var(--evidence-soft);
  color: var(--evidence-ink);
}

.lineage-node[data-lineage="evidence"] .node-number {
  border-color: var(--evidence);
  color: var(--evidence-ink);
}

.lineage-node[data-lineage="draft"] .node-icon {
  border-color: var(--review);
  background: var(--review-soft);
  color: var(--review-ink);
}

.lineage-node[data-lineage="draft"] .node-number {
  border-color: var(--review);
  color: var(--review-ink);
}

.lineage-node[data-lineage="export"] .node-icon {
  border-color: var(--final);
  background: var(--final-soft);
  color: var(--final-ink);
}

.lineage-node[data-lineage="export"] .node-number {
  border-color: var(--final);
  color: var(--final-ink);
}

.lineage-node[data-lineage="source"].active {
  border-color: var(--authority);
  background: var(--authority-bg);
}

.lineage-node[data-lineage="classify"].active {
  border-color: var(--flow);
  background: var(--flow-bg);
}

.lineage-node[data-lineage="assign"].active {
  border-color: var(--control);
  background: var(--control-bg);
}

.lineage-node[data-lineage="evidence"].active {
  border-color: var(--evidence);
  background: var(--evidence-bg);
}

.lineage-node[data-lineage="draft"].active {
  border-color: var(--review);
  background: var(--review-bg);
}

.lineage-node[data-lineage="export"].active {
  border-color: var(--final);
  background: var(--final-bg);
  box-shadow: inset 0 0 0 2px oklch(40% 0.018 220 / 0.16);
}

.lineage-node strong,
.lineage-node small {
  display: block;
  grid-column: 3;
}

.lineage-node strong {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.12;
}

.lineage-node small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.lineage-detail {
  padding: clamp(24px, 3vw, 34px);
}

.lineage-detail > p:first-child {
  margin: 0 0 18px;
  color: var(--deep);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lineage-detail h3 {
  max-width: 260px;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.lineage-detail > p:not(:first-child) {
  margin: 20px 0 0;
  color: oklch(31% 0.017 170);
  font-size: 1rem;
  line-height: 1.58;
}

.lineage-detail dl {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.lineage-detail dl div {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.lineage-detail dt {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lineage-detail dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.editor-demo {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.58;
}

.editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--review-soft);
  box-shadow: var(--shadow);
}

.report-page {
  min-height: 560px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
}

.report-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-page h3 {
  max-width: 520px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.report-page p {
  max-width: 620px;
  color: oklch(28% 0.018 190);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.report-page mark {
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--review-bg);
  color: inherit;
}

.comment-pin {
  margin-top: 42px;
  padding: 18px;
  border: 1px solid var(--review);
  border-radius: 8px;
  background: var(--review-soft);
}

.comment-pin strong {
  display: block;
  color: var(--review-ink);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comment-pin span {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  line-height: 1.5;
}

.editor-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
}

.edit-action {
  appearance: none;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-cool);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.edit-action.active {
  border-color: var(--review);
  background: var(--review-bg);
  color: var(--review-ink);
}

.edit-action:focus-visible {
  outline: 3px solid var(--flow);
  outline-offset: 3px;
}

.editor-output {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.editor-output strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.2;
}

.editor-output p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.attributes {
  border-bottom: 1px solid var(--line);
}

.attribute-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.attribute-grid div {
  position: relative;
  min-height: 230px;
  padding: clamp(24px, 3vw, 34px);
  border-top: 4px solid var(--line);
  background: var(--panel);
}

.attribute-grid div::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: var(--line);
}

.attribute-grid div:nth-child(1) {
  border-top-color: var(--authority);
  background: var(--authority-soft);
}

.attribute-grid div:nth-child(1)::before {
  background: var(--authority);
}

.attribute-grid div:nth-child(2) {
  border-top-color: var(--review);
  background: var(--review-soft);
}

.attribute-grid div:nth-child(2)::before {
  background: var(--review);
}

.attribute-grid div:nth-child(3) {
  border-top-color: var(--flow);
  background: var(--panel);
}

.attribute-grid div:nth-child(4) {
  border-top-color: var(--authority);
  background: var(--authority-soft);
}

.attribute-grid div:nth-child(3)::before {
  background: var(--flow);
}

.attribute-grid div:nth-child(4)::before {
  background: var(--authority);
}

.attribute-grid div:nth-child(5) {
  border-top-color: var(--flow);
  background: var(--flow-soft);
}

.attribute-grid div:nth-child(5)::before {
  background: var(--flow);
}

.attribute-grid div:nth-child(6) {
  border-top-color: var(--watch);
  background: var(--watch-soft);
}

.attribute-grid div:nth-child(6)::before {
  background: var(--watch);
}

.attribute-grid strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.15;
}

.attribute-grid span {
  display: block;
  margin-top: 42px;
  color: var(--muted);
  line-height: 1.5;
}

.standards {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 8vw, 94px);
  align-items: start;
}

.standard-links {
  border-top: 1px solid var(--line);
}

.standard-links a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.standard-links a:hover strong {
  color: var(--deep);
}

.standard-links strong {
  line-height: 1.2;
}

.standard-links span {
  color: var(--muted);
  line-height: 1.45;
}

.governance {
  padding-top: 112px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 52px;
}

.trust-card {
  appearance: none;
  min-height: 350px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  perspective: 1200px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 350px;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backface-visibility: hidden;
}

.card-front small {
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 24px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--deep-2);
  background: var(--panel-cool);
}

.card-front strong {
  display: block;
  margin-top: 28px;
  font-size: clamp(1.1rem, 1.7vw, 1.6rem);
  line-height: 1.05;
  white-space: pre-line;
}

.card-front em {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.42;
}

.card-action {
  align-self: flex-start;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  font-size: 0.78rem;
  font-weight: 780;
}

.card-back {
  gap: 14px;
  transform: rotateY(180deg);
  background: var(--panel);
}

.card-back strong {
  color: var(--deep);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-back span {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.38;
}

.trust-card:nth-child(1) .card-front {
  border-top-color: var(--authority);
  background: var(--authority-soft);
}

.trust-card:nth-child(1) .trust-icon {
  border-color: var(--authority);
  background: var(--authority-bg);
}

.trust-card:nth-child(2) .card-front {
  border-top-color: var(--flow);
  background: var(--flow-soft);
}

.trust-card:nth-child(2) .trust-icon {
  border-color: var(--flow);
  background: var(--flow-bg);
}

.trust-card:nth-child(3) .card-front {
  border-top-color: var(--review);
  background: var(--review-soft);
}

.trust-card:nth-child(3) .trust-icon {
  border-color: var(--review);
  background: var(--review-bg);
}

.trust-card:nth-child(4) .card-front {
  border-top-color: var(--control);
  background: var(--control-soft);
}

.trust-card:nth-child(4) .trust-icon {
  border-color: var(--control);
  background: var(--control-bg);
}

.trust-card:nth-child(5) .card-front {
  border-top-color: var(--watch);
  background: var(--watch-soft);
}

.trust-card:nth-child(5) .trust-icon {
  border-color: var(--watch);
  background: var(--watch-bg);
}

.governance-copy {
  max-width: 740px;
  margin: 30px 0 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  line-height: 1.55;
}

.final-cta {
  margin-bottom: 34px;
  padding: 84px clamp(24px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--deep-2);
  color: oklch(96% 0.008 190);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: start;
}

.final-cta .eyebrow,
.final-cta p:not(.eyebrow) {
  color: oklch(86% 0.025 180);
}

.final-cta .primary-action {
  background: oklch(96% 0.008 190);
  color: var(--deep-2);
}

.final-cta h2 {
  max-width: 760px;
}

.final-cta .pilot-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 24px 0 30px;
  color: oklch(86% 0.025 180);
  font-size: 1.15rem;
  line-height: 1.55;
}

.pilot-form {
  display: grid;
  gap: 16px;
}

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

.pilot-form label {
  display: grid;
  gap: 8px;
}

.pilot-form label > span {
  color: oklch(86% 0.025 180);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pilot-form input,
.pilot-form select,
.pilot-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid oklch(70% 0.035 175 / 0.62);
  border-radius: 8px;
  background: oklch(96% 0.008 190);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
}

.pilot-form textarea {
  min-height: 112px;
  resize: vertical;
}

.pilot-form input:focus,
.pilot-form select:focus,
.pilot-form textarea:focus {
  outline: 3px solid oklch(72% 0.075 173);
  outline-offset: 2px;
}

.pilot-form .primary-action {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: oklch(82% 0.022 180);
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.footer-brand a {
  display: inline-flex;
  width: 138px;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand p,
.footer-meta p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 14px;
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.footer-meta nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--deep);
  font-size: 0.92rem;
  font-weight: 720;
}

.footer-meta a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 126px;
  }

  .hero-scene {
    order: 2;
    place-items: center;
  }

  .hero-dual {
    max-width: none;
  }

  .scene-shell {
    min-height: 500px;
  }

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

  .panel-route,
  .panel-output {
    display: none;
  }

  .section.compact,
  .editor-demo,
  .final-cta,
  .model-shell,
  .standards {
    grid-template-columns: 1fr;
  }

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

  .model-detail {
    position: relative;
    top: auto;
    min-height: auto;
  }

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

  .lineage-topbar,
  .lineage-map {
    grid-template-columns: 1fr;
  }

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

  .authority-intro {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .authority-intro > span {
    grid-row: auto;
  }

  .authority-table {
    min-width: 760px;
  }

  .trust-card,
  .card-inner,
  .card-face {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    margin-top: 12px;
  }

  .brand {
    width: 88px;
  }

  .nav-cta {
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  .language-option {
    min-width: 32px;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .hero {
    padding: 112px 18px 56px;
  }

  .hero-scene {
    padding: 0;
  }

  .scene-shell {
    min-height: 420px;
    opacity: 0.78;
  }

  .scene-intro {
    gap: 10px;
    padding: 13px;
  }

  .scene-intro em {
    display: none;
  }

  .scene-panel {
    padding: 18px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

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

  .hero-dual article {
    min-height: auto;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding: 70px 0;
  }

  .authority-intro {
    padding: 22px;
  }

  .authority-table-wrap {
    overflow: visible;
  }

  .authority-table,
  .authority-table tbody,
  .authority-table tr,
  .authority-table tbody th,
  .authority-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .authority-table thead {
    display: none;
  }

  .authority-table tbody tr {
    border-bottom: 1px solid var(--line-soft);
  }

  .authority-table tbody tr:last-child {
    border-bottom: 0;
  }

  .authority-table tbody th {
    padding: 20px 20px 12px;
    border: 0;
  }

  .matrix-cell {
    border: 0;
  }

  .matrix-cell:not(.is-active) {
    display: none;
  }

  .matrix-cell.is-active {
    margin: 0 20px 20px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
  }

  .matrix-cell.is-active span {
    max-width: none;
  }

  .source-stack {
    grid-template-columns: 1fr;
  }

  .lineage-topbar,
  .source-stack,
  .lineage-flow,
  .lineage-detail {
    padding: 20px;
  }

  .lineage-node {
    grid-template-columns: 34px 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .node-number {
    width: 28px;
    height: 28px;
  }

  .node-icon {
    width: 38px;
    height: 38px;
  }

  .lineage-flow::before {
    left: 36px;
  }

  .editor-shell {
    padding: 10px;
  }

  .report-page {
    min-height: auto;
    padding: 24px;
  }

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

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

  .jobs article {
    min-height: 250px;
  }

  .standard-links a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .final-cta {
    padding: 46px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pilot-form .primary-action {
    width: 100%;
  }

  .site-footer {
    width: min(100% - 32px, 1180px);
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .footer-meta nav {
    justify-content: flex-start;
  }
}
