/* Gate0x — control-room aesthetic: graphite, signal colors, mono instrumentation. */
@font-face {
  font-family: 'Familjen Grotesk';
  src: url('fonts/FamiljenGrotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Martian Mono';
  src: url('fonts/MartianMono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0a0d0b;
  --panel: #111512;
  --panel-2: #161b17;
  --line: #242c27;
  --line-strong: #364139;
  --paper: #e8ebde;
  --muted: #8f9a91;
  --allow: #5dff9a;
  --block: #ff5c50;
  --approve: #ffb524;
  --radius: 4px;
  --maxw: 1180px;
  --display: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  background-attachment: fixed;
}
body::before {
  /* fade the grid out so it reads as texture, not pattern */
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(10, 13, 11, 0.55), var(--ink) 75%);
  pointer-events: none;
  z-index: -1;
}
::selection {
  background: var(--allow);
  color: var(--ink);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--allow);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--allow);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

.wrap {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand svg {
  display: block;
}
.brand .zero {
  color: var(--allow);
}
.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav a:not(.btn):hover,
.nav a[aria-current='page'] {
  color: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--allow);
  background: var(--allow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--paper);
}
.btn.ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--line-strong);
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--allow);
  box-shadow: 0 0 12px var(--allow);
  animation: pulse 2.4s ease-in-out infinite;
}
h1 {
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 22px 0 24px;
  max-width: 16ch;
}
.h1-brand {
  display: block;
  font-family: var(--mono);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--allow);
  margin-bottom: 14px;
}
.promise {
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 30ch;
  margin: 0 0 32px;
  color: var(--paper);
}
.promise span {
  display: block;
}
.promise .accent {
  color: var(--allow);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--mono);
}
h1 em {
  font-style: normal;
  color: var(--allow);
  position: relative;
}
.lede {
  font-size: clamp(19px, 2vw, 24px);
  color: #c4cabb;
  max-width: 46ch;
  margin: 0 0 36px;
}
.lede strong {
  color: var(--paper);
  font-weight: 600;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.copy-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(17, 21, 18, 0.7);
  cursor: pointer;
}
.copy-line .prompt {
  color: var(--allow);
}
.copy-line .hint {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .eyebrow .dot {
    animation: none;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* ---------- sections ---------- */
section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--allow);
  margin: 0 0 18px;
}
h2 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  max-width: 18ch;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.sub {
  color: #b3baab;
  max-width: 56ch;
  margin: 0 0 40px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.stack > * + * {
  margin-top: 20px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.checks li {
  padding-left: 30px;
  position: relative;
  color: #c4cabb;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 2px;
  background: var(--allow);
}
.checks b {
  color: var(--paper);
  font-weight: 600;
}

/* terminal */
.term {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #070908;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(36, 44, 39, 0.5);
}
.term-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.term-bar span {
  margin-left: 8px;
}
pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #cfd5c6;
}
code {
  font-family: var(--mono);
}
:not(pre) > code {
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.85em;
}
.t-dim {
  color: #67716a;
}
.t-high {
  color: var(--block);
}
.t-med {
  color: var(--approve);
}
.t-low {
  color: var(--allow);
}
.t-b {
  color: var(--paper);
  font-weight: 600;
}
.t-prompt {
  color: var(--allow);
  user-select: none; /* copying a command must not pick up the "$" */
}

.final {
  text-align: left;
  padding: 120px 0;
}
.final h2 {
  max-width: 14ch;
  font-size: clamp(40px, 7vw, 96px);
}

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 60px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
}
footer a {
  text-decoration: none;
  margin-right: 22px;
}
footer a:hover {
  color: var(--paper);
}

/* load-in */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: var(--r, 0s);
  }
  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- docs pages ---------- */
