/* The Ledger Autopsy — a crime-lab case file.
   Two voices held: the machine ledger (JetBrains Mono) and the human verdict
   (Fraunces). The analyst's written memo is Newsreader. Palette: graphite void
   + warm bone ink + one held accent, investigation red. Score runs a cold->hot
   heat scale; fraud is red, healthy is sage. No em-dashes anywhere. */

:root {
  --void: #0b0c0e;
  --void-2: #0e0f12;
  --panel: #131519;
  --panel-2: #181b20;
  --line: #262a30;
  --line-soft: #1d2127;
  --bone: #ece7dd;
  --bone-dim: #c9c3b7;
  --dim: #948e82;
  --faint: #625d54;
  --blood: #ff453a;
  --blood-deep: #b3271e;
  --blood-glow: rgba(255, 69, 58, 0.14);
  --sage: #6fae8f;
  --amber: #d9a441;
  --slate: #5f8496;
  --disp: "Fraunces", Georgia, serif;
  --read: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--mono);
  background:
    radial-gradient(
      1000px 560px at 84% -10%,
      rgba(255, 69, 58, 0.05),
      transparent 60%
    ),
    linear-gradient(180deg, var(--void) 0%, var(--void-2) 100%);
  color: var(--bone);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
  position: relative;
  z-index: 1;
}
b {
  color: #fff;
  font-weight: 600;
}
.hidden {
  display: none !important;
}

