:root {
  --ink: #111015;
  --paper: #fff0df;
  --peach: #ffb99f;
  --coral: #ff4e5e;
  --pink: #f32ca0;
  --violet: #8c57ff;
  --lime: #d4ff38;
  --line: #17131c;
  --muted: #7b6d76;
  --card-bg: #fff8ed;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .08;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* TOPBAR */
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 2;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.06em;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
  width: 34px;
  height: 34px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 20px;
}
.beta {
  font-size: 9px;
  letter-spacing: .12em;
  background: var(--lime);
  border: 1px solid var(--ink);
  padding: 5px 7px;
  margin-left: 7px;
}
.topbar nav { display: flex; gap: 24px; }
.topbar nav a, .status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  color: inherit;
}
.status { display: flex; align-items: center; gap: 8px; }
.status-dot, .eyebrow-dot, .live-dot:before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #55b84b;
}

/* HERO */
.hero {
  padding: 6vw 5vw 5vw;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3vw;
  min-height: 680px;
  background: linear-gradient(125deg, #ffe9d6 0%, #ffc0ac 47%, #f17eb3 100%);
  border-bottom: 2px solid var(--ink);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 18px;
}
.eyebrow-dot {
  margin-right: 8px;
  background: var(--coral);
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: -.075em;
  line-height: .86;
}
h1 {
  font-size: clamp(54px, 8vw, 130px);
  margin: 0 0 24px;
  line-height: .82;
}
h1 em { font-style: normal; color: var(--violet); }
.outline { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.hot { color: var(--coral); }
.hero-sub {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 30px;
  flex-wrap: wrap;
}

/* BUTTONS */
.button {
  border: 2px solid var(--ink);
  padding: 13px 18px;
  font: 700 11px 'Space Grotesk', sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}
.button:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.button:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}
.button-hot { background: var(--lime); color: var(--ink); }
.button-dark { background: var(--ink); color: white; }
.button-outline { background: white; color: var(--ink); }

/* STATUS PANEL */
.status-panel {
  background: var(--card-bg);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 18px;
  max-width: 500px;
  margin-top: 20px;
}
.status-panel-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 8px;
  color: var(--muted);
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.status-item {
  font-size: 11px;
}
.status-label { font-weight: 500; color: #444; }
.status-val { font-weight: 700; }
.status-val.allow { color: #1e7025; }
.status-val.muted { color: #887a82; }

/* HERO ART */
.hero-art {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.orbit-a {
  width: 360px;
  height: 360px;
  border-style: dashed;
  transform: rotate(-25deg);
}
.orbit-b {
  width: 280px;
  height: 420px;
  border-color: var(--violet);
  border-width: 4px;
  transform: rotate(35deg);
}
.orb-core {
  width: 200px;
  height: 200px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(140deg, var(--lime), #f4ff97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 0 var(--ink);
  z-index: 1;
}
.orb-core span { font-size: 10px; letter-spacing: .2em; font-weight: 700; }
.orb-core b { font-size: 56px; line-height: 1; }
.orb-core small { text-align: center; font-weight: 700; font-size: 8px; letter-spacing: .12em; }

.float-card {
  position: absolute;
  z-index: 2;
  background: #fff8ed;
  border: 2px solid var(--ink);
  padding: 12px;
  box-shadow: 5px 5px 0 var(--ink);
}
.fc1 { top: 12%; left: 0; transform: rotate(5deg); }
.fc2 { right: 0; bottom: 12%; transform: rotate(-5deg); }
.tiny-label {
  font-size: 8px;
  letter-spacing: .1em;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}
.float-card strong {
  font: 18px/.9 'Archivo Black', sans-serif;
  display: block;
  margin-bottom: 8px;
}
.pill {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border: 1px solid var(--ink);
  display: inline-block;
}
.pill.deny { background: #ff5a66; }
.pill.allow { background: var(--lime); }
.sticker {
  position: absolute;
  bottom: 4%;
  left: 8%;
  background: var(--violet);
  color: white;
  border: 2px solid var(--ink);
  font: 18px/.85 'Archivo Black', sans-serif;
  padding: 10px;
  transform: rotate(-10deg);
  z-index: 3;
}
.art-caption {
  position: absolute;
  right: 0;
  top: 5%;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

/* TICKER */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--lime);
  padding: 12px 0;
  font: 13px 'Archivo Black', sans-serif;
  letter-spacing: .06em;
  white-space: nowrap;
}
.ticker div { animation: scroll 25s linear infinite; }
@keyframes scroll { to { transform: translateX(-35%); } }

/* SECTIONS */
.section {
  padding: 70px 5vw;
  border-bottom: 2px solid var(--ink);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 35px;
}
.section-head h2 {
  font-size: clamp(38px, 5.5vw, 76px);
  margin: 0;
}
.section-head h2 span { color: var(--violet); }
.section-head p {
  max-width: 440px;
  line-height: 1.5;
  font-size: 13px;
  margin: 0;
}

/* PRESET CARDS (P1.3) */
.preset-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.preset-card {
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .15s;
}
.preset-card:hover { transform: translateY(-3px); }
.card-safe { background: #eafbe3; }
.card-missing { background: #fff0f0; }
.card-tamper { background: #fff6e8; }
.card-replay { background: #f3ebfc; }
.preset-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  align-self: flex-start;
  margin-bottom: 12px;
}
.preset-badge.allow { background: var(--lime); }
.preset-badge.deny { background: var(--coral); color: white; }
.preset-badge.warn { background: #ffbb00; }
.preset-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.1;
}
.preset-card p {
  font-size: 11px;
  line-height: 1.45;
  color: #444;
  flex-grow: 1;
}
.preset-foot {
  font-size: 9px;
  font-weight: 700;
  margin: 10px 0;
  border-top: 1px solid #ccc;
  padding-top: 8px;
}
.preset-banner {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--lime);
  padding: 16px 20px;
  box-shadow: 5px 5px 0 var(--violet);
  margin-top: 20px;
}
.preset-banner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
}
.preset-banner p {
  font-size: 12px;
  color: white;
  margin: 6px 0 0;
}
.btn-tiny {
  background: var(--lime);
  border: 1px solid var(--ink);
  padding: 4px 8px;
  font: 700 9px 'Space Grotesk', sans-serif;
  cursor: pointer;
}

/* ORCHESTRATION 3-COL GRID (P1.1, P1.2, P1.4) */
.orchestration-grid {
  display: grid;
  grid-template-columns: .95fr 1.15fr .9fr;
  gap: 20px;
}
.panel {
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 22px;
  background: var(--card-bg);
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #c8b5b4;
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.live-dot.allow-text { color: #228b22; }
.live-dot.deny-text { color: #d92b2b; }
.live-dot.warn-text { color: #d48806; }

/* 7-STEP VERTICAL STEPPER (P1.1) */
.stepper-col {
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 22px;
  background: var(--card-bg);
}
.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stepper-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1.5px solid #d9cbcf;
  background: white;
  transition: all .2s;
}
.stepper-item.completed {
  border-color: #228b22;
  background: #f0fdf0;
}
.stepper-item.active {
  border-color: var(--violet);
  background: #fbf8ff;
  border-width: 2px;
  box-shadow: 3px 3px 0 var(--violet);
}
.stepper-item.blocked {
  border-color: var(--coral);
  background: #fff4f4;
}
.stepper-icon {
  font: 18px 'Archivo Black', sans-serif;
  color: var(--muted);
  line-height: 1;
}
.stepper-item.completed .stepper-icon { color: #228b22; }
.stepper-item.active .stepper-icon { color: var(--violet); }
.stepper-item.blocked .stepper-icon { color: var(--coral); }
.stepper-body {
  flex-grow: 1;
}
.stepper-body b {
  font-size: 11px;
  display: block;
  letter-spacing: .02em;
}
.stepper-body p {
  font-size: 10px;
  color: #666;
  margin: 3px 0 6px;
  line-height: 1.3;
}
.step-chip {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border: 1px solid var(--ink);
  display: inline-block;
}
.step-chip.completed { background: var(--lime); color: var(--ink); }
.step-chip.pending { background: #ffe484; color: var(--ink); }
.step-chip.blocked { background: var(--coral); color: white; }
.step-chip.waiting { background: #eee; color: #777; }

/* CONTROLS & FORMS */
label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  display: block;
  margin: 14px 0 6px;
}
input:not([type=checkbox]), select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: white;
  font: 500 12px 'Space Grotesk', sans-serif;
  color: var(--ink);
}
textarea { resize: vertical; }
.checkrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.checkrow label {
  margin: 0;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 11px;
}
.checkrow input { accent-color: var(--violet); }
.full { width: 100%; justify-content: center; margin-top: 10px; }
.button-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* RISK ASSESSMENT CARD (P1.2) */
.risk-card {
  border: 2px solid var(--ink);
  background: #fbf7ff;
  padding: 14px;
  margin-top: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.risk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}
.risk-level-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--ink);
}
.risk-level-badge.risk-low { background: var(--lime); }
.risk-level-badge.risk-elevated { background: #ffd05b; }
.risk-level-badge.risk-high { background: var(--coral); color: white; }
.risk-card p {
  font-size: 11px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.risk-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.risk-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  background: white;
  border: 1px solid var(--ink);
}
.risk-next-step {
  font-size: 9px;
  font-weight: 700;
  color: var(--violet);
}

/* PLAN DIGEST CARD (P0.2) */
.digest-card {
  border: 2px solid var(--ink);
  background: #17131e;
  color: #f7effa;
  padding: 14px;
  margin-top: 14px;
}
.digest-title {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--lime);
  margin-bottom: 6px;
}
.digest-card code {
  font: 10px monospace;
  word-break: break-all;
  display: block;
  background: #252030;
  padding: 8px;
  border: 1px solid #443c52;
  margin-bottom: 6px;
}
.digest-note {
  font-size: 9px;
  color: #c9bed2;
}

/* PROVENANCE PANEL (P1.4) */
.provenance-empty {
  text-align: center;
  padding: 25px 15px;
  color: var(--muted);
}
.provenance-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.provenance-decision-banner {
  border: 1.5px solid var(--ink);
  padding: 10px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.provenance-decision-banner.allow-banner { background: #d7ff94; }
.provenance-decision-banner.deny-banner { background: #ffd0d3; }
.provenance-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p-fact {
  border-bottom: 1px dashed #d5c8cc;
  padding-bottom: 8px;
}
.p-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.p-fact b { font-size: 12px; }
.p-fact p { font-size: 11px; margin: 2px 0 0; line-height: 1.35; }
.chip-code {
  background: var(--ink);
  color: var(--lime);
  padding: 2px 6px;
  font-size: 10px;
  display: inline-block;
}
.break-hash {
  font: 9px monospace;
  word-break: break-all;
  background: white;
  border: 1px solid #ccc;
  padding: 4px;
  display: block;
}
.safety-callout {
  margin-top: 18px;
  background: #18141d;
  color: white;
  padding: 12px;
}
.safety-callout b {
  font-size: 9px;
  color: var(--coral);
  letter-spacing: .12em;
}
.safety-callout p {
  font-size: 10px;
  line-height: 1.4;
  margin: 6px 0 0;
  color: #dfd4e0;
}
.raw-response-toggle {
  margin-top: 14px;
  font-size: 11px;
}
.raw-response-toggle summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--violet);
}
.raw-response-toggle pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #17131e;
  color: #ede2f5;
  padding: 12px;
  font: 10px/1.4 monospace;
  max-height: 250px;
  overflow: auto;
  margin-top: 8px;
}

/* ARCHITECTURE / TRACE SECTION (P1.5) */
.trace-section { background: #faf4ed; }
.trace-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 35px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.trace-node {
  border: 2px solid var(--ink);
  background: white;
  padding: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  min-width: 170px;
  flex: 1;
}
.trace-node.highlight {
  background: #fbf3ff;
  border-color: var(--violet);
  box-shadow: 5px 5px 0 var(--violet);
}
.node-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 6px;
}
.trace-node h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-family: 'Archivo Black', sans-serif;
}
.trace-node p {
  font-size: 10px;
  line-height: 1.4;
  color: #555;
  margin-bottom: 8px;
}
.node-status {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border: 1px solid var(--ink);
  display: inline-block;
}
.node-status.live { background: var(--lime); color: var(--ink); }
.trace-arrow {
  font: 24px 'Archivo Black', sans-serif;
  color: var(--coral);
}
.trace-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trace-detail-card {
  border: 2px solid var(--ink);
  padding: 18px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
}
.trace-detail-card h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 0 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}
.trace-detail-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.5;
  color: #444;
}

/* STANDALONE ACTION LAB */
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.decision {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px;
  border: 2px solid var(--ink);
}
.decision-icon {
  font: 22px 'Archivo Black', sans-serif;
  background: var(--ink);
  color: white;
  padding: 6px 10px;
}
.decision b { font: 14px 'Archivo Black', sans-serif; }
.decision p { font-size: 11px; line-height: 1.4; margin: 6px 0 0; }
.decision.deny-result { background: #ffd0d2; }
.decision.allow-result { background: #dfffa7; }
.decision.empty { background: #eee7ef; }
.tiny-safety { font-size: 9px; color: #666; margin-top: 6px; }

.mini-grid-vertical {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mini-card {
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 20px;
  position: relative;
}
.peach { background: #ffad9d; }
.lilac { background: #d7c2ff; }
.mini-number {
  position: absolute;
  right: 18px;
  top: 12px;
  font: 44px 'Archivo Black', sans-serif;
  opacity: .2;
}
.mini-card h3 { font-size: 26px; margin: 10px 0 6px; }
.mini-card p { font-size: 11px; line-height: 1.4; max-width: 380px; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form button {
  background: var(--ink);
  color: white;
  border: 0;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}
.mini-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff8ed;
  border: 1px solid var(--ink);
  padding: 10px;
  font: 10px/1.35 monospace;
  max-height: 140px;
  overflow: auto;
  margin-top: 10px;
}

/* AUDIT RECEIPTS */
.audit-section { background: #eee0ff; }
.audit-shell {
  border: 2px solid var(--ink);
  background: #fff8ed;
  box-shadow: 7px 7px 0 var(--ink);
}
.audit-head, .audit-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.3fr .9fr;
  gap: 14px;
  padding: 12px 16px;
  align-items: center;
}
.audit-head {
  background: var(--ink);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}
.audit-row {
  border-bottom: 1px solid #ddd0dc;
  font-size: 11px;
}
.audit-row:last-child { border-bottom: 0; }
.decision-chip {
  font-size: 8px;
  font-weight: 700;
  padding: 3px 6px;
  border: 1px solid var(--ink);
  display: inline-block;
}
.decision-chip.DENY { background: #ffb2b7; }
.decision-chip.ALLOW { background: #d8ff95; }
.action-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  background: #e2d9ec;
  border: 1px solid #777;
  display: inline-block;
}
.mono-tiny { font: 8px monospace; color: #777; }
.sim-badge {
  font-size: 7px;
  background: var(--violet);
  color: white;
  padding: 2px 4px;
  font-weight: 700;
  margin-left: 4px;
}
.empty-row {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.footnote {
  font-size: 10px;
  line-height: 1.5;
  margin-top: 14px;
  color: #675b6c;
}

/* MANIFESTO */
.manifesto {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 5vw;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
}
.manifesto .eyebrow { grid-column: 1/-1; color: var(--lime); }
.manifesto h2 { font-size: clamp(48px, 7vw, 105px); margin: 0; }
.manifesto h2 span:not(.hot) { color: var(--violet); }
.manifesto-side { align-self: flex-end; }
.manifesto-side p { font-size: 15px; line-height: 1.6; max-width: 440px; }
.manifesto-tag {
  display: inline-block;
  border: 2px solid var(--lime);
  color: var(--lime);
  font: 22px/.9 'Archivo Black', sans-serif;
  padding: 12px;
  transform: rotate(-5deg);
  margin-top: 15px;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5vw;
  gap: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--paper);
  border-top: 2px solid var(--ink);
}
footer .brand { font-size: 16px; }
#health { color: #378a39; }

/* ACCESSIBILITY & REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker div { animation: none; }
  .button, .preset-card { transition: none; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1050px) {
  .preset-cards { grid-template-columns: 1fr 1fr; }
  .orchestration-grid { grid-template-columns: 1fr; }
  .trace-flow { flex-wrap: wrap; }
  .trace-arrow { display: none; }
  .trace-details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-art { min-height: 350px; }
  .lab-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .audit-head { display: none; }
  .audit-row { grid-template-columns: 1fr 1fr; }
  .manifesto { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .preset-cards { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}