.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 64px 0 100px;
}
.doc aside {
  position: sticky;
  top: 24px;
  align-self: start;
  font-family: var(--mono);
  font-size: 12px;
}
.doc aside a {
  display: block;
  padding: 7px 0 7px 14px;
  color: var(--muted);
  text-decoration: none;
  border-left: 1px solid var(--line-strong);
  letter-spacing: 0.04em;
}
.doc aside a:hover {
  color: var(--paper);
  border-left-color: var(--allow);
}
.doc article h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  max-width: none;
  margin: 0 0 18px;
}
.doc article h2 {
  font-size: 32px;
  margin: 64px 0 16px;
  max-width: none;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc article h3 {
  margin-top: 32px;
  font-size: 20px;
}
.doc article p,
.doc article li {
  color: #c4cabb;
  max-width: 70ch;
}
.doc article ul,
.doc article ol {
  padding-left: 22px;
}
.doc .term {
  margin: 22px 0;
}
.callout {
  border-left: 3px solid var(--approve);
  background: rgba(255, 181, 36, 0.07);
  padding: 16px 20px;
  margin: 24px 0;
  max-width: 70ch;
}
.callout p {
  margin: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  margin: 24px 0;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #c4cabb;
}
th {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom-color: var(--line-strong);
}
.table-wrap {
  overflow-x: auto;
}

/* ---------- home: three decisions (static illustration) ---------- */
.demo {
  padding: 24px 0 72px;
  border-top: 0;
}
.acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.act {
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--tone, var(--line-strong));
  border-radius: var(--radius);
  background: rgba(17, 21, 18, 0.85);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
}
.act.allow {
  --tone: var(--allow);
}
.act.approve {
  --tone: var(--approve);
}
.act.block {
  --tone: var(--block);
}
.act-tag {
  margin: 0 0 18px;
}
.act-tag span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--tone);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 4px 9px;
}
.act dl {
  margin: 0;
  align-content: start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  flex: 1;
}
.act dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.act dd {
  margin: 0;
  color: #d3d8c9;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.act dd.mono {
  font-size: 13px;
  color: var(--paper);
  padding-top: 2px;
}
.act-foot {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.act-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fake {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  cursor: default;
}
.fake.approve-once {
  background: var(--approve);
  border-color: var(--approve);
  color: var(--ink);
}
.fake kbd {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.7;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0 4px;
}
.figure-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 70ch;
}

/* ---------- home: problem ---------- */
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 32px;
}
.pill-list li {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #c4cabb;
  background: rgba(17, 21, 18, 0.7);
}

/* ---------- home: control point ---------- */
.ctrl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.1fr) 36px minmax(0, 0.9fr) 36px minmax(
      0,
      1.1fr
    );
  align-items: stretch;
  margin: 8px 0 40px;
}
.ctrl-node {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 21, 18, 0.85);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ctrl-node b {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}
.ctrl-node small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.ctrl-node.hot {
  border-color: var(--allow);
  box-shadow: 0 0 0 4px rgba(93, 255, 154, 0.07);
}
.ctrl-node.hot b {
  color: var(--allow);
}
.ctrl-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
}
.ctrl-arrow::before {
  content: '\2192';
}
.ctrl-out {
  display: grid;
  gap: 8px;
  align-content: center;
}
.ctrl-out .o {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  text-align: center;
  background: var(--ink);
}
.o.allow {
  color: var(--allow);
}
.o.block {
  color: var(--block);
}
.o.approve {
  color: var(--approve);
}