/* ---------- nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.82);
  -webkit-backdrop-filter: blur(13px) saturate(1.1);
  backdrop-filter: blur(13px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--blood);
}
.logo-mark {
  width: 42px;
  height: 21px;
  flex-shrink: 0;
}
.logo-word {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 18px;
  color: var(--bone);
  letter-spacing: -0.01em;
}
.logo-word em {
  color: var(--blood);
  font-style: italic;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.16s;
}
.nav-links a:hover {
  color: var(--bone);
}
.nav-git {
  color: #22c55e !important;
  font-weight: 500;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 6px 11px;
  border-radius: 6px;
}
.nav-git:hover {
  background: rgba(34, 197, 94, 0.12);
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-git) {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(38px, 6.5vw, 70px) 0 34px;
  position: relative;
  overflow: hidden;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--blood);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--blood-deep);
}
.hero h1 {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--blood);
  font-weight: 700;
}
.hero .dek {
  margin-top: 22px;
  max-width: 640px;
  font-family: var(--read);
  font-size: 19px;
  line-height: 1.6;
  color: var(--bone-dim);
}
.hero .dek b {
  color: #fff;
  font-weight: 500;
}

/* ---------- the confusion-matrix board ---------- */
.board {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.board-load {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  padding: 20px 0;
}
.matrix {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px 20px 20px;
}
.matrix-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.mx {
  display: grid;
  grid-template-columns: 68px 1fr 1fr;
  grid-template-rows: 26px 1fr 1fr;
  gap: 6px;
}
.mx-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mx-lbl.side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.mx-cell {
  border-radius: 9px;
  padding: 12px 12px 11px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 78px;
}
.mx-cell .n {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
}
.mx-cell .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.mx-cell .d {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  margin-top: auto;
}
.mx-cell.tp {
  border-color: rgba(111, 174, 143, 0.5);
}
.mx-cell.tp .n {
  color: var(--sage);
}
.mx-cell.tn {
  border-color: rgba(111, 174, 143, 0.35);
}
.mx-cell.tn .n {
  color: var(--sage);
}
.mx-cell.fp {
  border-color: rgba(217, 164, 65, 0.55);
  background: rgba(217, 164, 65, 0.05);
}
.mx-cell.fp .n {
  color: var(--amber);
}
.mx-cell.fn {
  border-color: rgba(255, 69, 58, 0.55);
  background: rgba(255, 69, 58, 0.05);
}
.mx-cell.fn .n {
  color: var(--blood);
}
.scorecol {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat .sv {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--bone);
}
.stat .sk {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 5px;
}
.stat .sd {
  font-family: var(--read);
  font-size: 13px;
  color: var(--faint);
  margin-top: 4px;
  line-height: 1.45;
}
@media (max-width: 820px) {
  .board {
    grid-template-columns: 1fr;
  }
  .scorecol {
    flex-direction: row;
  }
}
@media (max-width: 520px) {
  .scorecol {
    flex-direction: column;
  }
}

/* ---------- section heads ---------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 16px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.sec-head .sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ---------- the ledger ---------- */
.ledger-head,
.row {
  display: grid;
  grid-template-columns: 40px 1fr 200px 92px 118px 132px 22px;
  align-items: center;
  gap: 14px;
}
.ledger-head {
  padding: 0 8px 9px;
  border-bottom: 1px solid var(--line);
}
.ledger-head span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.ledger {
  border-bottom: 1px solid var(--line-soft);
}
.row {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 15px 8px;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  background: none;
  transition:
    background 0.16s,
    padding-left 0.16s;
  position: relative;
}
.row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blood);
  transform: scaleY(0);
  transition: transform 0.18s;
}
.row:hover {
  background: linear-gradient(90deg, rgba(255, 69, 58, 0.045), transparent 72%);
  padding-left: 14px;
}
.row:hover::before {
  transform: scaleY(1);
}
.row:hover .r-name {
  color: var(--blood);
}
.row:hover .r-go {
  transform: translateX(3px);
  color: var(--blood);
}
.r-rank {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
}
.r-name {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bone);
  transition: color 0.16s;
}
.r-name .r-sector {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0;
  color: var(--dim);
  margin-top: 4px;
}
.r-score {
  display: flex;
  align-items: center;
  gap: 10px;
}
.r-track {
  flex: 1;
  height: 7px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
  position: relative;
}
.r-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
}
.r-scoreval {
  font-family: var(--mono);
  font-size: 14px;
  width: 24px;
  text-align: right;
  color: var(--bone);
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  display: inline-block;
  white-space: nowrap;
}
.tag.flag {
  color: var(--blood);
  border-color: rgba(255, 69, 58, 0.4);
  background: var(--blood-glow);
}
.tag.clear {
  color: var(--dim);
}
.tag.fraud {
  color: var(--blood);
  border-color: rgba(255, 69, 58, 0.4);
}
.tag.healthy {
  color: var(--sage);
  border-color: rgba(111, 174, 143, 0.35);
}
.r-result {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.r-result .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.cell-tp .dot,
.cell-tn .dot {
  background: var(--sage);
}
.cell-fp .dot {
  background: var(--amber);
}
.cell-fn .dot {
  background: var(--blood);
}
.cell-tp,
.cell-tn {
  color: var(--sage);
}
.cell-fp {
  color: var(--amber);
}
.cell-fn {
  color: var(--blood);
}
.r-go {
  font-family: var(--mono);
  color: var(--faint);
  text-align: right;
  transition:
    transform 0.16s,
    color 0.16s;
}
@media (max-width: 860px) {
  .ledger-head {
    display: none;
  }
  .row {
    grid-template-columns: 30px 1fr 76px 22px;
    row-gap: 8px;
  }
  .r-score,
  .r-detector {
    display: none;
  }
  .r-result span:not(.dot) {
    display: none;
  }
}

/* ---------- the case autopsy ---------- */
.case {
  padding: 8px 0 60px;
}
.back {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--bone);
  background: var(--panel-2);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 9px 15px;
  border-radius: 40px;
  margin-bottom: 20px;
  transition: all 0.16s;
}
.back:hover {
  border-color: var(--blood);
  color: var(--blood);
  transform: translateX(-3px);
}
.dossier {
  animation: fade 0.5s both;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* case header */
.c-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.c-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blood);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.c-eyebrow .muted {
  color: var(--faint);
}
.c-name {
  font-family: var(--disp);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 10px 0 0;
}

