:root {
  --paper: #f6f0df;
  --sheet: #fffaf0;
  --ink: #17130e;
  --muted: #6d6559;
  --line: rgba(23, 19, 14, 0.17);
  --red: #a33d2f;
  --blue: #315f82;
  --green: #36735b;
  --gold: #c69332;
  --radius: 6px;
  --max: 1240px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(23, 19, 14, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 19, 14, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  grid-template-areas:
    "brand nav"
    "ticker ticker";
  gap: 0 18px;
  align-items: center;
  min-height: 0;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2)) 0;
  color: #fff;
  border-bottom: 0;
  background:
    linear-gradient(135deg, rgba(23, 19, 14, 0.98), rgba(17, 24, 39, 0.98)),
    var(--ink);
  box-shadow: 0 14px 36px rgba(23, 19, 14, 0.22);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 14px;
  width: fit-content;
  min-height: 72px;
  border: 2px solid rgba(255, 250, 240, 0.9);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 11px 17px 10px 13px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(246, 240, 223, 0.9)),
    var(--sheet);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transform: skew(-2deg);
}

.brand > * {
  transform: skew(2deg);
}

.brand-seal {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
}

.brand-seal svg {
  width: 36px;
  height: 36px;
}

.brand-seal svg path:first-child {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
}

.brand-seal svg path:nth-child(2) {
  fill: var(--sheet);
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linejoin: round;
}

.brand-seal svg path:last-child {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.18rem;
  line-height: 1;
}

.brand small {
  margin-top: 5px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar nav {
  grid-area: nav;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 10px;
}

.topbar nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: var(--radius);
  padding: 0 11px;
  color: #fff;
  background: rgba(255, 250, 240, 0.07);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.topbar nav a:hover {
  border-color: rgba(255, 250, 240, 0.58);
  background: rgba(255, 250, 240, 0.16);
}

.proof-ticker {
  grid-area: ticker;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid rgba(255, 250, 240, 0.16);
  background: #fffaf0;
  color: var(--ink);
  overflow: hidden;
}

.proof-ticker-track {
  width: max-content;
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 8px 0;
  animation: proofTicker 34s linear infinite;
}

.proof-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.proof-ticker span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(54, 115, 91, 0.16);
}

@keyframes proofTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

#desk,
#ledger,
#questions,
#request {
  scroll-margin-top: 92px;
}

.desk-shell {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  padding: 32px 0 16px;
}

.desk-intro,
.desk-stats,
.ledger-board,
.question-wall,
.request-desk,
.footer {
  max-width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 6px 6px 0 rgba(23, 19, 14, 0.1);
}

