@font-face {
  font-family: "SignedData Sans";
  src: local("Inter"), local("Avenir Next"), local("Segoe UI");
}

:root {
  color-scheme: light;
  --paper: #f4f2e9;
  --paper-deep: #e9e5d8;
  --card: #fffef9;
  --ink: #182019;
  --muted: #60685f;
  --line: #cfcdbf;
  --forest: #173c2f;
  --forest-soft: #285746;
  --lime: #d7ff72;
  --coral: #ff7355;
  --blue: #8eb1ff;
  --gold: #f4c659;
  --danger: #a13b2e;
  --shadow: 0 18px 60px rgb(22 42 31 / 10%);
  --radius: 22px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", monospace;
  --sans: "SignedData Sans", Inter, "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgb(215 255 114 / 28%), transparent 24rem),
    radial-gradient(circle at 86% 28%, rgb(142 177 255 / 22%), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  background-image: linear-gradient(rgb(23 60 47 / 4%) 1px, transparent 1px), linear-gradient(90deg, rgb(23 60 47 / 4%) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 42rem);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--lime);
  border-radius: 0 0 10px 10px;
  color: var(--forest);
  font-weight: 800;
  left: 1rem;
  padding: .65rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgb(244 242 233 / 82%);
  border-bottom: 1px solid rgb(23 60 47 / 13%);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 72px;
  padding: .7rem 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.02rem;
  font-weight: 850;
  gap: .7rem;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: 34px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: .25rem;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  padding: .55rem .8rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgb(23 60 47 / 9%);
  color: var(--forest);
}

.nav-github {
  border: 1px solid var(--forest);
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  padding-inline: 1.25rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr);
  min-height: 700px;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.eyebrow {
  align-items: center;
  color: var(--forest-soft);
  display: flex;
  font-size: .75rem;
  font-weight: 850;
  gap: .65rem;
  letter-spacing: .16em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--coral);
  border-radius: 50%;
  content: "";
  height: 9px;
  width: 9px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  font-size: clamp(3.4rem, 7.2vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .91;
  margin: 0;
  max-width: 780px;
}

.hero h1 em {
  color: var(--forest);
  font-style: normal;
  position: relative;
}

.hero h1 em::after {
  background: var(--lime);
  bottom: .02em;
  content: "";
  height: .16em;
  left: -.03em;
  position: absolute;
  transform: rotate(-1.2deg);
  width: 102%;
  z-index: -1;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
  margin: 1.7rem 0 0;
  max-width: 620px;
}

.hero-actions,
.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.8rem;
}

.button {
  align-items: center;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: .93rem;
  font-weight: 800;
  gap: .5rem;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1.15rem;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  box-shadow: 0 8px 24px rgb(23 60 47 / 18%);
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(.7);
  opacity: .48;
}

.button:disabled:hover {
  box-shadow: none;
  transform: none;
}

.button.secondary {
  background: transparent;
  color: var(--forest);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #25120e;
}

.hero-notes {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .82rem;
  font-weight: 700;
  gap: .9rem;
  margin-top: 1.4rem;
}

.hero-notes span::before {
  color: var(--forest);
  content: "✓";
  font-weight: 900;
  margin-right: .35rem;
}

.token-card {
  background: var(--forest);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 30px;
  box-shadow: 0 34px 80px rgb(23 60 47 / 24%);
  color: white;
  overflow: hidden;
  padding: 1.15rem;
  position: relative;
  transform: rotate(1.1deg);
}

.token-card::after {
  background: var(--lime);
  border-radius: 50%;
  content: "";
  filter: blur(60px);
  height: 170px;
  opacity: .16;
  position: absolute;
  right: -45px;
  top: -50px;
  width: 170px;
}

.window-bar {
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  display: flex;
  gap: .4rem;
  padding: .2rem .2rem .95rem;
}