/* verdict banner */
.verdict {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 22px 0 4px;
}
.v-box {
  background: var(--panel);
  padding: 16px 18px;
}
.v-box .vk {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.v-box .vv {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.05;
}
.v-box .vs {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  margin-top: 3px;
}
.v-flag {
  color: var(--blood);
}
.v-clear {
  color: var(--dim);
}
.v-fraud {
  color: var(--blood);
}
.v-healthy {
  color: var(--sage);
}
.v-box.result-cell {
  background: var(--panel-2);
}
.v-tp .vv,
.v-tn .vv {
  color: var(--sage);
}
.v-fp .vv {
  color: var(--amber);
}
.v-fn .vv {
  color: var(--blood);
}
@media (max-width: 640px) {
  .verdict {
    grid-template-columns: 1fr;
  }
}

/* EKG timeline */
.ekg {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 15px,
      rgba(255, 255, 255, 0.012) 15px 16px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 15px,
      rgba(255, 255, 255, 0.012) 15px 16px
    ),
    var(--panel);
  padding: 18px 20px 14px;
}
.ekg-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ekg svg {
  width: 100%;
  height: 128px;
  display: block;
  margin-top: 8px;
  overflow: visible;
}
.ekg-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 1.8s ease-out 0.15s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.ekg-flat {
  stroke: var(--blood);
}
.ekg-live {
  stroke: var(--sage);
}
.ekg-axis {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--faint);
}
.ekg-collapse {
  fill: var(--blood);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* section label */
.c-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 34px 0 14px;
}

/* the memo */
.memo {
  font-family: var(--read);
  font-size: 21px;
  line-height: 1.62;
  color: var(--bone);
  border-left: 2px solid var(--blood-deep);
  padding-left: 22px;
  max-width: 680px;
}
.memo-sign {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-top: 14px;
  letter-spacing: 0.03em;
}

/* signal readout */
.signals {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.sig {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 3px solid var(--faint);
  background: var(--panel);
}
.sig:last-child {
  border-bottom: none;
}
.sig.green {
  border-left-color: var(--sage);
}
.sig.amber {
  border-left-color: var(--amber);
}
.sig.red {
  border-left-color: var(--blood);
}
.sig-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.sig-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}
.sig-right {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.sig-val {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
}
.sig.green .sig-val {
  color: var(--sage);
}
.sig.amber .sig-val {
  color: var(--amber);
}
.sig.red .sig-val {
  color: var(--blood);
}
.sig-pts {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}
.sig-explain {
  font-family: var(--read);
  font-size: 15px;
  line-height: 1.5;
  color: var(--dim);
  margin: 8px 0 11px;
  max-width: 660px;
}
.sig-cites {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* citation chip — the signature */
.cite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1;
  color: var(--blood);
  text-decoration: none;
  background: var(--blood-glow);
  border: 1px solid rgba(255, 69, 58, 0.32);
  padding: 3px 7px;
  border-radius: 5px;
  vertical-align: 1px;
  white-space: nowrap;
  transition: all 0.14s;
}
.cite:hover {
  background: var(--blood);
  color: #14060a;
  border-color: var(--blood);
}
.cite .pin {
  font-size: 9px;
}

/* qualitative flags */
.qual {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.qflag {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}
.qflag:last-child {
  border-bottom: none;
}
.qflag .qw {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  color: var(--blood);
  line-height: 1;
}
.qflag .qw small {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-weight: 400;
  margin-top: 4px;
}
.qflag .ql {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--bone);
  text-transform: uppercase;
}
.qflag .qn {
  font-family: var(--read);
  font-size: 15px;
  line-height: 1.5;
  color: var(--dim);
  margin-top: 5px;
}

/* outcome reveal (redaction wipe) */
.outcome {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 22px 24px;
  margin-top: 4px;
}
.outcome h3 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.redact {
  position: relative;
  cursor: pointer;
}
.redact .under {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--bone);
  letter-spacing: -0.01em;
}
.redact .under .accent {
  color: var(--blood);
}
.redact .bar {
  position: absolute;
  inset: -3px -6px;
  background: #05060700;
  background-image: repeating-linear-gradient(
    45deg,
    #0a0b0d,
    #0a0b0d 8px,
    #121316 8px,
    #121316 16px
  );
  border-radius: 4px;
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1);
  clip-path: inset(0 0 0 0);
  display: flex;
  align-items: center;
  padding-left: 12px;
}
.redact .bar span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blood);
}
.redact.open .bar {
  clip-path: inset(0 100% 0 0);
}
.outcome .what {
  font-family: var(--read);
  font-size: 16px;
  line-height: 1.55;
  color: var(--dim);
  margin-top: 14px;
  max-width: 680px;
}

