/* Critique. Noir. Palette sampled directly from the hero artwork. */

:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --panel: #0e0e0e;
  --panel-soft: rgba(255, 255, 255, 0.028);
  --ink: #f4f4f4;
  --muted: #b3b3b3;
  --muted-2: #8a8a8a;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.24);

  --red: #ce0b17;
  --red-deep: #a81519;
  --red-bright: #e8202c;

  --pass: #6fbf7a;
  --pass-bg: rgba(111, 191, 122, 0.1);
  --fail: var(--red);
  --fail-bg: rgba(206, 11, 23, 0.12);
  --warn: #d8a75a;
  --warn-bg: rgba(216, 167, 90, 0.1);

  --display: Anton, "Arial Narrow", sans-serif;
  --product: Inter, sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --nav-h: 66px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--product);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- atoms ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 20px;
}
.eyebrow .dot { color: var(--red); }
.eyebrow.red { color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--product);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn.solid:hover { background: var(--red-bright); border-color: var(--red-bright); }

/* ---------- navigation ---------- */

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.nav .mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.05em;
}
.nav .mark em { font-style: normal; color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links .txt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 10px 12px;
}
.nav-links .txt:hover { color: var(--ink); }
.nav-links .btn { padding: 11px 18px; font-size: 11px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--pad);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: 0;
}
/* The copy sits over the window and ashtray, which carry detail. Hold the left
   third at near-black so the type keeps its contrast, then release the scrim
   before the claim form so the evidence stays legible. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #000 0%, #000 30%, rgba(0,0,0,0.96) 46%, rgba(0,0,0,0.82) 56%, rgba(0,0,0,0.38) 68%, rgba(0,0,0,0.08) 80%, rgba(0,0,0,0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 68%, rgba(0,0,0,0.8) 100%);
}

.hero-copy { position: relative; z-index: 2; max-width: 560px; }

.wordmark {
  font-family: var(--display);
  font-size: clamp(72px, 12.5vw, 168px);
  line-height: 0.86;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.wordmark em { font-style: normal; color: var(--red); }

.rule {
  width: 68px;
  height: 5px;
  background: var(--red);
  margin: 26px 0 30px;
}

.hero-head {
  font-family: var(--product);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero-head .prove { color: var(--red); display: block; }

.hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 36px;
}
.hero-sub .accent { color: var(--red); font-weight: 600; }

.actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: clamp(40px, 9vw, 64px); }
  .hero-art { object-position: 68% center; opacity: 0.38; }
  .hero-scrim {
    background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.88) 58%, #000 100%);
  }
}

/* ---------- sections ---------- */

section { padding: clamp(48px, 7vw, 92px) var(--pad); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1180px; margin: 0 auto; }
.section-head {
  font-family: var(--product);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}
.section-head em { font-style: normal; color: var(--red); }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--bg); padding: 32px 28px; }
.stat .n {
  font-family: var(--display);
  font-size: clamp(52px, 6.5vw, 76px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 16px 0 12px;
}
.stat.red .n { color: var(--red); }
.stat p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- numbered steps ---------- */

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.stepcard { border-top: 2px solid var(--red); padding-top: 22px; }
.stepcard .num {
  font-family: var(--display);
  font-size: 26px;
  color: var(--red);
  display: block;
  margin-bottom: 12px;
}
.stepcard h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.stepcard p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ---------- ledger ---------- */

.list { display: flex; flex-direction: column; gap: 10px; }
.list a {
  display: block;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  padding: 20px 22px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.list a:hover { border-color: var(--line-strong); border-left-color: var(--red); background: var(--panel); }

.row-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sid { font-family: var(--mono); font-size: 12px; color: var(--muted-2); word-break: break-all; }
.claim { font-size: 17px; font-weight: 600; margin: 12px 0 4px; letter-spacing: -0.01em; }
.claim.muted { font-weight: 400; color: var(--muted); }
.meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted-2); margin-top: 10px; }

.pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill.passed { background: var(--pass-bg); color: var(--pass); border-color: rgba(111, 191, 122, 0.3); }
.pill.failed { background: var(--fail-bg); color: var(--red-bright); border-color: rgba(206, 11, 23, 0.4); }
.pill.owed, .pill.timeout, .pill.error { background: var(--warn-bg); color: var(--warn); border-color: rgba(216, 167, 90, 0.3); }
.pill.authored, .pill.skipped { background: var(--panel-soft); color: var(--muted-2); border-color: var(--line); }

.hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 12px;
}

/* ---------- detail ---------- */

.mono {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 20px 22px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.mono.excerpt { margin-top: 14px; max-height: 9em; overflow: auto; }

.steps { display: flex; flex-direction: column; gap: 8px; }
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  padding: 13px 16px;
  font-size: 14px;
}
.step .i { font-family: var(--mono); font-size: 11px; color: var(--muted-2); min-width: 18px; }
.step .what { flex: 1; word-break: break-word; color: var(--muted); }

.back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 28px;
}
.back:hover { color: var(--red); }

h1.sid-title {
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  word-break: break-all;
  margin: 0 0 32px;
}

.empty { border: 1px dashed var(--line); padding: 30px; color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }

.closing {
  padding: 38px var(--pad);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.closing .dot { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