.window-dot {
  background: var(--coral);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.window-dot:nth-child(2) { background: var(--gold); }
.window-dot:nth-child(3) { background: var(--lime); }

.window-label {
  color: rgb(255 255 255 / 56%);
  font-family: var(--mono);
  font-size: .68rem;
  margin-left: auto;
}

.token-visual {
  display: grid;
  gap: .65rem;
  padding: 1rem .15rem .2rem;
}

.token-piece {
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 15px;
  display: grid;
  gap: .2rem;
  grid-template-columns: 88px 1fr;
  padding: .8rem;
}

.token-piece strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.token-piece code {
  color: rgb(255 255 255 / 76%);
  font-family: var(--mono);
  font-size: .73rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-seal {
  align-items: center;
  background: var(--lime);
  border-radius: 999px;
  color: var(--forest);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  gap: .45rem;
  margin: .85rem .2rem .2rem;
  padding: .45rem .7rem;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2.3rem;
}

.section h2,
.article-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 880;
  letter-spacing: -.055em;
  line-height: .98;
  margin: 0;
  max-width: 800px;
}

.section-head > p {
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}

.workbench {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
  overflow: hidden;
}

.workbench-form,
.workbench-output {
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.workbench-form {
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
}

.panel-kicker {
  color: var(--forest-soft);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: .42rem;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  color: var(--forest);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .02em;
}

.field small {
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.4;
}

.field input,
.field select,
.field textarea,
.token-area {
  background: var(--card);
  border: 1px solid #bcbcaf;
  border-radius: 12px;
  color: var(--ink);
  min-width: 0;
  padding: .72rem .8rem;
  width: 100%;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.format-hint {
  background: rgb(23 60 47 / 8%);
  border-radius: 10px;
  color: var(--forest-soft);
  font-family: var(--mono);
  font-size: .71rem;
  margin-top: .5rem;
  padding: .55rem .7rem;
}

.output-toolbar {
  align-items: center;
  display: flex;
  gap: .6rem;
  justify-content: space-between;
  margin-bottom: .85rem;
}

.output-toolbar h3 {
  font-size: 1.15rem;
  margin: 0;
}

.state {
  align-items: center;
  background: #ecebe4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: .69rem;
  font-weight: 900;
  gap: .4rem;
  letter-spacing: .05em;
  padding: .38rem .62rem;
  text-transform: uppercase;
}

.state::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.state.untrusted { color: #8a5a00; background: #fff3cf; border-color: #e8c762; }
.state.verified { color: #165c3c; background: #dcf8df; border-color: #8fd299; }
.state.failed { color: var(--danger); background: #ffe5df; border-color: #e9a095; }

.token-area {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.55;
  min-height: 112px;
  resize: vertical;
  word-break: break-all;
}

.compact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0 1.25rem;
}

.compact-buttons .button {
  font-size: .77rem;
  min-height: 36px;
  padding: .43rem .72rem;
}

.segments {
  display: grid;
  gap: .5rem;
  grid-template-columns: .55fr 1.25fr 1fr 1.25fr;
  margin: 1.1rem 0;
}

.segment {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  padding: .65rem;
}

.segment:nth-child(1) { background: #e7f4ff; }
.segment:nth-child(2) { background: #effbd4; }
.segment:nth-child(3) { background: #fff0e9; }
.segment:nth-child(4) { background: #eee9ff; }

.segment strong {
  display: block;
  font-size: .65rem;
  letter-spacing: .06em;
  margin-bottom: .28rem;
  text-transform: uppercase;
}

.segment code {
  display: block;
  font-family: var(--mono);
  font-size: .65rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decoded-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1.2fr .8fr;
}

.decoded {
  background: #1c241e;
  border-radius: 14px;
  color: #eaf2e9;
  min-width: 0;
  overflow: hidden;
}

.decoded h4 {
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  color: var(--lime);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  margin: 0;
  padding: .65rem .75rem;
  text-transform: uppercase;
}

.decoded pre {
  font-family: var(--mono);
  font-size: .69rem;
  line-height: 1.55;
  margin: 0;
  max-height: 190px;
  min-height: 90px;
  overflow: auto;
  padding: .75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.live-message {
  color: var(--muted);
  font-size: .78rem;
  margin: .8rem 0 0;
  min-height: 1.4em;
}

.three-up,
.guide-grid,
.pattern-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.guide-card,
.pattern-card {
  background: rgb(255 254 249 / 78%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.feature-number {
  align-items: center;
  background: var(--forest);
  border-radius: 12px;
  color: var(--lime);
  display: inline-flex;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.feature-card h3,
.guide-card h3,
.pattern-card h3 {
  font-size: 1.12rem;
  letter-spacing: -.025em;
  margin: 1.05rem 0 .45rem;
}

.feature-card p,
.guide-card p,
.pattern-card p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

.feature-card code,
.prose code {
  background: rgb(23 60 47 / 9%);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: .86em;
  padding: .12em .35em;
}

.code-split {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.code-card {
  background: #1c241e;
  border-radius: var(--radius);
  color: #eaf2e9;
  overflow: hidden;
}

.code-card header {
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  display: flex;
  justify-content: space-between;
  padding: .8rem 1rem;
}

.code-card header strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: .73rem;
}

.code-card header span {
  color: rgb(255 255 255 / 52%);
  font-size: .7rem;
}

.code-card pre {
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.65;
  margin: 0;
  overflow: auto;
  padding: 1.2rem;
}

.callout {
  align-items: center;
  background: var(--lime);
  border-radius: 28px;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  padding: clamp(1.7rem, 4vw, 3.5rem);
}

.callout h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin: 0 0 .5rem;
}

.callout p {
  color: var(--forest-soft);
  margin: 0;
  max-width: 680px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding-block: 2.5rem;
}

.footer-shell {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .82rem;
  gap: 1rem;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.article-hero {
  padding-block: clamp(4rem, 9vw, 7rem) 3.5rem;
}

.article-hero .lede {
  max-width: 760px;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
}

.toc {
  background: rgb(255 254 249 / 72%);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: .15rem;
  padding: .8rem;
  position: sticky;
  top: 92px;
}

.toc strong {
  color: var(--forest-soft);
  font-size: .68rem;
  letter-spacing: .09em;
  padding: .4rem .55rem;
  text-transform: uppercase;
}

.toc a {
  border-radius: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  padding: .45rem .55rem;
  text-decoration: none;
}

.toc a:hover {
  background: rgb(23 60 47 / 8%);
  color: var(--forest);
}

.prose {
  min-width: 0;
}

.prose section {
  border-top: 1px solid var(--line);
  padding: 2.7rem 0;
}

.prose section:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -.045em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 2rem 0 .6rem;
}

.prose p,
.prose li {
  color: #454d45;
}

.prose a {
  color: var(--forest);
  font-weight: 750;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose pre {
  background: #1c241e;
  border-radius: 16px;
  color: #eaf2e9;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.65;
  overflow: auto;
  padding: 1.15rem;
}

.note,
.warning {
  border-left: 5px solid var(--forest);
  border-radius: 0 12px 12px 0;
  margin: 1.4rem 0;
  padding: .9rem 1rem;
}

.note { background: #e8f4dc; }
.warning { background: #ffe9df; border-color: var(--coral); }

.note strong,
.warning strong {
  display: block;
  margin-bottom: .2rem;
}

.wire-table {
  border-collapse: collapse;
  font-size: .88rem;
  margin: 1rem 0;
  width: 100%;
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.comparison-table {
  min-width: 860px;
}

.wire-table th,
.wire-table td {
  border-bottom: 1px solid var(--line);
  padding: .75rem;
  text-align: left;
  vertical-align: top;
}

.wire-table th {
  color: var(--forest-soft);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.guide-card,
.pattern-card {
  display: flex;
  flex-direction: column;
}

.guide-card a,
.pattern-card a {
  color: var(--forest);
  font-size: .85rem;
  font-weight: 850;
  margin-top: auto;
  padding-top: 1.2rem;
  text-decoration-color: var(--coral);
  text-underline-offset: 3px;
}

.guide-icon {
  align-items: center;
  background: var(--paper-deep);
  border-radius: 14px;
  display: inline-flex;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.runtime-order {
  display: grid;
  gap: .55rem;
  margin-top: 1.7rem;
  max-width: 620px;
  grid-template-columns: repeat(3, 1fr);
}

.runtime-order a {
  background: rgb(255 254 249 / 68%);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  padding: .75rem;
  text-decoration: none;
}

.runtime-order span,
.runtime-rank {
  color: var(--coral);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.runtime-order strong {
  color: var(--forest);
  font-size: .86rem;
}

.runtime-order small {
  color: var(--muted);
  font-size: .67rem;
}

.core-proof {
  align-items: center;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 14px;
  display: flex;
  gap: .7rem;
  margin-top: .8rem;
  padding: .72rem .8rem;
}

.core-proof span:last-child {
  display: grid;
}

.core-proof strong {
  color: var(--lime);
  font-size: .76rem;
}

.core-proof small {
  color: rgb(255 255 255 / 60%);
  font-size: .68rem;
}

.pulse-dot {
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgb(215 255 114 / 14%);
  height: 9px;
  width: 9px;
}

.layer-stack {
  display: grid;
  gap: .7rem;
}

.layer-card {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 78px 1fr auto;
  padding: 1.15rem 1.3rem;
}

.layer-card > span {
  color: var(--forest);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.layer-card h3,
.layer-card p {
  margin: 0;
}

.layer-card h3 {
  font-size: 1.02rem;
}

.layer-card p {
  color: var(--muted);
  font-size: .82rem;
}

.layer-card a {
  color: var(--forest);
  font-size: .78rem;
  font-weight: 850;
}

.layer-card.core { border-left: 7px solid var(--lime); }
.layer-card.blades { border-left: 7px solid var(--blue); }
.layer-card.profiles { border-left: 7px solid var(--coral); }

.panel-heading {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.runtime-chip,
.availability {
  background: var(--forest);
  border-radius: 999px;
  color: var(--lime);
  display: inline-flex;
  font-family: var(--mono);
  font-size: .63rem;
  font-weight: 850;
  padding: .35rem .58rem;
}

.runtime-code-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.runtime-code-grid .runtime-primary {
  box-shadow: 0 0 0 3px var(--lime);
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.two-labs {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.lab-teaser {
  border: 1px solid var(--line);
  border-radius: 28px;
  min-height: 420px;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.lab-teaser h2 {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
}

.lab-teaser p:not(.eyebrow) {
  color: var(--muted);
  max-width: 500px;
}

.stream-teaser { background: #1c241e; color: #eef6e8; }
.stream-teaser .eyebrow, .stream-teaser h2 { color: white; }
.stream-teaser p:not(.eyebrow) { color: rgb(255 255 255 / 65%); }
.form-teaser { background: #e9f2ff; }

.mini-stream,
.profile-chain {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 2rem 0;
}

.mini-stream span {
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 8px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: .65rem;
  padding: .5rem;
}

.profile-chain span {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 850;
  padding: .55rem .75rem;
}

.profile-chain b { color: var(--coral); }
.compact-guides .guide-card { min-height: 240px; }

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.status-legend span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .75rem;
  gap: .4rem;
}

.status-dot {
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.status-dot.shipped { background: var(--forest); }
.status-dot.next { background: var(--blue); }
.status-dot.design { background: var(--coral); }

.runtime-map {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.runtime-map-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
}

.runtime-map-card.featured {
  background: var(--forest);
  color: white;
  transform: translateY(-10px);
}

.runtime-title {
  align-items: center;
  display: flex;
  gap: .8rem;
  margin: 1rem 0;
}

.runtime-glyph,
.engine-mark {
  align-items: center;
  background: var(--lime);
  border-radius: 12px;
  color: var(--forest);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.runtime-glyph.js { background: var(--gold); }
.runtime-glyph.ruby,
.engine-mark.ruby { background: var(--coral); }

.runtime-title h3,
.runtime-title p {
  margin: 0;
}

.runtime-title p {
  color: var(--muted);
  font-size: .74rem;
}

.featured .runtime-title p,
.featured li {
  color: rgb(255 255 255 / 67%);
}

.runtime-map-card ul {
  color: var(--muted);
  font-size: .82rem;
  padding-left: 1.15rem;
}

.availability {
  align-self: flex-start;
  margin-top: auto;
}

.availability.design { background: #ffe1d9; color: var(--danger); }
.availability.next { background: #e3ebff; color: #294e9d; }

.interop-lab {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  overflow: hidden;
}

.fixture-card {
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
  padding: 1.5rem;
}

.fixture-list {
  display: grid;
  gap: .5rem;
  margin: 1.2rem 0;
}

.fixture-list div {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: .45rem;
}

.fixture-list dt {
  color: var(--muted);
  font-size: .72rem;
}

.fixture-list dd { margin: 0; }

.engine-results {
  display: grid;
  padding: .8rem;
}

.engine-results article {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .8rem;
  grid-template-columns: 46px 1fr 34px;
  padding: .8rem;
}

.engine-results article:last-child { border-bottom: 0; }
.engine-results article > div { display: grid; min-width: 0; }
.engine-results small { color: var(--muted); }
.engine-results code { color: var(--forest-soft); font-size: .67rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.engine-state { font-size: 1.4rem; }
.engine-results .passed .engine-state { color: #16814f; }
.engine-results .failed .engine-state { color: var(--danger); }
.engine-results .unavailable .engine-state { color: #925300; }
.engine-results .unavailable { background: #fff9e8; }

.start-tracks {
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  max-width: 760px;
}

.start-tracks a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  padding: 1rem;
  text-decoration: none;
}

.start-tracks a:first-child { box-shadow: inset 6px 0 var(--lime); }
.start-tracks span { color: var(--coral); font-family: var(--mono); font-size: .63rem; font-weight: 900; text-transform: uppercase; }
.start-tracks strong { color: var(--forest); font-size: 1rem; }
.start-tracks small { color: var(--muted); }

.decision-banner {
  align-items: center;
  background: var(--lime);
  border-radius: 16px;
  display: flex;
  gap: .8rem;
  margin-top: 2rem;
  max-width: 850px;
  padding: .8rem 1rem;
}

.decision-banner span {
  background: var(--forest);
  border-radius: 999px;
  color: white;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 900;
  padding: .35rem .55rem;
  text-transform: uppercase;
}

.stream-lab {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
}

.stream-controls,
.stream-output {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.stream-controls {
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
}

.range-field {
  display: grid;
  gap: .55rem;
  grid-template-columns: 1fr auto;
  margin: 1.2rem 0;
}

.range-field span { color: var(--forest); font-size: .78rem; font-weight: 850; }
.range-field output { color: var(--forest-soft); font-family: var(--mono); font-size: .72rem; }
.range-field input { grid-column: 1 / -1; width: 100%; }

.trust-choice {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
  padding: .8rem;
}

.trust-choice legend { color: var(--forest); font-size: .76rem; font-weight: 850; padding-inline: .3rem; }
.trust-choice label { color: var(--muted); font-size: .75rem; }

.stream-summary {
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.4rem;
}

.stream-summary div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  padding: .7rem;
}

.stream-summary span { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.stream-summary strong { color: var(--forest); font-family: var(--mono); }

.chunk-tape {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1.4rem;
}

.chunk-tape span {
  background: #1c241e;
  border-radius: 7px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: .62rem;
  max-width: 150px;
  overflow: hidden;
  padding: .45rem;
  text-overflow: ellipsis;
}

.event-log {
  display: grid;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-log li {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: .6rem;
  grid-template-columns: 52px 64px 1fr auto;
  padding: .6rem;
}

.event-log span,
.event-log b { font-size: .64rem; text-transform: uppercase; }
.event-log code { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trusted-event { background: #e7f7e8; }
.trusted-event b { color: #14613d; }
.untrusted-event { background: #fff0df; }
.untrusted-event b { color: #925300; }
.trusted-copy { color: #14613d; }
.warning-copy { color: var(--danger); }

.four-up {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.profile-path {
  align-items: stretch;
  display: flex;
  gap: .7rem;
  margin-top: 2rem;
  max-width: 850px;
}

.profile-path span {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  flex: 1;
  font-weight: 850;
  padding: .8rem;
}

.profile-path small { color: var(--coral); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.profile-path b { align-self: center; color: var(--coral); }

.reality-grid,
.ownership-board {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.reality-card,
.ownership-board article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
}

.reality-card.legacy { background: #fff4ef; }
.reality-card h3 { margin: 1rem 0 .6rem; }
.reality-card li, .ownership-board li { color: var(--muted); font-size: .84rem; }
.reality-card a { color: var(--forest); font-weight: 800; }

.ownership-board {
  grid-template-columns: repeat(3, 1fr);
}

.owner-label {
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--mono);
  font-size: .63rem;
  font-weight: 900;
  padding: .35rem .55rem;
  text-transform: uppercase;
}

.owner-label.data { background: var(--lime); }
.owner-label.form { background: #dce7ff; }
.owner-label.app { background: #ffe0d8; }

.profile-sketch {
  background: #1c241e;
  border-radius: 26px;
  color: white;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  padding: 1rem;
}

.sketch-token,
.sketch-fields {
  display: grid;
  gap: .55rem;
}

.sketch-token div,
.sketch-fields {
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  padding: .75rem;
}

.sketch-token span,
.sketch-fields span { color: var(--lime); font-family: var(--mono); font-size: .63rem; text-transform: uppercase; }
.sketch-token code { display: block; font-size: .72rem; margin-top: .2rem; }
.sketch-fields { grid-template-columns: auto 1fr; }
.sketch-fields strong { font-size: .75rem; }
.caption { color: var(--muted); font-size: .78rem; }
.matrix-wrap { overflow-x: auto; }
.matrix-yes { background: #dff5df; border-radius: 999px; color: #14613d; font-size: .68rem; font-weight: 850; padding: .25rem .45rem; }

.site-map {
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr 1fr;
}

.site-map article {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.site-map strong { color: var(--forest); }
.site-map small { color: var(--coral); font-family: var(--mono); font-size: .6rem; text-transform: uppercase; }
.site-map p { font-size: .82rem; margin-bottom: 0; }

/* SignedForm / Rails trust story */
.signed-form-showcase { position: relative; }

.signed-form-hero {
  background:
    radial-gradient(circle at 88% 16%, rgb(142 177 255 / 30%), transparent 21rem),
    radial-gradient(circle at 8% 90%, rgb(215 255 114 / 28%), transparent 20rem),
    rgb(255 254 249 / 82%);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  overflow: hidden;
  padding: clamp(2.2rem, 7vw, 5.5rem);
  position: relative;
}

.signed-form-hero::after {
  border: 1px solid rgb(23 60 47 / 10%);
  border-radius: 50%;
  content: "";
  height: 19rem;
  pointer-events: none;
  position: absolute;
  right: -8rem;
  top: -9rem;
  width: 19rem;
}

.signed-form-hero h1 { max-width: 860px; }
.signed-form-hero .lede { max-width: 820px; }
.signed-form-hero .caption { color: var(--forest-soft); font-weight: 700; margin: 1rem 0 0; max-width: 850px; }

.signed-form-path { max-width: 980px; }
.signed-form-path span { box-shadow: inset 0 5px var(--lime); min-height: 88px; }
.signed-form-path span:nth-of-type(2) { box-shadow: inset 0 5px var(--blue); }
.signed-form-path span:nth-of-type(3) { box-shadow: inset 0 5px var(--coral); }
.signed-form-path small { color: var(--danger); }

.signed-form-code-grid .code-card {
  min-height: 300px;
  position: relative;
}

.signed-form-code-grid .code-card::after {
  background: var(--lime);
  content: "";
  height: 4px;
  inset: auto 0 0;
  position: absolute;
}

.signed-form-code-grid .code-card:nth-child(2)::after { background: var(--blue); }
.signed-form-code-grid .code-card:nth-child(3)::after { background: var(--coral); }

.signed-form-release-note {
  background: linear-gradient(100deg, #e8f4dc, #f4f8ed);
  border: 1px solid #bdd4aa;
  border-left: 6px solid var(--forest);
  box-shadow: 0 10px 30px rgb(23 60 47 / 7%);
  padding: 1rem 1.1rem;
}

.signed-form-release-note a { color: var(--forest); font-weight: 850; text-underline-offset: 3px; }

.trust-receipt {
  background:
    radial-gradient(circle at 12% 8%, rgb(215 255 114 / 17%), transparent 17rem),
    linear-gradient(135deg, #17221b, #20362a);
  box-shadow: 0 26px 60px rgb(23 60 47 / 18%);
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
}

.trust-receipt::before,
.trust-receipt::after {
  background: var(--paper);
  border-radius: 50%;
  content: "";
  height: 24px;
  position: absolute;
  top: calc(50% - 12px);
  width: 24px;
}

.trust-receipt::before { left: -12px; }
.trust-receipt::after { right: -12px; }

.receipt-envelope div {
  border-left: 4px solid var(--lime);
  padding-left: .9rem;
}

.receipt-envelope div:nth-child(2) { border-left-color: var(--blue); }
.receipt-envelope div:nth-child(3) { border-left-color: var(--coral); }
.receipt-envelope div:nth-child(4) { border-left-color: var(--gold); }

.receipt-verdicts {
  align-content: center;
  background: rgb(255 255 255 / 10%);
}

.receipt-verdicts strong {
  align-items: center;
  display: flex;
  gap: .45rem;
}

.receipt-verdicts strong::before {
  align-items: center;
  background: var(--lime);
  border-radius: 50%;
  color: var(--forest);
  content: "✓";
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .62rem;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.tamper-grid { counter-reset: tamper-card; }

.tamper-card {
  border-top: 7px solid var(--line);
  counter-increment: tamper-card;
  min-height: 255px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.tamper-card::after {
  color: rgb(23 60 47 / 7%);
  content: "0" counter(tamper-card);
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  right: .5rem;
  top: .4rem;
}

.tamper-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tamper-card.filtered { background: #eef8e7; border-top-color: #5d8f21; }
.tamper-card.rejected { background: #fff0eb; border-top-color: var(--danger); }
.tamper-card.expired { background: #fff7dd; border-top-color: #9a7008; }
.tamper-card.expired .availability { background: #ffe29a; color: #694b00; }
.tamper-card h3,
.tamper-card p,
.tamper-card .availability { position: relative; z-index: 1; }

.legacy-wire-grid {
  background: linear-gradient(135deg, #eee8d8, #f7f2e8);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1rem;
}

.legacy-wire-grid .code-card { border-top: 5px solid var(--gold); }
.legacy-wire-grid .code-card:nth-child(2) { border-top-color: var(--coral); }
.legacy-wire-grid .code-card:nth-child(3) { border-top-color: var(--blue); }

.sfp1-stack {
  background:
    radial-gradient(circle at 88% 15%, rgb(142 177 255 / 21%), transparent 19rem),
    radial-gradient(circle at 8% 90%, rgb(215 255 114 / 16%), transparent 18rem),
    #17221b;
  box-shadow: 0 26px 60px rgb(23 60 47 / 18%);
  padding: 1.2rem;
}

.sfp1-stack .sketch-token div { border-left: 4px solid var(--blue); }
.sfp1-stack .sketch-token div:nth-child(2) { border-left-color: var(--lime); }
.sfp1-stack .sketch-token div:nth-child(3) { border-left-color: var(--coral); }
.sfp1-stack .sketch-token div:nth-child(4) { border-left-color: var(--gold); }
.sfp1-stack .sketch-fields { background: rgb(255 255 255 / 10%); }

.proposed-adapter-grid .code-card { border-top: 5px solid var(--blue); }
.proposed-adapter-grid .code-card:first-child { border-top-color: var(--lime); }
.proposed-adapter-grid .code-card:last-child { border-top-color: var(--coral); }

.migration-timeline {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  gap: 0;
  overflow: hidden;
  padding: .6rem;
}

.migration-timeline li {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  padding: .9rem;
}

.migration-timeline li:last-child { border-bottom: 0; }
.migration-timeline li > span { font-family: var(--mono); font-weight: 900; }
.migration-timeline li > code { color: var(--forest); min-width: 0; }
.migration-timeline li > b { border-radius: 999px; justify-self: end; padding: .22rem .45rem; }
.migration-timeline .trusted-event > b { background: #dff5df; }
.migration-timeline .untrusted-event > b { background: #ffe0d8; }
.migration-timeline li > small { color: var(--muted); font-size: .72rem; grid-column: 2 / -1; }

.signed-form-showcase .ownership-board article {
  border-top: 7px solid var(--lime);
  box-shadow: 0 12px 30px rgb(23 60 47 / 6%);
}

.signed-form-showcase .ownership-board article:nth-child(2) { border-top-color: var(--blue); }
.signed-form-showcase .ownership-board article:nth-child(3) { border-top-color: var(--coral); }

/* GitHub Key Atlas */
.home-key-atlas {
  align-items: center;
  background: var(--forest);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgb(23 60 47 / 20%);
  color: white;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 4rem);
  position: relative;
}

.home-key-atlas::after {
  background: radial-gradient(circle, rgb(215 255 114 / 18%), transparent 65%);
  content: "";
  height: 28rem;
  pointer-events: none;
  position: absolute;
  right: -10rem;
  top: -12rem;
  width: 28rem;
}

.home-key-copy { position: relative; z-index: 1; }
.home-key-copy .eyebrow { color: var(--lime); }
.home-key-copy h2 { font-size: clamp(2.25rem, 4.6vw, 4.5rem); letter-spacing: -.06em; line-height: .98; margin: 0; }
.home-key-copy > p:not(.eyebrow) { color: rgb(255 255 255 / 72%); max-width: 610px; }
.home-key-copy .button { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.home-key-copy .button.secondary { background: transparent; border-color: rgb(255 255 255 / 46%); color: white; }
.home-key-copy small { color: rgb(255 255 255 / 63%); display: block; font-size: .72rem; margin-top: 1rem; }
.home-key-copy code { font-family: var(--mono); font-size: .88em; }

.home-key-map {
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

.home-key-identity {
  align-items: center;
  background: var(--lime);
  border-radius: 18px;
  color: var(--forest);
  display: flex;
  gap: .8rem;
  grid-column: 1 / -1;
  padding: 1rem;
}

.home-key-identity > span {
  align-items: center;
  background: var(--forest);
  border-radius: 12px;
  color: var(--lime);
  display: flex;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.home-key-identity div { display: grid; }
.home-key-identity small { font-family: var(--mono); font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.home-key-identity strong { font-size: 1rem; }

.home-key-route {
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 14px;
  display: grid;
  min-width: 0;
  padding: .8rem;
}

.home-key-route strong { color: var(--lime); font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; }
.home-key-route span { color: rgb(255 255 255 / 67%); font-size: .7rem; }
.home-key-route.encrypt strong { color: #bcd0ff; }
.home-key-route.login strong { color: #ffe08a; }
.home-key-route.refused strong { color: #ff9b83; }

.key-atlas-hero {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  min-height: 660px;
}

.key-atlas-copy h1 em {
  color: var(--forest);
  font-style: normal;
  position: relative;
  z-index: 0;
}

.key-atlas-copy h1 em::after {
  background: var(--lime);
  bottom: .03em;
  content: "";
  height: .17em;
  left: -.04em;
  position: absolute;
  transform: rotate(-1.5deg);
  width: 106%;
  z-index: -1;
}

.key-atlas-copy .hero-actions code {
  font-family: var(--mono);
  font-size: .88em;
}

.key-plain-promise {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .82rem;
  gap: .45rem;
  margin: 1.2rem 0 0;
}

.key-plain-promise span {
  color: var(--forest);
  font-size: 1.05rem;
}

.key-plain-promise strong { color: var(--forest); }

.key-orbit {
  background:
    radial-gradient(circle at center, rgb(215 255 114 / 16%), transparent 34%),
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px),
    var(--forest);
  background-size: auto, 28px 28px, 28px 28px, auto;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 32px;
  box-shadow: 0 34px 80px rgb(23 60 47 / 24%);
  color: white;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(90px, auto));
  min-height: 430px;
  overflow: hidden;
  padding: 1.2rem;
  position: relative;
  transform: rotate(1deg);
}

.key-orbit::before,
.key-orbit::after {
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  content: "";
  inset: 20% 16%;
  pointer-events: none;
  position: absolute;
}

.key-orbit::after {
  border-color: rgb(215 255 114 / 18%);
  inset: 31% 27%;
}

.key-orbit-core,
.key-orbit-job {
  border: 1px solid rgb(255 255 255 / 16%);
  position: relative;
  z-index: 1;
}

.key-orbit-core {
  align-self: stretch;
  background: var(--lime);
  border-radius: 50%;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  min-height: 116px;
  padding: 1rem;
  text-align: center;
}

.key-orbit-core small,
.key-orbit-core span {
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.key-orbit-core strong { font-size: 1rem; }

.key-orbit-job {
  align-self: center;
  background: rgb(255 255 255 / 9%);
  border-radius: 14px;
  display: grid;
  justify-self: stretch;
  padding: .7rem;
}

.key-orbit-job span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.key-orbit-job small { color: rgb(255 255 255 / 68%); font-size: .63rem; }
.key-orbit-job.verify { grid-column: 2; grid-row: 1; }
.key-orbit-job.encrypt { grid-column: 3; grid-row: 2; }
.key-orbit-job.login { grid-column: 1; grid-row: 2; }
.key-orbit-job.refused { grid-column: 2; grid-row: 3; }
.key-orbit-job.encrypt span { color: #bcd0ff; }
.key-orbit-job.login span { color: #ffe08a; }
.key-orbit-job.refused span { color: #ff9b83; }

.key-lookup-shell,
.key-lab {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
}

.key-lookup-form,
.key-lab-input,
.key-lab-output {
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.key-lookup-form,
.key-lab-input {
  background: var(--paper-deep);
  border-right: 1px solid var(--line);
}

.key-lookup-form .button,
.key-lab-input .button { margin-top: 1rem; }

.key-privacy-note,
.key-boundary {
  background: rgb(23 60 47 / 7%);
  border: 1px solid rgb(23 60 47 / 15%);
  border-radius: 12px;
  margin-top: 1.1rem;
  padding: .8rem;
}

.key-privacy-note strong,
.key-boundary strong {
  color: var(--forest);
  display: block;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.key-privacy-note p,
.key-boundary p {
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.5;
  margin: .25rem 0 0;
}

.identity-results {
  align-content: start;
  display: grid;
  gap: .8rem;
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.identity-empty {
  align-items: center;
  border: 1px dashed #a9ad9e;
  border-radius: 18px;
  color: var(--muted);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  min-height: 180px;
  padding: 1.2rem;
}

.identity-empty > span {
  align-items: center;
  background: var(--forest);
  border-radius: 16px;
  color: var(--lime);
  display: flex;
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.identity-empty strong { color: var(--forest); }
.identity-empty p { font-size: .82rem; margin: .25rem 0 0; }

.identity-results article,
.identity-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
  padding: 1rem;
}

.identity-results code,
.key-fingerprint {
  font-family: var(--mono);
  font-size: .7rem;
  overflow-wrap: anywhere;
}

.resolved-identity {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgb(23 60 47 / 8%);
  min-width: 0;
  overflow: hidden;
}

.resolved-identity-head {
  align-items: center;
  background:
    linear-gradient(120deg, rgb(215 255 114 / 35%), transparent 48%),
    var(--paper-deep);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.resolved-identity-head .panel-kicker { margin: 0 0 .15rem; }
.resolved-identity-head h3 { color: var(--forest); font-size: 1.25rem; letter-spacing: -.035em; margin: 0; }
.resolved-identity-head p:not(.panel-kicker) { color: var(--muted); font-size: .72rem; margin: .15rem 0 0; }

.resolved-key-count {
  background: var(--forest);
  border-radius: 999px;
  color: var(--lime);
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .04em;
  padding: .38rem .58rem;
  text-transform: uppercase;
}

.resolved-key-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: .9rem;
}

.resolved-key-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .85rem;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.resolved-key-card:hover {
  box-shadow: 0 10px 25px rgb(23 60 47 / 10%);
  transform: translateY(-2px);
}

.resolved-key-card.verify { background: #f2f9e5; border-left-color: #78a916; }
.resolved-key-card.encrypt { background: #edf3ff; border-left-color: #4e72c5; }
.resolved-key-card.login { background: #fff7dd; border-left-color: #9a7008; }
.resolved-key-card.refused { background: #fff0eb; border-left-color: var(--danger); }
.resolved-key-card.verify .key-job-label { background: var(--forest); color: var(--lime); }
.resolved-key-card.encrypt .key-job-label { background: #294e9d; color: white; }
.resolved-key-card.login .key-job-label { background: #694b00; color: white; }
.resolved-key-card.refused .key-job-label { background: var(--danger); color: white; }

.resolved-key-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-between;
}

.resolved-key-top strong {
  color: var(--forest);
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.resolved-key-card .key-fingerprint {
  background: rgb(23 60 47 / 8%);
  border-radius: 8px;
  color: var(--forest-soft);
  display: block;
  line-height: 1.5;
  margin-top: .65rem;
  padding: .48rem .55rem;
}

.resolved-key-detail {
  color: #454d45;
  font-size: .76rem;
  line-height: 1.5;
  margin: .7rem 0 .25rem;
}

.resolved-key-meta {
  color: var(--muted);
  display: block;
  font-size: .66rem;
  line-height: 1.45;
  margin-top: auto;
  overflow-wrap: anywhere;
  padding-top: .35rem;
}

.button.tiny {
  align-self: flex-start;
  font-size: .68rem;
  margin-top: .75rem;
  min-height: 34px;
  padding: .4rem .68rem;
}

.resolved-key-card.verify .button.tiny,
.button.tiny.verify { background: var(--forest); border-color: var(--forest); color: white; }
.resolved-key-card.encrypt .button.tiny,
.button.tiny.encrypt { background: #294e9d; border-color: #294e9d; color: white; }
.resolved-key-card.login .button.tiny,
.button.tiny.login { background: #694b00; border-color: #694b00; color: white; }
.resolved-key-card.refused .button.tiny,
.button.tiny.refused { background: var(--danger); border-color: var(--danger); color: white; }

.key-job-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}

.key-job-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  min-height: 270px;
  padding: 1.35rem;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.key-job-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.key-job-card.verify { border-top: 7px solid var(--lime); }
.key-job-card.encrypt { border-top: 7px solid var(--blue); }
.key-job-card.login { border-top: 7px solid var(--gold); }
.key-job-card.refused { border-top: 7px solid var(--coral); }

.key-job-label {
  background: var(--forest);
  border-radius: 999px;
  color: var(--lime);
  display: inline-flex;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  padding: .35rem .55rem;
}

.key-job-card.encrypt .key-job-label { background: #294e9d; color: white; }
.key-job-card.login .key-job-label { background: #694b00; color: white; }
.key-job-card.refused .key-job-label { background: var(--danger); color: white; }
.key-job-card h3 { font-size: 1.15rem; margin: 1rem 0 .45rem; }
.key-job-card p { color: var(--muted); font-size: .84rem; margin: 0; }

.key-lab { grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr); }

.key-lab-output {
  align-content: start;
  display: grid;
}

.key-output {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.55;
  min-height: 210px !important;
  overflow-wrap: anywhere;
}

.key-output[readonly] { background: #f7f7f1; }

.trust-steps {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-steps li {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: .75rem;
  grid-template-columns: 38px 1fr;
  padding: .75rem;
}

.trust-steps li > span {
  align-items: center;
  background: var(--forest);
  border-radius: 10px;
  color: var(--lime);
  display: flex;
  font-family: var(--mono);
  font-size: .63rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.trust-steps strong { color: var(--forest); }
.trust-steps p { color: var(--muted); font-size: .75rem; margin: .1rem 0 0; }

.key-atlas-callout .eyebrow { margin-bottom: .7rem; }
.key-atlas-callout .eyebrow::before { background: var(--forest); }
.key-atlas-callout .button { white-space: nowrap; }

.key-lookup-form .live-message[data-state="success"],
.key-lab .live-message[data-state="success"] { color: #165c3c; font-weight: 750; }
.key-lookup-form .live-message[data-state="failed"],
.key-lab .live-message[data-state="failed"] { color: var(--danger); font-weight: 750; }

.benchmark-hero {
  min-height: 650px;
}

.benchmark-scorecard {
  background: var(--forest);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 28px;
  box-shadow: 24px 28px 0 rgb(23 60 47 / 11%);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transform: rotate(1deg);
}

.benchmark-scorecard > div {
  background: rgb(255 255 255 / 6%);
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 1.55rem;
}

.benchmark-scorecard > div:first-child { background: var(--lime); color: var(--forest); }
.benchmark-scorecard > div:nth-child(4) { background: var(--coral); color: #32150f; }
.benchmark-scorecard strong { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.06em; line-height: 1; }
.benchmark-scorecard span { font-size: .86rem; font-weight: 850; margin-top: .7rem; text-transform: uppercase; }
.benchmark-scorecard small { margin-top: auto; opacity: .76; padding-top: .7rem; }

.benchmark-insights {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 2rem 0;
}

.benchmark-insights article,
.benchmark-boundary article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.benchmark-insights span,
.benchmark-boundary span {
  color: var(--forest-soft);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.benchmark-insights h3,
.benchmark-boundary h3 { font-size: 1.08rem; margin: .5rem 0; }
.benchmark-insights p { color: var(--muted); font-size: .84rem; margin: 0; }

.benchmark-chart {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin: 1.25rem 0;
  overflow: hidden;
  padding: clamp(.65rem, 2vw, 1.4rem);
}

.benchmark-chart img { display: block; height: auto; width: 100%; }
.benchmark-chart figcaption { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; margin-top: 1rem; padding: 1rem .35rem .2rem; }
.benchmark-chart.compact { max-width: 920px; }

.benchmark-boundary {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 2rem 0;
}

.benchmark-boundary article:first-child { border-top: 6px solid var(--lime); }
.benchmark-boundary article:last-child { border-top: 6px solid var(--coral); }
.benchmark-boundary ul { color: var(--muted); font-size: .88rem; margin-bottom: 0; padding-left: 1.15rem; }
.benchmark-boundary li + li { margin-top: .35rem; }

@media (max-width: 900px) {
  .hero,
  .workbench,
  .article-layout,
  .home-key-atlas,
  .key-atlas-hero,
  .key-lookup-shell,
  .key-lab {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .token-card {
    margin-inline: auto;
    max-width: 640px;
    transform: none;
    width: 100%;
  }

  .workbench-form {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .toc {
    display: flex;
    overflow: auto;
    position: static;
  }

  .toc strong { display: none; }

  .three-up,
  .guide-grid,
  .pattern-grid,
  .runtime-code-grid,
  .runtime-map,
  .four-up,
  .ownership-board {
    grid-template-columns: 1fr 1fr;
  }

  .interop-lab,
  .stream-lab {
    grid-template-columns: 1fr;
  }

  .fixture-card,
  .stream-controls {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .runtime-map-card.featured { transform: none; }

  .key-atlas-hero { min-height: auto; }
  .home-key-atlas { grid-template-columns: 1fr; }
  .key-orbit { margin-inline: auto; max-width: 640px; transform: none; width: 100%; }
  .key-lookup-form,
  .key-lab-input { border-bottom: 1px solid var(--line); border-right: 0; }
  .key-job-grid { grid-template-columns: 1fr 1fr; }

  .signed-form-hero { margin-top: 1rem; }
  .signed-form-code-grid .code-card { min-height: 0; }
  .benchmark-scorecard { margin-inline: auto; max-width: 640px; transform: none; width: 100%; }
  .benchmark-insights { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
  }

  .nav-links {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: .2rem;
  }

  .nav-github { display: none; }

  h1 { font-size: clamp(3rem, 17vw, 4.6rem); }

  .section-head,
  .callout,
  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head,
  .callout {
    display: flex;
  }

  .field-grid,
  .decoded-grid,
  .code-split,
  .three-up,
  .guide-grid,
  .pattern-grid,
  .runtime-code-grid,
  .runtime-map,
  .four-up,
  .two-labs,
  .ownership-board,
  .reality-grid,
  .profile-sketch,
  .site-map,
  .start-tracks,
  .key-job-grid,
  .key-verify-fields {
    grid-template-columns: 1fr;
  }

  .runtime-order { grid-template-columns: 1fr; }
  .layer-card { align-items: start; grid-template-columns: 1fr; }
  .layer-card a { justify-self: start; }
  .profile-path { align-items: stretch; flex-direction: column; }
  .profile-path b { align-self: center; transform: rotate(90deg); }
  .event-log li { grid-template-columns: 46px 58px minmax(0, 1fr); }
  .event-log b { grid-column: 2 / -1; }
  .stream-summary { grid-template-columns: 1fr 1fr 1fr; }
  .decision-banner { align-items: flex-start; flex-direction: column; }

  .segments {
    grid-template-columns: 1fr 1fr;
  }

  .hero { padding-top: 3rem; }
  .section { padding-block: 4rem; }

  .key-atlas-hero { padding-top: 3rem; }
  .home-key-map { grid-template-columns: 1fr; }
  .home-key-identity { grid-column: auto; }
  .key-orbit { grid-template-rows: repeat(3, minmax(78px, auto)); min-height: 360px; padding: .8rem; }
  .key-orbit-core { min-height: 100px; padding: .6rem; }
  .key-orbit-job { padding: .52rem; }
  .key-orbit-job span { font-size: .55rem; }
  .key-orbit-job small { font-size: .56rem; }
  .identity-empty { grid-template-columns: 1fr; }
  .resolved-key-grid { grid-template-columns: 1fr; }
  .resolved-identity-head { align-items: flex-start; flex-direction: column; }
  .resolved-key-count { align-self: flex-start; }
  .key-job-card { min-height: 0; }
  .key-atlas-callout .button { white-space: normal; }

  .signed-form-hero { border-radius: 22px; padding: 2rem 1.25rem; }
  .trust-receipt::before,
  .trust-receipt::after { display: none; }
  .receipt-verdicts,
  .sfp1-stack .sketch-fields { grid-template-columns: 1fr; }
  .migration-timeline li { grid-template-columns: 58px minmax(0, 1fr); }
  .migration-timeline li > code,
  .migration-timeline li > b,
  .migration-timeline li > small { grid-column: 2; justify-self: start; white-space: normal; }
  .benchmark-scorecard,
  .benchmark-insights,
  .benchmark-boundary { grid-template-columns: 1fr; }
  .benchmark-scorecard > div { min-height: 140px; }
  .benchmark-chart { border-radius: 16px; margin-inline: -.5rem; padding: .35rem; }
}

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