/* ---------- home: validated flow ---------- */
.seq {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  counter-reset: seq;
}
.seq li {
  counter-increment: seq;
  padding: 20px 18px;
  border: 1px solid var(--line-strong);
  margin-left: -1px;
  background: rgba(17, 21, 18, 0.85);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.seq li::before {
  content: '0' counter(seq);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.seq b {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.seq b.mono {
  font-size: 13px;
}
.seq small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.seq li.hot {
  border-color: var(--allow);
  z-index: 1;
}
.seq li.hot b {
  color: var(--allow);
}
.seq li.amber b {
  color: var(--approve);
}
.seq li.end {
  gap: 10px;
}
.seq li.end span {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #b3baab;
}
.seq li.end b {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
}
.seq li.end .ok b {
  color: var(--allow);
}
.seq li.end .no b {
  color: var(--block);
}

/* ---------- home: sections ---------- */
.fine {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.checks.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 56px;
  max-width: 920px;
}
.ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.rung {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 21, 18, 0.85);
  padding: 26px 24px 28px;
}
.rung h3 {
  font-size: 34px;
  margin: 10px 0 2px;
}
.rung .verb {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--allow);
  margin: 0 0 14px;
}
.rung p:last-child {
  margin: 0;
  color: #b3baab;
  font-size: 16px;
}
.rung .status {
  margin: 0;
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.status.live {
  color: var(--allow);
}
.status.plan {
  color: var(--approve);
}
.rung.future {
  border-style: dashed;
  background: transparent;
}
.rung.future h3,
.rung.future .verb {
  color: var(--muted);
}
.statement {
  padding: 72px 0;
}
.statement p {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 28ch;
  color: var(--paper);
}
.scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}
.scope-col {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(17, 21, 18, 0.85);
  padding: 26px 26px 28px;
}
.scope-col h3 {
  font-size: 20px;
  margin-bottom: 18px;
}
.checks.limit li::before {
  background: var(--approve);
}
#scope .callout {
  max-width: none;
  margin-top: 18px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split,
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .doc aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }
  .doc aside a {
    border-left: 0;
    padding: 4px 0;
  }
  .acts,
  .ladder,
  .scope,
  .checks.wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .ctrl {
    grid-template-columns: minmax(0, 1fr);
  }
  .ctrl-arrow {
    height: 34px;
  }
  .ctrl-arrow::before {
    content: '\2193';
  }
  .ctrl-out {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .seq {
    grid-template-columns: minmax(0, 1fr);
  }
  .seq li {
    margin-left: 0;
    margin-top: -1px;
  }
  .nav ul {
    gap: 16px;
  }
  .nav li.hide-s {
    display: none;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .hero {
    padding-top: 40px;
  }
  section {
    padding: 64px 0;
  }
  .demo {
    padding: 8px 0 56px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .nav {
    padding: 16px 0;
  }
  .nav .btn {
    width: auto;
    padding: 12px 11px;
    font-size: 11px;
  }
  .nav ul {
    gap: 12px;
  }
  .nav a:not(.btn) {
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand svg {
    width: 22px;
    height: 22px;
  }
  .act dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .act dt {
    padding-top: 10px;
  }
  .btn {
    white-space: normal;
  }
  .nav .btn {
    white-space: nowrap;
  }
  .ctrl-out {
    grid-template-columns: minmax(0, 1fr);
  }
  .copy-line {
    max-width: 100%;
  }
}

/* delay utilities (no inline styles, so the CSP can forbid them) */
.rs-1 {
  --r: 0.08s;
}
.rs-2 {
  --r: 0.16s;
}
.rs-3 {
  --r: 0.24s;
}
.rs-4 {
  --r: 0.34s;
}

/* ---------- home: refinements ---------- */
#problem h2 {
  max-width: 24ch;
}
.split.even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
pre.wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.trace {
  list-style: none;
  padding: 0;
  margin: 8px 0 40px;
  max-width: 880px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #070908;
  overflow: hidden;
}
.trace li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}
.trace li + li {
  border-top: 1px solid var(--line);
}
.trace b {
  font-weight: 600;
}
.trace b.mono {
  font-size: 14px;
}
.trace .o {
  justify-self: start;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.trace .out {
  color: #c4cabb;
}
.trace .out::before {
  content: '\2192';
  color: var(--muted);
  margin-right: 12px;
  font-family: var(--mono);
}
@media (max-width: 900px) {
  .split.even {
    grid-template-columns: minmax(0, 1fr);
  }
  .trace li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* ---------- home: animated demo (a scripted simulation, never live) ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.sim {
  box-shadow: 10px 10px 0 rgba(36, 44, 39, 0.5);
  background: #070908;
  transition: opacity 0.4s ease;
}
.sim.fading .sim-body {
  opacity: 0;
}
.sim-body {
  padding: 18px 22px 22px;
  min-height: 372px;
  transition: opacity 0.4s ease;
}
.sim-flow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sim-flow b {
  color: var(--allow);
  font-weight: 400;
  margin: 0 4px;
}
.sim-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.sim-tool {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.sim .o {
  justify-self: start;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.sim-outs {
  display: grid;
}
.sim-out {
  grid-area: 1 / 1;
  font-size: 14px;
  color: #c4cabb;
}
.sim-out::before {
  content: '\2192';
  font-family: var(--mono);
  color: var(--muted);
  margin-right: 8px;
}
.sim-no {
  color: var(--block);
}
.sim-held {
  color: var(--approve);
  opacity: 0;
}
/* swap "held" for "denied" without the two labels overprinting each other */
.sim .sim-held[data-at] {
  transition-duration: 0.12s;
}
.sim .sim-no[data-at] {
  transition-delay: 0.18s;
}
.sim-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 0 15px;
}
.sim-q {
  font-size: 14px;
  color: var(--muted);
  margin-right: 4px;
}
.sim .fake.pressed {
  background: var(--block);
  border-color: var(--block);
  color: var(--ink);
  transform: translateY(1px) scale(0.97);
}

/* Without JavaScript, or with reduced motion, the simulation shows its final frame. With
   JavaScript, each element appears at its moment in the script. */
.sim [data-at] {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    background 0.2s ease;
}
@media (scripting: enabled) {
  .sim:not(.static) [data-at]:not([data-toggle]) {
    opacity: 0;
    transform: translateY(5px);
  }
  .sim:not(.static) [data-at]:not([data-toggle]).on {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
  .hero-copy h1 {
    font-size: clamp(40px, 4.6vw, 68px);
  }
}
@media (max-width: 560px) {
  .sim-body {
    padding: 16px 16px 18px;
    min-height: 0;
  }
  .sim {
    box-shadow: 6px 6px 0 rgba(36, 44, 39, 0.5);
  }
}