/* financials table */
.fin {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--panel);
}
.fin table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
  min-width: 460px;
}
.fin th,
.fin td {
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.fin th:first-child,
.fin td:first-child {
  text-align: left;
  color: var(--dim);
}
.fin thead th {
  color: var(--blood);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.fin tbody tr:last-child td {
  border-bottom: none;
}
.fin td {
  color: var(--bone);
}
.fin-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  margin-top: 8px;
  line-height: 1.5;
}
.fin-note a {
  color: var(--blood);
  text-decoration: none;
}

/* honesty note per case */
.c-honesty {
  margin-top: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(217, 164, 65, 0.03);
  padding: 18px 22px;
}
.c-honesty h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.c-honesty p {
  font-family: var(--read);
  font-size: 15px;
  line-height: 1.55;
  color: var(--dim);
  max-width: 680px;
}

/* ---------- method ---------- */
.method {
  border-top: 1px solid var(--line);
  padding: 52px 0 20px;
  margin-top: 46px;
}
.method h2,
.limits h2 {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.method .sub {
  font-family: var(--read);
  font-size: 17px;
  color: var(--dim);
  margin-bottom: 26px;
  max-width: 640px;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.m-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 22px;
}
.m-card h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 10px;
}
.m-card p {
  font-family: var(--read);
  font-size: 15px;
  color: var(--dim);
  line-height: 1.55;
}
.method-links {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.method-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: #14060a;
  background: var(--blood);
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 7px;
  font-weight: 500;
  transition: opacity 0.16s;
}
.method-links a.ghost {
  background: none;
  color: var(--blood);
  border: 1px solid var(--blood-deep);
}
.method-links a:hover {
  opacity: 0.85;
}

/* ---------- limits ---------- */
.limits {
  padding: 46px 0 30px;
}
.limit-list {
  list-style: none;
  display: grid;
  gap: 4px;
  max-width: 820px;
}
.limit-list li {
  font-family: var(--read);
  font-size: 16px;
  line-height: 1.55;
  color: var(--dim);
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.limit-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}
.limit-list b {
  color: var(--bone);
  font-weight: 500;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 54px;
}
.foot-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--read);
  font-size: 16px;
  color: var(--dim);
}
.foot-main b {
  color: var(--bone);
}
.foot-dot {
  color: var(--faint);
}
.foot-netryse {
  color: #22c55e;
  text-decoration: none;
  font-weight: 500;
}
.foot-netryse:hover {
  text-decoration: underline;
}
.foot-fine {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  line-height: 1.6;
}
.foot-fine a {
  color: var(--blood);
  text-decoration: none;
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }
  .hero h1 {
    font-size: clamp(34px, 11vw, 52px);
  }
  .memo {
    font-size: 18px;
  }
  .sig-val {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ekg-line {
    animation: none;
    stroke-dashoffset: 0;
  }
  .dossier {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- feedback pass: de-AI polish, hover story, sleek footer ---------- */

/* hero: how-it-works button */
.hero-cta {
  margin-top: 24px;
}
.btn-how {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--bone);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.16s;
}
.btn-how:hover {
  border-color: var(--blood);
  color: var(--blood);
  transform: translateY(1px);
}

/* ledger: each entry expands on hover to tell the story */
.led-item {
  border-bottom: 1px solid var(--line-soft);
}
.led-item .row {
  border-bottom: none;
}
.led-more {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.25s ease;
  opacity: 0;
  padding: 0 8px 0 20px;
}
.led-item:hover .led-more,
.led-item:focus-within .led-more {
  max-height: 130px;
  opacity: 1;
  padding-bottom: 15px;
}
.led-more .teaser {
  font-family: var(--read);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bone-dim);
  max-width: 660px;
}
.led-links {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.learn-btn {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bone);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 6px 11px;
  border-radius: 6px;
  transition: all 0.15s;
}
.learn-btn:hover {
  border-color: var(--blood);
  color: var(--blood);
}
.learn-btn.watch::before {
  content: "▸ ";
  color: var(--blood);
}
@media (max-width: 860px) {
  .led-item:hover .led-more,
  .led-item:focus-within .led-more {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
  }
}

