:root {
  --paper: #f7f7f5;
  --white: #fff;
  --ink: #110e08;
  --muted: #62625c;
  --rule: #c9c9c1;
  --buy: #ccff00;
  --olive: #477000;
  --halt: #c92e29;
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.58 var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--buy); color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--halt); outline-offset: 4px; }

.case-head,
main,
footer {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}
.case-head {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font: 700 9px/1.3 var(--mono);
  text-transform: uppercase;
}
.case-head > a:last-child { justify-self: end; }
.case-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 900 14px/1 var(--sans);
  text-decoration: none;
}
.case-brand b {
  padding: 5px 10px;
  background: var(--buy);
  font: 800 9px/1 var(--mono);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--olive);
  font: 700 9px/1.45 var(--mono);
  text-transform: uppercase;
}
h1,
h2 { margin: 0; font-weight: 900; letter-spacing: -.055em; line-height: .93; }
h2 { font-size: clamp(42px, 5vw, 72px); }
code { font-family: var(--mono); overflow-wrap: anywhere; }

.case-hero {
  min-height: 740px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  border-bottom: 1px solid var(--ink);
}
.hero-index {
  padding: 82px 28px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
}
.hero-index span { color: var(--olive); font-size: 9px; }
.hero-index strong {
  font-size: 48px;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-copy { padding: 82px 0 74px 64px; }
.hero-copy h1 {
  max-width: 1130px;
  margin-top: 34px;
  font-size: clamp(66px, 9vw, 142px);
  line-height: .82;
}
.hero-copy h1 em { color: var(--olive); font-style: normal; }
.hero-dek {
  max-width: 840px;
  margin: 47px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}
.independence-notice {
  grid-column: 1 / -1;
  min-height: 92px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: minmax(300px, .7fr) 1.3fr;
  align-items: center;
  gap: 34px;
  background: var(--buy);
  border-top: 1px solid var(--ink);
}
.independence-notice strong {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
}
.independence-notice span { font: 700 10px/1.55 var(--mono); text-transform: uppercase; }

.case-intro,
.identity-section,
.address-section,
.pulse-section,
.witness-section,
.machine-section,
.conflict-section,
.request-section { border-bottom: 1px solid var(--ink); }
.case-intro {
  padding: 86px 0;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) 1.28fr;
  gap: 84px;
}
.case-intro h2 { max-width: 520px; margin-top: 28px; }
.intro-copy { max-width: 760px; padding-top: 40px; color: var(--muted); font-size: 19px; }
.intro-copy p { margin: 0 0 19px; }

.identity-section,
.pulse-section { padding: 92px 0; }
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 46px;
}
.identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
  border: 1px solid var(--ink);
}
.identity-primary {
  min-height: 480px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
}
.identity-primary > span { color: var(--buy); font: 700 10px/1.4 var(--mono); text-transform: uppercase; }
.identity-primary > code {
  max-width: 760px;
  margin: auto 0;
  font-size: clamp(21px, 3vw, 43px);
  line-height: 1.25;
}
.identity-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.identity-actions a,
.control-note a,
.witness-links a,
.machine-links a,
.conflict-links a {
  min-height: 43px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  font: 700 8px/1.2 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}
.identity-actions a:first-child { background: var(--buy); color: var(--ink); border-color: var(--buy); }
.evidence-list { margin: 0; }
.evidence-list > div {
  min-height: 120px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
}
.evidence-list > div:last-child { border-bottom: 0; }
.evidence-list dt { color: var(--olive); font: 700 8px/1.5 var(--mono); text-transform: uppercase; }
.evidence-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.evidence-list small { margin-top: 7px; display: block; color: var(--muted); font: 9px/1.55 var(--mono); }
.control-note {
  padding: 28px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  border: 1px solid var(--ink);
  border-top: 0;
}
.control-note strong { font-size: 21px; line-height: 1.1; }
.control-note p { margin: 0; color: var(--muted); }
.control-note div { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }

.address-section {
  min-height: 610px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}