.desk-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 300px;
  padding: clamp(24px, 5vw, 50px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.78)),
    url("./hero-moving.jpg") center / cover no-repeat;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.desk-intro h1 {
  max-width: 840px;
  margin: 12px 0 0;
  font-size: clamp(2.8rem, 6vw, 5.9rem);
  line-height: 0.88;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.desk-stats {
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 10px;
  padding: 14px;
}

.desk-stats div {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.desk-stats strong {
  font-size: 2rem;
  line-height: 1;
}

.desk-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-spine,
.market-intel,
.scenario-lab,
.desk-map,
.quote-audit,
.source-room-preview,
.page-hero,
.method-ledger,
.article-grid,
.market-matrix,
.source-notes,
.checklist-board,
.audit-board,
.cost-ledger,
.source-system,
.verification-timeline,
.method-crosswalk {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 6px 6px 0 rgba(23, 19, 14, 0.1);
}

.research-spine,
.market-intel,
.scenario-lab,
.desk-map,
.quote-audit,
.source-room-preview {
  margin-bottom: 16px;
  padding: 18px;
}

.spine-title {
  align-items: start;
  margin-bottom: 14px;
}

.spine-title p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.desk-map-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.desk-map-grid a {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.desk-map-grid a:hover {
  border-color: var(--ink);
  box-shadow: inset 0 -4px 0 rgba(54, 115, 91, 0.26);
}

.desk-map-grid span {
  color: var(--red);
  font-weight: 950;
}

.desk-map-grid strong {
  display: block;
  margin-top: auto;
  font-size: 1.12rem;
}

.desk-map-grid small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.research-grid article,
.intel-board article,
.scenario-grid article,
.method-ledger article,
.article-grid article,
.market-matrix article,
.checklist-board article,
.audit-lanes article,
.audit-board article,
.source-system article,
.crosswalk-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.research-grid span,
.scenario-grid span,
.method-ledger span,
.market-matrix span,
.audit-lanes span,
.audit-board span,
.source-system span {
  color: var(--red);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-grid strong,
.intel-board strong,
.scenario-grid strong,
.method-ledger strong,
.market-matrix strong,
.audit-lanes strong,
.audit-board strong,
.source-system strong,
.crosswalk-grid strong {
  display: block;
  margin-top: 14px;
  font-size: 1.04rem;
}

.research-grid p,
.intel-board p,
.scenario-grid p,
.method-ledger p,
.article-grid p,
.market-matrix p,
.source-notes p,
.checklist-board li,
.audit-lanes p,
.audit-board p,
.source-system p,
.verification-timeline p,
.method-crosswalk p,
.cost-ledger li {
  color: var(--muted);
  line-height: 1.5;
}

.market-intel,
.scenario-lab,
.quote-audit,
.source-room-preview,
.method-crosswalk {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
}

.intel-copy h2,
.scenario-lab h2,
.quote-audit h2,
.source-room-copy h2,
.method-crosswalk h2,
.page-hero h1 {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intel-copy p,
.scenario-lab p,
.quote-audit p,
.source-room-copy p,
.page-hero p {
  color: var(--muted);
  line-height: 1.6;
}

.intel-copy a,
.source-notes a,
.quote-audit a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
  text-decoration: none;
}

.intel-board,
.scenario-grid,
.audit-lanes,
.source-room-grid,
.crosswalk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.source-room-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.source-room-grid strong {
  display: block;
  font-size: 1.04rem;
}

.source-room-grid p,
.crosswalk-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.scenario-grid article {
  min-height: 150px;
}

.ledger-board {
  padding: 14px;
}

.ledger-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) repeat(4, minmax(145px, 0.72fr));
  gap: 10px;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(23, 19, 14, 0.28);
  border-radius: var(--radius);
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  text-transform: none;
  letter-spacing: 0;
}

textarea {
  resize: vertical;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
  align-items: start;
}

.ledger-table-wrap,
.record-panel {
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 4px 2px 0;
}

.section-title h2,
.question-copy h2,
.request-desk h2 {
  margin: 5px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

#resultCount {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--muted);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.table-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: visible;
}

.ledger-more {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.ledger-more button {
  min-height: 38px;
  border: 1px solid rgba(23, 19, 14, 0.18);
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.ledger-more button:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.ledger-more button[hidden] {
  display: none;
}

.ledger-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.ledger-table th,
.ledger-table td {
  border-bottom: 1px solid rgba(23, 19, 14, 0.13);
  padding: 12px 10px;
  vertical-align: middle;
  text-align: left;
  overflow-wrap: anywhere;
}

.ledger-table th:nth-child(1) {
  width: 70px;
}

.ledger-table th:nth-child(2) {
  width: 25%;
}

.ledger-table th:nth-child(3) {
  width: 18%;
}

.ledger-table th:nth-child(4) {
  width: 22%;
}

.ledger-table th:nth-child(5) {
  width: 150px;
}

.ledger-table th:nth-child(6) {
  width: 96px;
}

.ledger-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #fff4da;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ledger-table tr:last-child td {
  border-bottom: 0;
}

.ledger-table tr.active td {
  background: #fff8e8;
}

.record-num {
  width: 54px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-weight: 950;
}

.company-cell {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.company-cell img,
.record-image img,
.fallback-mark {
  width: 58px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  object-fit: cover;
}

.company-cell img.media-contain,
.record-image img.media-contain {
  object-fit: contain;
  padding: 7px;
}

.fallback-mark {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.company-cell strong {
  display: block;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.company-cell > span {
  min-width: 0;
}

.company-cell span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.company-cell > span > span {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.22;
}

.fit-list {
  min-width: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #eee7d8;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: normal;
}

.chip.featured {
  color: #fff;
  background: var(--red);
  animation: featuredPulse 2.8s ease-in-out infinite;
}

.chip.good {
  color: #fff;
  background: var(--green);
}

.file-cell strong {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(49, 95, 130, 0.25);
  border-radius: var(--radius);
  padding: 0 7px;
  color: var(--blue);
  background: #eef6f9;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: normal;
}

.file-cell span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.28;
  text-align: center;
  overflow-wrap: normal;
}

.inspect-button {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
  white-space: normal;
}

.inspect-button:hover {
  color: #fff;
  background: var(--ink);
}

@keyframes featuredPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(163, 61, 47, 0);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(163, 61, 47, 0.15);
    transform: translateY(-1px);
  }
}

.record-panel {
  position: sticky;
  top: 92px;
}

.record-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #17130e;
  color: #fff;
  overflow: hidden;
}

.record-image {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
}

.record-image img,
.record-image .fallback-mark {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.record-body {
  padding: 18px;
}

.record-body h3 {
  margin: 10px 0 8px;
  font-size: 1.8rem;
  line-height: 1;
}

.record-body p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

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

.file-digest div {
  min-height: 96px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
}

.file-digest strong,
.file-digest span,
.file-digest small {
  display: block;
}

.file-digest span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-digest strong {
  margin-top: 5px;
  font-size: 1.12rem;
  line-height: 1.05;
}

.file-digest small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
}

.source-links,
.risk-list,
.evidence-shelf,
.record-subgrid ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.source-links a,
.risk-list li {
  display: block;
  border-radius: var(--radius);
  padding: 9px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.source-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.record-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.record-subgrid section,
.mini-credential-table,
.evidence-shelf li {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.record-subgrid section {
  padding: 10px;
}

.record-subgrid h4 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-subgrid li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.mini-credential-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.mini-credential-table th,
.mini-credential-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-align: left;
}

.mini-credential-table th {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 950;
  text-transform: uppercase;
}

.mini-credential-table tr:last-child td {
  border-bottom: 0;
}

.evidence-shelf li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px;
}

.evidence-shelf span {
  grid-row: 1 / span 2;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-shelf strong {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.18;
}

.evidence-shelf small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.25;
}

.empty-row td {
  padding: 24px;
  color: var(--muted);
}

.question-wall,
.request-desk {
  margin-top: 16px;
  padding: 18px;
}

.question-wall {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
}

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

.question-grid article {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.question-grid span {
  color: var(--red);
  font-weight: 950;
}

.question-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 1.08rem;
}

.question-grid p,
.request-desk p {
  color: var(--muted);
  line-height: 1.55;
}

.request-desk {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.request-desk form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.request-desk .full,
.request-desk button,
.form-status {
  grid-column: 1 / -1;
}

.request-desk button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-weight: 950;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 32px;
  padding: 16px;
  color: var(--muted);
}

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

.footer a {
  font-weight: 950;
  text-decoration: none;
}

.page-main {
  padding-top: 24px;
}

.page-hero {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(22px, 5vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.84)),
    url("./hero-moving.jpg") center / cover no-repeat;
}

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

.page-hero h1,
.intel-copy h2,
.scenario-lab h2,
.quote-audit h2,
.source-room-copy h2,
.method-crosswalk h2,
.section-title h2,
.question-copy h2,
.request-desk h2 {
  overflow-wrap: anywhere;
}

.method-ledger,
.article-grid,
.market-matrix,
.source-notes,
.checklist-board,
.audit-board,
.cost-ledger,
.source-system,
.verification-timeline,
.method-crosswalk {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
}

.method-ledger {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.article-grid,
.market-matrix,
.checklist-board,
.audit-board,
.cost-ledger,
.source-system {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-notes,
.verification-timeline {
  grid-template-columns: 1fr;
}

.verification-timeline div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.verification-timeline strong {
  font-size: 1.05rem;
}

.verification-timeline p {
  margin: 0;
}

.article-grid h2,
.source-notes h2,
.checklist-board h2,
.cost-ledger h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.checklist-board ul,
.cost-ledger ul {
  margin: 0;
  padding-left: 18px;
}

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

  .proof-ticker-track,
  .chip.featured {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .desk-shell,
  .workbench,
  .question-wall,
  .request-desk,
  .market-intel,
  .scenario-lab,
  .quote-audit,
  .source-room-preview,
  .method-crosswalk {
    grid-template-columns: 1fr;
  }

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

  .research-grid,
  .method-ledger,
  .desk-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "ticker";
    gap: 8px;
    padding: 10px 12px 0;
    width: 100vw;
    max-width: 100vw;
  }

  .brand {
    width: 100%;
    transform: none;
  }

  .brand > * {
    transform: none;
  }

  .brand,
  .topbar nav {
    max-width: calc(100vw - 24px);
  }

  .topbar nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: hidden;
  }

  .topbar nav a {
    justify-content: center;
    min-height: 34px;
    padding: 0 6px;
    font-size: 0.8rem;
  }

  .proof-ticker {
    margin-left: -12px;
  }

  .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  main,
  .footer {
    width: 100%;
    max-width: 100vw;
    margin-right: 0;
    margin-left: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .desk-shell {
    padding-top: 18px;
  }

  .desk-intro {
    min-height: 360px;
  }

  .desk-intro h1 {
    font-size: clamp(1.95rem, 9vw, 2.55rem);
    line-height: 0.98;
  }

  .page-hero h1,
  .intel-copy h2,
  .scenario-lab h2,
  .quote-audit h2,
  .source-room-copy h2,
  .method-crosswalk h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
    line-height: 1;
  }

  .ledger-toolbar,
  .question-grid,
  .request-desk form,
  .research-grid,
    .intel-board,
    .scenario-grid,
    .audit-lanes,
    .source-room-grid,
    .crosswalk-grid,
    .method-ledger,
    .article-grid,
    .market-matrix,
    .checklist-board,
    .audit-board,
    .cost-ledger,
    .source-system,
    .desk-map-grid {
    grid-template-columns: 1fr;
  }

  .desk-map-grid a {
    min-height: 150px;
  }

  .verification-timeline div {
    grid-template-columns: 1fr;
  }

  .table-scroll {
    border-radius: var(--radius);
    overflow: visible;
  }

  .ledger-table {
    min-width: 0;
    display: block;
  }

  .ledger-table thead {
    display: none;
  }

  .ledger-table tbody {
    display: grid;
    gap: 10px;
  }

  .ledger-table tr {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 4px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
  }

  .ledger-table tr.active {
    background: #fff8e8;
  }

  .ledger-table td {
    border-bottom: 0;
    padding: 4px 0;
  }

  .ledger-table td[data-label="Record"] {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .ledger-table td[data-label="Company"],
  .ledger-table td[data-label="Fit"],
  .ledger-table td[data-label="Verification lanes"],
  .ledger-table td[data-label="File read"],
  .ledger-table td[data-label="Action"] {
    grid-column: 2;
  }

  .ledger-table td[data-label="Fit"]::before,
  .ledger-table td[data-label="Verification lanes"]::before,
  .ledger-table td[data-label="File read"]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .record-num {
    width: 50px;
    height: 44px;
  }

  .company-cell {
    min-width: 0;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .company-cell img,
  .fallback-mark {
    width: 52px;
    height: 44px;
  }

  .company-cell > span > span {
    max-width: 100%;
  }

  .fit-list {
    min-width: 0;
  }

  .file-cell {
    display: grid;
    gap: 6px;
  }

  .file-cell span {
    margin-top: 0;
  }

  .inspect-button {
    width: 100%;
  }

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