:root {
  --paper: #e9edf0;
  --paper-bright: #f8fafb;
  --ink: #14212b;
  --muted: #53616b;
  --line: #b8c1c7;
  --teal: #116b68;
  --teal-dark: #0b4e4c;
  --orange: #c83b20;
  --orange-pale: #f8ded6;
  --green: #12634f;
  --green-pale: #d7ece5;
  --navy: #102b3a;
  --white: #ffffff;
  --display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(calc(100% - 48px), var(--max));
  height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -.08em;
  transform: rotate(-4deg);
}
nav { display: flex; gap: 32px; }
nav a, .header-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, .header-link:hover { color: var(--ink); }
.header-link { justify-self: end; }

.hero {
  width: min(calc(100% - 48px), var(--max));
  min-height: 700px;
  margin: 0 auto;
  padding: 88px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
}
.eyebrow, .section-index, .label, .version, .attempt-id, .network, .verified, .proof-label, .step, .flow-state, .tier, .footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--teal-dark); font-weight: 500; }
.signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(17,107,104,.12); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(64px, 7.5vw, 108px);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.lede { max-width: 680px; margin-bottom: 34px; color: #34434d; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; }
.hero-actions, .closing-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button {
  min-height: 50px;
  padding: 13px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--teal-dark); }
