:root {
  --ink: #11110f;
  --ink-soft: #171612;
  --ink-raised: #201e18;
  --paper: #f3efe5;
  --paper-dim: #c9c1b2;
  --muted: #9d9587;
  --line: rgba(243, 239, 229, 0.16);
  --line-strong: rgba(243, 239, 229, 0.32);
  --amber: #f5bd66;
  --amber-dim: #bd7f32;
  --cyan: #71d1c7;
  --violet: #9b83e8;
  --red: #e07b68;
  --green: #9fcf9b;
  --display: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", sans-serif;
  --body: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --measure: 72ch;
  --page: 1240px;
  --header: 76px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ink);
  background: var(--amber);
}

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

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

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(245, 189, 102, 0.2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

:where(h1, h2, h3, h4)[id] {
  scroll-margin-top: calc(var(--header) + 24px);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--amber);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 15, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner,
.page,
.footer-inner {
  width: min(var(--page), calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: var(--header);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--amber-dim);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.68rem;
  transform: rotate(-10deg);
}

.site-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a {
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 720;
}

.nav-cta,
.button-primary {
  color: var(--ink) !important;
  background: var(--amber);
}

.nav-cta:hover,
.button-primary:hover {
  background: #ffd287;
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.015);
}

.button-secondary:hover {
  border-color: var(--amber-dim);
  background: rgba(245, 189, 102, 0.06);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 118px);
  padding: 104px 0 112px;
  overflow: clip;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 3%;
  right: -15%;
  width: min(650px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 123, 104, 0.19), transparent 69%);
  content: "";
  filter: blur(18px);
}

.eyebrow,
.mono-label,
.section-index,
.evidence-label,
.source-note,
.table-note,
.date-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin-bottom: 22px;
  color: var(--amber);
}

.hero h1,
.page-hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.15rem, 7vw, 6.4rem);
  font-weight: 620;
  letter-spacing: -0.072em;
  line-height: 0.96;
}

.hero h1 em {
  color: var(--amber);
  font-style: normal;
}

.hero-dek,
.page-hero p,
.section-lead {
  max-width: var(--measure);
  color: var(--paper-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.hero-dek {
  max-width: 56ch;
  margin: 28px 0 34px;
}

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

.route-plate {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(42, 38, 29, 0.96), rgba(22, 21, 17, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  transform: rotate(0.8deg);
}

.plate-head,
.plate-foot,
.section-head,
.card-head,
.table-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plate-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.status-light {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(159, 207, 155, 0.72);
}

.route-lineup {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 26px 0;
}

.route-lineup::before {
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: 17px;
  border-left: 1px dashed rgba(245, 189, 102, 0.54);
  content: "";
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}

.route-step b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--amber);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.route-step:nth-child(2) b {
  background: var(--cyan);
}

.route-step:nth-child(3) b {
  background: var(--violet);
}

.route-name {
  display: block;
  font-weight: 700;
}

.route-detail,
.route-state,
.plate-foot {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.route-state {
  color: var(--green);
}

.plate-foot {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.evidence-strip,
.evidence-grid,
.decision-grid {
  display: grid;
  grid-auto-flow: dense;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

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

.evidence-item,
.evidence-card,
.decision-card {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(23, 22, 18, 0.58);
}

.evidence-item {
  min-height: 160px;
  padding: 26px;
}

.evidence-value {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.evidence-context {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 126px 0;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(200px, 0.62fr) minmax(0, 1.38fr);
  align-items: start;
  margin-bottom: 48px;
}

.section h2,
.section-compact h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  font-weight: 590;
  letter-spacing: -0.064em;
  line-height: 1;
}

.section-lead {
  margin: 0;
}

.source-note {
  display: block;
  margin-top: 16px;
  color: var(--amber-dim);
}

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

.evidence-card {
  grid-column: span 4;
  min-height: 290px;
  padding: 26px;
}

.evidence-card.wide {
  grid-column: span 8;
}

.evidence-card h3,
.decision-card h3,
.provider-section h2,
.panel h2,
.panel h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 620;
  letter-spacing: -0.04em;
}

.evidence-card h3,
.decision-card h3,
.panel h3 {
  font-size: 1.45rem;
}

.evidence-card p,
.decision-card p,
.panel p {
  max-width: 58ch;
  margin: 0;
  color: var(--paper-dim);
}

.card-head {
  margin-bottom: 54px;
}

.card-head span:last-child {
  color: var(--amber);
}

.page-hero {
  padding: 104px 0 76px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.4vw, 6rem);
}

.page-hero p {
  margin: 24px 0 0;
}

.page-hero .actions {
  margin-top: 30px;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(23, 22, 18, 0.72);
}

.panel + .panel {
  border-top: 0;
}

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

.decision-card {
  min-height: 270px;
  padding: 26px;
}

.provider-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.provider-link {
  display: flex;
  min-width: 0;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--paper-dim);
  transition: color 160ms ease, background-color 160ms ease;
}

.provider-link:hover {
  color: var(--amber);
  background: rgba(245, 189, 102, 0.05);
}

.provider-link small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.provider-section {
  padding: 74px 0 0;
}

.provider-section h2 {
  max-width: none;
  font-size: 2.15rem;
}

.provider-section .section-meta {
  margin: 0 0 22px;
  color: var(--muted);
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(12, 12, 10, 0.7);
  overscroll-behavior: contain;
}

.table-toolbar {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--ink-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--paper-dim);
  font-size: 0.9rem;
}

td:first-child,
.model-id {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
}

tbody tr {
  content-visibility: auto;
  contain-intrinsic-size: 50px;
}

tbody tr:hover {
  background: rgba(113, 209, 199, 0.035);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.rate {
  color: var(--amber);
  white-space: nowrap;
}

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

.notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin: 24px 0;
  padding: 18px;
  border-left: 2px solid var(--amber);
  background: rgba(245, 189, 102, 0.07);
  color: var(--paper-dim);
}

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

.notice.info {
  border-left-color: var(--cyan);
  background: rgba(113, 209, 199, 0.06);
}

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

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.code-card {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.9);
}