.address-copy { padding: 92px 70px 92px 0; }
.address-copy h2 { margin-top: 30px; font-size: clamp(64px, 7vw, 108px); }
.address-copy p:not(.section-label) { max-width: 590px; margin: 34px 0 25px; color: var(--muted); font-size: 17px; }
.address-copy a { font: 700 9px/1.4 var(--mono); text-transform: uppercase; }
.address-observation {
  padding: 58px;
  display: flex;
  flex-direction: column;
  background: var(--buy);
  border-left: 1px solid var(--ink);
}
.address-observation > span { font: 700 9px/1.4 var(--mono); text-transform: uppercase; }
.address-observation > strong { margin: auto 0; font-size: clamp(110px, 15vw, 230px); letter-spacing: -.08em; line-height: .8; }
.address-observation dl { margin: 40px 0 0; border-top: 1px solid var(--ink); }
.address-observation dl > div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
}
.address-observation dt,
.address-observation dd,
.address-observation small { font: 700 9px/1.45 var(--mono); text-transform: uppercase; }
.address-observation dd { margin: 0; }
.address-observation small { margin-top: 14px; }

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}
.method-card { min-height: 270px; padding: 28px; border-right: 1px solid var(--ink); }
.method-card:last-child { border-right: 0; }
.method-card strong { font-size: 22px; }
.method-card p { margin: 38px 0 0; color: var(--muted); font-size: 15px; }
.pulse-proof {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  border: 1px solid var(--ink);
  border-top: 0;
}
.proof-status {
  min-height: 330px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
}
.proof-status span,
.proof-status small { color: var(--buy); font: 700 9px/1.4 var(--mono); text-transform: uppercase; }
.proof-status strong { margin: auto 0; font-size: clamp(35px, 4vw, 60px); line-height: .95; }
.hash-chain {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  gap: 20px;
  background:
    linear-gradient(90deg, transparent 0 49.8%, var(--rule) 49.8% 50.2%, transparent 50.2%),
    var(--white);
}
.hash-chain span { align-self: end; color: var(--olive); font: 700 8px/1.4 var(--mono); text-transform: uppercase; }
.hash-chain span:first-of-type { grid-column: 1; grid-row: 1; }
.hash-chain span:nth-of-type(2) { grid-column: 3; grid-row: 1; }
.hash-chain code,
.hash-chain a { align-self: start; font: 11px/1.6 var(--mono); overflow-wrap: anywhere; }
#previousHash { grid-column: 1; grid-row: 2; }
#snapshotHash { grid-column: 3; grid-row: 2; }
.hash-chain i {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 64px;
  height: 1px;
  position: relative;
  background: var(--ink);
}
.hash-chain i::after {
  width: 8px;
  height: 8px;
  position: absolute;
  top: -4px;
  right: 0;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}
.snapshot-facts {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
}
.snapshot-facts > div { min-height: 105px; padding: 19px; border-right: 1px solid var(--ink); }
.snapshot-facts > div:last-child { border-right: 0; }
.snapshot-facts dt { color: var(--olive); font: 700 8px/1.4 var(--mono); text-transform: uppercase; }
.snapshot-facts dd { margin: 17px 0 0; font-size: 14px; font-weight: 800; }
.section-link { display: flex; flex-wrap: wrap; gap: 22px; margin: 24px 0 0; font: 700 9px/1.4 var(--mono); text-transform: uppercase; }

.witness-section {
  padding: 92px 0;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
}
.witness-copy h2 { max-width: 580px; margin-top: 28px; }
.witness-copy > p:last-child { max-width: 550px; margin: 32px 0 0; color: var(--muted); font-size: 18px; }
.consent-list { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.consent-list li {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--rule);
}
.consent-list strong { font-size: 16px; }
.consent-list span { color: var(--muted); font-size: 14px; }
.witness-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }

.machine-section {
  padding: 92px 0;
  display: grid;
  grid-template-columns: minmax(360px, .8fr) 1.2fr;
  gap: 70px;
}
.machine-section header h2 { max-width: 610px; margin-top: 28px; }
.machine-section header > p:last-child { max-width: 610px; margin: 32px 0 0; color: var(--muted); font-size: 17px; }
.machine-terminal {
  align-self: start;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.machine-terminal > div {
  min-height: 76px;
  padding: 20px;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #4a493f;
}
.machine-terminal > div:last-child { border-bottom: 0; }
.machine-terminal span { color: var(--buy); font: 700 8px/1.2 var(--mono); }
.machine-terminal code { font-size: 12px; }
.negative-list {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--ink);
  list-style: none;
}
.negative-list li { min-height: 74px; padding: 18px; border-right: 1px solid var(--ink); font: 700 10px/1.4 var(--mono); text-transform: uppercase; }
.negative-list li:last-child { border-right: 0; }
.negative-list li::before { color: var(--halt); content: "×  "; font-size: 15px; }
.machine-note { grid-column: 1; margin: 0; color: var(--muted); font-size: 13px; }
.machine-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.conflict-section {
  padding: 58px;
  display: grid;
  grid-template-columns: 210px 1fr .65fr;
  gap: 50px;
  background: #ebeae4;
}
.conflict-section h2 { font-size: clamp(38px, 4.5vw, 64px); }
.conflict-section p { max-width: 690px; margin: 24px 0 0; color: var(--muted); }
.conflict-links { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 8px; }