.button-secondary { background: transparent; }
.button-secondary:hover { background: var(--paper-bright); }
.disclaimer { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

.docket {
  position: relative;
  background: var(--paper-bright);
  border: 1px solid #98a5ad;
  box-shadow: 12px 14px 0 var(--navy);
}
.docket::before {
  content: "RELEASE CONTROL";
  position: absolute;
  top: 100px;
  right: -37px;
  color: #7b8992;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  transform: rotate(90deg);
}
.docket-head, .scope-block, .release-attempt, .grant-line { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.docket-head, .attempt-meta, .grant-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.docket-head strong { display: block; margin-top: 5px; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.version { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); }
.label { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 9px; background: #dfe5e8; font-family: var(--mono); font-size: 11px; }
.release-attempt { background: var(--orange-pale); }
.attempt-id { color: #91402d; }
.release-attempt > p { margin: 14px 0 12px; font-family: var(--display); font-size: 27px; line-height: 1.1; text-transform: uppercase; }
.release-attempt ul { margin: 12px 0 0; padding: 0; list-style: none; color: #6a3327; font-size: 12px; }
.release-attempt li + li { margin-top: 5px; }
.release-attempt li::before { content: "— "; }
.decision { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.decision span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; }
.blocked { color: #8f2f1c; }
.blocked span { background: var(--orange); color: var(--white); }
.cleared { margin: 20px 24px; color: var(--green); }
.cleared span { background: var(--green); color: var(--white); }
.grant-line { background: var(--navy); color: #dce9ec; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.proof-strip > div { min-height: 144px; padding: 30px clamp(20px, 4vw, 54px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.proof-strip > div:last-child { border-right: 0; }
.proof-value { font-family: var(--display); font-size: 38px; font-weight: 600; letter-spacing: -.04em; }
.proof-label { color: var(--muted); }

.decision-section, .evidence-section, .memory-section, .closing {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 120px 0;
}
.decision-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(64px, 9vw, 140px); }
.section-index { margin-bottom: 22px; color: var(--teal-dark); }
h2 { margin-bottom: 24px; font-family: var(--display); font-size: clamp(48px, 5.8vw, 78px); font-weight: 600; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; }
.section-intro > p:last-child, .memory-copy > p { max-width: 530px; color: var(--muted); font-size: 17px; }
.decision-flow { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.decision-flow li { min-height: 142px; padding: 25px 0; display: grid; grid-template-columns: 50px 1fr auto; gap: 18px; align-items: start; border-bottom: 1px solid var(--line); }
.step { color: var(--muted); }
.decision-flow h3 { margin-bottom: 6px; font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.decision-flow p { max-width: 520px; margin-bottom: 0; color: var(--muted); font-size: 14px; }
code { font-family: var(--mono); font-size: .92em; }
.flow-state { padding: 6px 8px; border: 1px solid currentColor; white-space: nowrap; }
.flow-state.neutral { color: var(--teal-dark); }
.flow-state.bad { color: #96351f; }
.flow-state.good { color: var(--green); }

.evidence-section { border-top: 1px solid var(--line); }
.section-intro.compact { display: grid; grid-template-columns: .55fr 1fr; column-gap: 60px; }
.section-intro.compact .section-index { grid-row: 1 / span 2; }
.section-intro.compact p:last-child { max-width: 650px; }
.evidence-grid { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.evidence-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: var(--paper-bright); }
.evidence-card.acp-card { border-top: 5px solid var(--teal); }
.evidence-card.x402-card { border-top: 5px solid var(--navy); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 54px; }
.network { color: var(--muted); }
.verified { color: var(--green); }
.verified::before { content: "● "; }
.evidence-card h3 { margin-bottom: 12px; font-family: var(--display); font-size: 46px; line-height: 1; text-transform: uppercase; }
.card-lede { min-height: 78px; max-width: 530px; color: var(--muted); }
dl { margin: 36px 0; border-top: 1px solid var(--line); }
dl div { min-height: 44px; display: grid; grid-template-columns: 1fr 1.6fr; align-items: center; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: 0; font-family: var(--mono); font-size: 12px; }
.evidence-card > a, .text-link { color: var(--teal-dark); font-weight: 600; text-underline-offset: 4px; }

.memory-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 10vw, 150px); align-items: center; border-top: 1px solid var(--line); }
.memory-copy .text-link { display: inline-block; margin-top: 18px; }
.memory-ledger { margin: 0; padding: 0; border: 1px solid #98a5ad; background: var(--paper-bright); list-style: none; }
.memory-ledger > li { min-height: 102px; padding: 20px 24px; display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.memory-ledger > li:last-child { border-bottom: 0; }
.memory-ledger p { margin: 0; color: var(--muted); font-size: 13px; }
.memory-ledger strong { color: var(--ink); font-family: var(--display); font-size: 19px; text-transform: uppercase; }
.tier { width: 74px; padding: 8px 5px; color: var(--white); text-align: center; }
.tier.hot { background: var(--orange); }
.tier.warm { background: var(--teal); }
.tier.cold { background: var(--navy); }
.tier.ref { background: #65727b; }

.closing { min-height: 500px; display: grid; align-content: center; border-top: 1px solid var(--line); }
.closing h2 { max-width: 900px; font-size: clamp(62px, 8vw, 112px); }
.closing-actions { margin-top: 22px; }
.closing-actions .text-link { margin-left: 10px; }
footer { padding: 44px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 30px; background: var(--navy); color: #dce6e9; }
.footer-brand .brand-mark { background: var(--paper); color: var(--navy); }
footer p { margin: 0; color: #b9c8cd; font-size: 12px; }
.footer-meta { justify-self: end; text-align: right; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .docket { max-width: 620px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip > div:nth-child(2) { border-right: 0; }
  .proof-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .decision-section, .memory-section { grid-template-columns: 1fr; }
  .section-intro.compact { display: block; }
}

@media (max-width: 640px) {
  .site-header, .hero, .decision-section, .evidence-section, .memory-section, .closing { width: min(calc(100% - 32px), var(--max)); }
  .site-header { height: 72px; }
  .header-link { font-size: 0; }
  .header-link span { font-size: 18px; }
  .hero { min-height: auto; padding: 60px 0 72px; gap: 54px; }
  h1 { font-size: clamp(56px, 18vw, 78px); }
  .docket { box-shadow: 7px 8px 0 var(--navy); }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-section, .evidence-section, .memory-section, .closing { padding: 82px 0; }
  .decision-flow li { grid-template-columns: 40px 1fr; }
  .flow-state { grid-column: 2; width: max-content; }
  .evidence-grid { grid-template-columns: 1fr; }
  .card-lede { min-height: auto; }
  .memory-ledger > li { grid-template-columns: 78px 1fr; padding-inline: 16px; }
  footer { grid-template-columns: 1fr; padding: 40px 24px; }
  .footer-meta { justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