.code-card h2,
.code-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.copy-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--amber);
  background: transparent;
  cursor: pointer;
}

.copy-button:hover {
  background: rgba(245, 189, 102, 0.08);
}

pre {
  min-width: 0;
  margin: 0;
  overflow: auto;
  color: #ded8ca;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.75;
  white-space: pre;
  overscroll-behavior: contain;
}

code {
  font-family: var(--mono);
}

.ledger-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper-dim);
}

.ledger-row span:last-child {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: right;
}

.archive-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.archive-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: 86px;
}

.archive-item:hover h2 {
  color: var(--amber);
}

.archive-item h2 {
  max-width: 36ch;
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.025em;
  transition: color 160ms ease;
}

.archive-item .arrow {
  color: var(--amber);
}

.metric-table .weak td {
  background: rgba(224, 123, 104, 0.06);
}

.metric-table .weak .rate {
  color: var(--red);
}

.architecture {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.about-statement {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.about-statement > div {
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-statement .paper {
  color: var(--ink);
  background: var(--paper);
}

.about-statement .paper p {
  color: #625b4f;
}

.about-statement .paper .mono-label {
  color: #625b4f;
}

.about-statement h2 {
  max-width: 15ch;
  margin: 70px 0 16px;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.console-gate {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 500px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.console-rail {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.console-rail nav {
  display: grid;
  gap: 8px;
  margin-top: 38px;
}

.console-rail a {
  padding: 9px 0;
  color: var(--muted);
}

.console-main {
  padding: 32px;
}

.console-main h2 {
  max-width: 18ch;
  margin: 72px 0 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  min-height: 210px;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
  gap: 40px;
  padding: 46px 0;
  color: var(--muted);
}

.footer-copy {
  max-width: 42ch;
  margin: 16px 0 0;
}

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

.footer-links a:hover {
  color: var(--paper);
}

.footer-evidence {
  font-family: var(--mono);
  font-size: 0.72rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(var(--page), calc(100% - 30px));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: var(--header);
    right: 15px;
    left: 15px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 16px 16px;
    border: 1px solid var(--line);
    border-top: 0;
    background: rgba(17, 17, 15, 0.99);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

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

  .site-nav .nav-cta {
    margin-top: 8px;
    padding: 0 14px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 86px 0 94px;
  }

  .route-plate {
    width: min(680px, 100%);
    transform: none;
  }

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

  .evidence-card,
  .evidence-card.wide {
    grid-column: span 6;
  }

  .provider-directory,
  .decision-grid,
  .code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .code-card:last-child,
  .decision-card:last-child {
    grid-column: span 2;
  }

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

  .footer-evidence {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 68px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  .hero {
    padding-top: 70px;
  }

  .route-step {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .route-state {
    grid-column: 2;
  }

  .plate-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-strip,
  .provider-directory,
  .decision-grid,
  .code-grid,
  .footer-inner,
  .about-statement,
  .console-gate {
    grid-template-columns: 1fr;
  }

  .evidence-card,
  .evidence-card.wide {
    grid-column: span 12;
  }

  .code-card:last-child,
  .decision-card:last-child {
    grid-column: auto;
  }

  .section,
  .section-compact {
    padding: 82px 0;
  }

  .page-hero {
    padding: 74px 0 56px;
  }

  .archive-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
  }

  .archive-item .date-label {
    grid-column: 1 / -1;
  }

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

  .console-main h2 {
    margin-top: 20px;
  }

  .footer-inner {
    gap: 28px;
  }

  .footer-evidence {
    grid-column: auto;
  }
}

/* Phase 1 acquisition surfaces: conflict, route, ledger. */
.home-hero,
.acquisition-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

.home-hero h1,
.acquisition-hero h1 {
  max-width: 18ch;
  font-size: clamp(3.1rem, 6.3vw, 6rem);
  line-height: 0.94;
}

.conflict-stack {
  display: grid;
  gap: 10px;
  padding: 16px 0 22px;
}

.conflict-line {
  max-width: 36ch;
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.95rem;
}

.conflict-line.emphasis {
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 720;
}

.value-first {
  padding-top: 84px;
}

.price-section {
  background: linear-gradient(180deg, rgba(245, 189, 102, 0.025), transparent 45%);
}

.rate-anchor {
  background: rgba(11, 11, 10, 0.86);
}

.rate-anchor td,
.rate-anchor th {
  padding: 17px 18px;
}

.table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

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

.stats-strip .evidence-item {
  min-height: 154px;
}

.provider-rail {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.provider-rail span {
  min-width: 0;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: center;
}

.provider-bridge .actions {
  margin-top: 26px;
}

.acquisition-hero {
  min-height: 610px;
}

.evidence-console,
.model-plate,
.calculator-sheet,
.bridge-panel {
  border: 1px solid var(--line-strong);
  background: rgba(23, 22, 18, 0.72);
}

.evidence-console,
.model-plate {
  padding: 22px;
}

.evidence-console > p {
  margin: 24px 0;
  color: var(--paper);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.ledger-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px 18px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.ledger-preview b {
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-weight: 500;
  text-align: right;
}

.fact-list {
  display: grid;
  margin: 25px 0;
  border-top: 1px solid var(--line);
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.fact-list b {
  color: var(--paper);
  font-weight: 500;
  text-align: right;
}

.migration-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.migration-step {
  min-width: 0;
  min-height: 230px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(23, 22, 18, 0.58);
}

.migration-step > span {
  display: block;
  margin-bottom: 54px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.migration-step h3,
.calculator-sheet h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.migration-step p,
.calculator-sheet p,
.bridge-panel p {
  margin: 0;
  color: var(--paper-dim);
}

.migration-step code {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.calculator-sheet {
  display: grid;
  grid-template-columns: minmax(190px, 0.58fr) minmax(0, 1.42fr);
  gap: 34px;
  margin-top: 30px;
  padding: 28px;
}

.calculator-sheet > .table-note {
  grid-column: 1 / -1;
}

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

.worksheet-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.worksheet-grid input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--paper);
  background: var(--ink);
}

.code-section .code-card {
  margin-top: 22px;
}

.bridge-panel {
  padding: clamp(28px, 6vw, 72px);
  background: var(--paper);
  color: var(--ink);
}

.bridge-panel h2 {
  max-width: 17ch;
  color: var(--ink);
}

.bridge-panel p {
  max-width: 54ch;
  color: #625b4f;
}

.bridge-panel .button-secondary {
  border-color: rgba(17, 17, 15, 0.36);
  color: var(--ink);
}

@media (max-width: 960px) {
  .home-hero,
  .acquisition-hero {
    grid-template-columns: 1fr;
  }

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

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

  .migration-steps {
    grid-template-columns: 1fr;
  }

  .migration-step {
    min-height: 0;
  }

  .migration-step > span {
    margin-bottom: 28px;
  }

  .calculator-sheet {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero h1,
  .acquisition-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.8rem, 14.8vw, 4.35rem);
  }

  .stats-strip,
  .provider-rail {
    grid-template-columns: 1fr;
  }

  .provider-rail span {
    text-align: left;
  }

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

  .calculator-sheet {
    padding: 20px;
  }

  /* Keep the homepage's compact reference table inside the smallest release
     gate. Full catalog tables remain intentionally scrollable. */
  .rate-anchor table {
    table-layout: fixed;
  }

  .rate-anchor th,
  .rate-anchor td {
    padding: 10px 7px;
    font-size: 0.68rem;
    overflow-wrap: anywhere;
  }

  .rate-anchor th {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .rate-anchor .model-id,
  .rate-anchor .rate {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .fact-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .fact-list b {
    text-align: left;
  }
}