.request-section { padding: 112px 0; }
.request-section h2 { max-width: 1140px; margin-top: 30px; font-size: clamp(52px, 7vw, 100px); }
.request-section > p:not(.section-label) { max-width: 820px; margin: 38px 0 0; color: var(--muted); font-size: 19px; }
.request-action {
  min-height: 56px;
  margin-top: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--buy);
  font: 700 9px/1.3 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
}
.request-action:hover { background: var(--ink); color: var(--buy); }

footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font: 700 8px/1.5 var(--mono);
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .case-hero { grid-template-columns: 100px 1fr; min-height: 650px; }
  .hero-copy { padding-left: 42px; }
  .identity-grid,
  .address-section,
  .pulse-proof,
  .witness-section,
  .machine-section,
  .conflict-section { grid-template-columns: 1fr; }
  .identity-primary { min-height: 410px; }
  .address-copy { padding-right: 0; }
  .address-observation { border-top: 1px solid var(--ink); border-left: 0; }
  .address-observation > strong { font-size: 170px; }
  .pulse-grid { grid-template-columns: 1fr; }
  .method-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .method-card:last-child { border-bottom: 0; }
  .hash-chain { min-height: 270px; }
  .witness-links,
  .machine-note,
  .machine-links { grid-column: 1; }
  .witness-links { justify-content: flex-start; }
  .machine-links { justify-content: flex-start; }
  .conflict-section { padding: 46px 0; background: transparent; }
  .conflict-section > .section-label { padding: 12px; background: #ebeae4; }
}

@media (max-width: 720px) {
  .case-head,
  main,
  footer { width: min(100% - 32px, 1440px); }
  .case-head { min-height: 60px; grid-template-columns: 1fr auto; }
  .case-head > span { display: none; }
  .case-hero { min-height: 0; display: block; }
  .hero-index { display: none; }
  .hero-copy { padding: 62px 0 54px; }
  .hero-copy h1 { font-size: clamp(54px, 17vw, 82px); }
  .hero-dek { margin-top: 34px; font-size: 18px; }
  .independence-notice { padding: 20px; grid-template-columns: 1fr; gap: 10px; }
  .case-intro,
  .witness-section,
  .machine-section { padding: 62px 0; grid-template-columns: 1fr; gap: 38px; }
  .case-intro h2,
  .intro-copy { padding-top: 0; }
  .identity-section,
  .pulse-section { padding: 62px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .identity-grid { grid-template-columns: 1fr; }
  .identity-primary { min-height: 350px; padding: 22px; }
  .identity-primary > code { font-size: 22px; }
  .evidence-list > div,
  .control-note { grid-template-columns: 1fr; }
  .control-note div { grid-column: 1; }
  .address-copy { padding: 62px 0; }
  .address-copy h2 { font-size: 72px; }
  .address-observation { padding: 32px 22px; }
  .address-observation > strong { margin: 76px 0; font-size: 130px; }
  .address-observation dl > div { grid-template-columns: 1fr; gap: 4px; }
  .hash-chain { min-height: 330px; padding: 22px; grid-template-columns: 1fr; align-items: start; background: var(--white); }
  .hash-chain span:first-of-type,
  .hash-chain span:nth-of-type(2),
  #previousHash,
  #snapshotHash { grid-column: 1; grid-row: auto; }
  .hash-chain i { display: none; }
  .snapshot-facts { grid-template-columns: 1fr 1fr; }
  .snapshot-facts > div:nth-child(2) { border-right: 0; }
  .snapshot-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .consent-list li { grid-template-columns: 1fr; gap: 5px; }
  .negative-list { grid-template-columns: 1fr 1fr; }
  .negative-list li { border-bottom: 1px solid var(--ink); }
  .negative-list li:nth-child(2n) { border-right: 0; }
  .negative-list li:last-child { border-bottom: 0; }
  .machine-terminal > div { grid-template-columns: 1fr; gap: 8px; }
  .conflict-section { gap: 28px; }
  .request-section { padding: 80px 0; }
  .request-section h2 { font-size: 52px; }
  footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

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

@media print {
  .case-head,
  .request-action,
  .site-nav-shell { display: none !important; }
  body { background: #fff; }
  main,
  footer { width: 100%; }
  a { text-decoration: none; }
  .case-hero { min-height: 600px; }
}