/* case view: learn links in the outcome block */
.outcome-links {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* method: more digestible cards */
.method-grid {
  grid-template-columns: repeat(auto-fit, minmax(304px, 1fr));
  gap: 16px;
}
.m-card {
  padding: 24px 24px 26px;
  transition:
    border-color 0.16s,
    transform 0.16s;
}
.m-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}
.m-card h4 {
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--blood);
}
.m-card p {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--bone-dim);
}
.limit-list li {
  font-size: 16.5px;
  line-height: 1.6;
  padding: 16px 0 16px 26px;
  color: var(--bone-dim);
}

/* ---------- sleek footer (matches the sibling projects) ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 24px 0 48px;
  margin-top: 8px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  letter-spacing: 0.03em;
}
.foot-left b {
  color: var(--bone);
  font-weight: 600;
}
.foot-data {
  opacity: 0.7;
}
.foot-right {
  color: var(--dim);
}
.nr {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 0;
}
.nr:hover {
  border-bottom: 1px solid #22c55e;
}
.foot-fine {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.6;
}
.foot-fine a {
  color: var(--blood);
  text-decoration: none;
}
@media (max-width: 620px) {
  .foot-inner {
    justify-content: flex-start;
  }
  .foot-data {
    display: none;
  }
}

/* ---------- feedback pass 2: scannable method + case story band ---------- */

/* numbered steps (mirrors the sibling projects' clean hierarchy) */
.steps {
  counter-reset: s;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}
.steps li {
  position: relative;
  padding: 18px 20px 18px 58px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-family: var(--read);
  font-size: 16px;
  line-height: 1.55;
  color: var(--bone-dim);
  transition: border-color 0.16s;
}
.steps li:hover {
  border-color: rgba(255, 69, 58, 0.4);
}
.steps li::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 17px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--blood);
}
.steps li b {
  color: var(--bone);
  font-weight: 600;
  font-family: var(--disp);
  font-size: 17px;
}

/* case: the story band up top (what this actually was) */
.case-story {
  margin: 20px 0 4px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blood);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 18px 22px 20px;
}
.case-story .cs-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 9px;
}
.case-story .cs-line {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 720px;
}
.case-story .cs-links {
  display: flex;
  gap: 9px;
  margin-top: 15px;
  flex-wrap: wrap;
}

/* stronger, unmistakable ledger hover */
.led-item {
  border-left: 2px solid transparent;
  transition: background 0.16s;
}
.led-item:hover,
.led-item:focus-within {
  background: linear-gradient(90deg, rgba(255, 69, 58, 0.05), transparent 78%);
  border-left-color: var(--blood-deep);
}
.led-more .teaser::before {
  content: "▸ ";
  color: var(--blood);
  font-size: 12px;
}
