:root {
  --ink: #12140f;
  --paper: #f7f6f1;
  --paper-warm: #efeee7;
  --white: #fffefa;
  --muted: #62645c;
  --muted-dark: #aeb2a7;
  --line: #d8d8cf;
  --line-strong: #b8baae;
  --acid: #a6e22e;
  --acid-dark: #548a08;
  --acid-wash: #eff8d8;
  --cyan: #0b8897;
  --cyan-bright: #3fc5d2;
  --cyan-wash: #dceff0;
  --orange: #ed6b2f;
  --orange-wash: #f8e4da;
  --dark: #11130f;
  --dark-soft: #1b1e17;
  --dark-line: #35392e;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, serif;
  --max: 1180px;
  --header: 76px;
  --shadow: 0 22px 55px rgba(18, 20, 15, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 20, 15, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 20, 15, 0.026) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 4% 3%, rgba(166, 226, 46, 0.17), transparent 25rem),
    radial-gradient(circle at 96% 24%, rgba(11, 136, 151, 0.11), transparent 28rem);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 27px;
  height: 2px;
  background: currentColor;
  content: "";
}

.eyebrow.acid {
  color: var(--acid-dark);
}

.eyebrow.cyan {
  color: var(--cyan);
}

.eyebrow.orange {
  color: var(--orange);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header);
  border-bottom: 1px solid rgba(184, 186, 174, 0.8);
  background: rgba(247, 246, 241, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  place-items: center;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  height: 1px;
  background: rgba(255, 254, 250, 0.22);
  content: "";
}

.brand-mark::before {
  width: 100%;
  transform: rotate(-33deg);
}

.brand-mark::after {
  width: 150%;
  background: var(--acid);
  transform: translate(7px, 3px) rotate(-33deg);
}

.brand-pulse {
  position: absolute;
  z-index: 1;
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(166, 226, 46, 0.18);
  transform: translate(4px, -2px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav > a:not(.nav-github) {
  position: relative;
  color: #484a43;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.site-nav > a:not(.nav-github)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav > a:hover::after,
.site-nav > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-github,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--dark);
  color: var(--white);
  background: var(--dark);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-github {
  min-height: 40px;
  padding: 0 15px;
}

.nav-github:hover,
.nav-github:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: var(--orange);
  color: var(--ink);
  background: var(--orange);
  transform: translateY(-2px);
}

.nav-github svg,
.button svg {
  width: 15px;
  height: 15px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.project-strip {
  border-bottom: 1px solid var(--dark-line);
  color: #d9ddd1;
  background: var(--dark);
}

.project-strip-inner {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-strip a {
  color: var(--acid);
  text-decoration: none;
}

.project-strip .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(166, 226, 46, 0.13);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 76px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 76px;
  left: calc(50% + 410px);
  width: 250px;
  height: 250px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 72px;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6.7vw, 6.55rem);
  font-weight: 600;
  letter-spacing: -0.067em;
  line-height: 0.91;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.hero h1 .underline {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.hero h1 .underline::after {
  position: absolute;
  z-index: -1;
  right: -0.02em;
  bottom: 0.05em;
  left: 0.02em;
  height: 0.17em;
  background: var(--acid);
  content: "";
  transform: rotate(-1.4deg);
}

.hero-lede {
  max-width: 675px;
  margin: 31px 0 0;
  color: #4e5049;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 49px;
  padding: 0 20px;
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--white);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--cyan);
  color: var(--white);
  background: var(--cyan);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.hero-note svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

.tape-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow:
    14px 14px 0 var(--cyan-wash),
    14px 14px 0 1px var(--cyan);
  transform: rotate(0.35deg);
}

.tape-card::before {
  position: absolute;
  z-index: -1;
  top: -24px;
  right: -24px;
  width: 76px;
  height: 76px;
  background:
    linear-gradient(90deg, transparent 48%, var(--orange) 48%, var(--orange) 52%, transparent 52%),
    linear-gradient(transparent 48%, var(--orange) 48%, var(--orange) 52%, transparent 52%);
  content: "";
  opacity: 0.8;
  transform: rotate(11deg);
}

.tape-titlebar {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tape-lights {
  display: flex;
  gap: 5px;
}

.tape-lights i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.tape-lights i:nth-child(1) {
  background: var(--orange);
}

.tape-lights i:nth-child(2) {
  background: var(--acid);
}

.tape-lights i:nth-child(3) {
  background: var(--cyan-bright);
}

.tape-body {
  padding: 17px;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
}

.tape-head,
.tick-row {
  display: grid;
  grid-template-columns: 1.5fr 0.35fr 0.7fr 0.88fr;
}

.tape-head {
  padding: 0 8px 9px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tick-row {
  position: relative;
  padding: 8px;
  border-top: 1px solid #e6e5de;
}

.tick-row .type {
  color: var(--cyan);
  font-weight: 700;
}

.tick-row .side {
  text-align: right;
}

.tick-row.current {
  border-color: var(--acid);
  background: var(--acid-wash);
  box-shadow: inset 3px 0 0 var(--acid-dark);
}

.tick-row.current::after {
  position: absolute;
  top: 50%;
  right: -8px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  content: "";
  transform: translateY(-50%);
}

.future-lock {
  position: relative;
  margin-top: 9px;
  padding: 12px 10px 11px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  color: #8c8e85;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(18, 20, 15, 0.025),
      rgba(18, 20, 15, 0.025) 6px,
      transparent 6px,
      transparent 12px
    );
  text-align: center;
  filter: blur(0.25px);
}

.future-lock strong {
  color: var(--muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.causal-frontier {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 0 5px;
  color: var(--orange);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.causal-frontier::before,
.causal-frontier::after {
  height: 1px;
  background: var(--orange);
  content: "";
}

.causal-frontier::before {
  width: 17px;
}

.causal-frontier::after {
  flex: 1;
}

.order-path {
  display: grid;
  gap: 8px;
  padding: 15px 17px 17px;
  border-top: 1px solid var(--ink);
  color: #e9ecdf;
  background: var(--dark);
  font-family: var(--mono);
  font-size: 0.64rem;
  grid-template-columns: 1fr auto 1fr auto 1fr;
}

.order-node {
  min-width: 0;
}

.order-node span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-dark);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-node strong {
  display: block;
  overflow: hidden;
  color: var(--white);
  font-size: 0.61rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-node:last-child strong {
  color: var(--acid);
}

.order-arrow {
  align-self: center;
  color: var(--orange);
}

.metrics {
  border-block: 1px solid var(--ink);
  background: var(--white);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  min-width: 0;
  padding: 26px 25px 24px;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.metric:nth-child(1) strong {
  color: var(--acid-dark);
}

.metric:nth-child(2) strong {
  color: var(--cyan);
}

.metric:nth-child(3) strong {
  color: var(--orange);
}

.metric span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.section {
  padding: 116px 0;
}

.section.compact {
  padding: 90px 0;
}

.section.dark {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 16%, rgba(166, 226, 46, 0.08), transparent 26rem),
    radial-gradient(circle at 10% 90%, rgba(11, 136, 151, 0.13), transparent 31rem),
    var(--dark);
}

.section.dark::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.7px, transparent 0.7px);
  background-size: 12px 12px;
  content: "";
  opacity: 0.35;
  pointer-events: none;
}

.section.dark > .shell {
  position: relative;
}

.section-head {
  display: grid;
  align-items: end;
  gap: 45px;
  margin-bottom: 56px;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
}

.section-number {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 19px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-number b {
  color: var(--cyan);
  font-size: 0.74rem;
}

.section-number::after {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.section.dark .section-number {
  color: var(--muted-dark);
}

.section.dark .section-number::after {
  background: var(--dark-line);
}

.section h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.058em;
  line-height: 1;
}

.section h2 em {
  color: var(--cyan);
  font-weight: 500;
}

.section.dark h2 em {
  color: var(--acid);
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.section.dark .section-intro {
  color: var(--muted-dark);
}

.truth-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.truth-card {
  position: relative;
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 254, 250, 0.82);
}

.truth-card.good {
  border-color: var(--cyan);
  box-shadow: inset 0 4px 0 var(--cyan);
}

.truth-card.bad {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(237, 107, 47, 0.035),
      rgba(237, 107, 47, 0.035) 8px,
      transparent 8px,
      transparent 16px
    ),
    var(--white);
  box-shadow: inset 0 4px 0 var(--orange);
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-kicker .tag {
  padding: 4px 8px;
  border: 1px solid currentColor;
  font-size: 0.54rem;
}

.truth-card.good .card-kicker {
  color: var(--cyan);
}

.truth-card.bad .card-kicker {
  color: var(--orange);
}

.truth-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.truth-card > p {
  margin: 0;
  color: var(--muted);
}

.event-flow {
  display: flex;
  align-items: stretch;
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.event-step {
  display: grid;
  min-width: 105px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  align-content: space-between;
}

.event-step span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.event-step strong {
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.35;
}

.event-step.future {
  border-style: dashed;
  color: var(--muted);
  background: var(--paper-warm);
}

.event-join {
  display: grid;
  min-width: 28px;
  color: var(--cyan);
  font-family: var(--mono);
  place-items: center;
}

.truth-card.bad .event-join {
  color: var(--orange);
}

.anti-quote {
  display: grid;
  margin-top: 20px;
  padding: 23px 25px;
  border-left: 4px solid var(--acid-dark);
  background: var(--acid-wash);
  grid-template-columns: auto 1fr;
  gap: 17px;
}

.anti-quote mark {
  align-self: start;
  padding: 2px 7px;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 700;
}

.anti-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
}

.pipeline-grid {
  display: grid;
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
  grid-template-columns: repeat(4, 1fr);
}

.pipeline-card {
  position: relative;
  min-height: 330px;
  padding: 29px 25px 27px;
  overflow: hidden;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  background: rgba(27, 30, 23, 0.68);
}

.pipeline-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--acid);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

.pipeline-card:nth-child(2)::before {
  background: var(--cyan-bright);
}

.pipeline-card:nth-child(3)::before {
  background: var(--orange);
}

.pipeline-card:nth-child(4)::before {
  background: var(--acid);
}

.pipeline-card:hover::before {
  transform: scaleX(1);
}

.pipeline-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 35px;
  border: 1px solid var(--dark-line);
  color: var(--acid);
  background: var(--dark);
  place-items: center;
}

.pipeline-card:nth-child(2) .pipeline-icon {
  color: var(--cyan-bright);
}

.pipeline-card:nth-child(3) .pipeline-icon {
  color: var(--orange);
}

.pipeline-icon svg {
  width: 22px;
  height: 22px;
}

.pipeline-card .step {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-card h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.pipeline-card p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
  line-height: 1.65;
}

.pipeline-card code {
  display: block;
  margin-top: 22px;
  overflow-wrap: anywhere;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.65rem;
  line-height: 1.55;
}

.pipeline-arrow {
  position: absolute;
  z-index: 2;
  top: 48px;
  right: -13px;
  display: grid;
  width: 25px;
  height: 25px;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  color: var(--orange);
  background: var(--dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  place-items: center;
}

.quickstart {
  display: grid;
  align-items: stretch;
  margin-top: 24px;
  border: 1px solid var(--dark-line);
  background: var(--dark-soft);
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.quickstart.cron-example {
  margin-top: 16px;
  border-color: #4a5434;
}

.quickstart.cron-example .quickstart-copy span {
  color: var(--acid);
}

.quickstart-copy {
  padding: 31px;
  border-right: 1px solid var(--dark-line);
}

.quickstart-copy span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quickstart-copy h3 {
  margin: 11px 0 12px;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.18;
}

.quickstart-copy p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.code-panel {
  position: relative;
  min-width: 0;
  color: #e8ebdf;
  background: #151711;
}

.code-toolbar {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 15px;
  border-bottom: 1px solid var(--dark-line);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.code-toolbar .file {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-toolbar .file::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-bright);
  content: "";
}

.copy-button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--dark-line);
  color: var(--muted-dark);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
}

pre {
  margin: 0;
  overflow: auto;
  tab-size: 4;
}

pre code {
  display: block;
  min-width: max-content;
  padding: 23px 25px 25px;
  font-family: var(--mono);
  font-size: 0.71rem;
  line-height: 1.72;
}

.code-comment {
  color: #83887c;
}

.code-command {
  color: var(--acid);
}

.code-value {
  color: var(--cyan-bright);
}

.code-flag {
  color: #ff9464;
}

.speed-note {
  margin: 17px 0 0;
  color: #898e83;
  font-family: var(--mono);
  font-size: 0.58rem;
}

.api-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.api-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--white);
  grid-template-rows: auto auto 1fr;
}

.api-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}

.api-card-head span {
  font-family: var(--mono);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-card-head b {
  display: inline-block;
  padding: 4px 8px;
  color: var(--cyan);
  background: var(--cyan-wash);
  font-family: var(--mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.api-card:nth-child(2) .api-card-head b {
  color: #b84214;
  background: var(--orange-wash);
}

.api-copy {
  padding: 25px 25px 23px;
}

.api-copy h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.api-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.api-card .code-panel {
  border-top: 1px solid var(--ink);
}

.storage-map {
  display: grid;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-warm);
  grid-template-columns: 0.82fr 1.18fr;
}

.storage-copy {
  display: grid;
  padding: 33px;
  border-right: 1px solid var(--line-strong);
  align-content: center;
}

.storage-copy h3 {
  margin: 0 0 11px;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.storage-copy p {
  margin: 0;
  color: var(--muted);
}

.file-tree {
  display: grid;
  padding: 28px;
  color: #e8ebdf;
  background: var(--dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.9;
  align-content: center;
}

.file-tree .dim {
  color: #777d70;
}

.file-tree .folder {
  color: var(--cyan-bright);
}

.file-tree .active {
  display: inline-block;
  padding-inline: 4px;
  color: var(--ink);
  background: var(--acid);
}

.broker-layout {
  display: grid;
  align-items: start;
  gap: 58px;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
}

.broker-layout > * {
  min-width: 0;
}

.broker-copy {
  position: sticky;
  top: calc(var(--header) + 35px);
}

.broker-copy h2 {
  font-size: clamp(2.7rem, 4.6vw, 4.25rem);
}

.broker-copy > p {
  margin: 25px 0 0;
  color: var(--muted-dark);
  font-size: 1.02rem;
}

.broker-points {
  display: grid;
  gap: 0;
  margin: 31px 0 0;
  border-top: 1px solid var(--dark-line);
}

.broker-point {
  display: grid;
  padding: 17px 0;
  border-bottom: 1px solid var(--dark-line);
  grid-template-columns: 30px 1fr;
  gap: 13px;
}

.broker-point b {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.broker-point span {
  color: var(--muted-dark);
  font-size: 0.88rem;
  line-height: 1.55;
}

.broker-point strong {
  color: var(--white);
  font-weight: 600;
}

.broker-stage {
  border: 1px solid var(--dark-line);
  background: rgba(27, 30, 23, 0.76);
}

.broker-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.broker-stage-head span:last-child {
  color: var(--acid);
}

.broker-sequence {
  display: grid;
  padding: 26px;
  gap: 0;
}

.broker-event {
  display: grid;
  min-height: 91px;
  grid-template-columns: 84px 27px 1fr;
}

.broker-time {
  padding-top: 3px;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.59rem;
}

.broker-line {
  position: relative;
  display: flex;
  justify-content: center;
}

.broker-line::before {
  width: 1px;
  height: 100%;
  background: var(--dark-line);
  content: "";
}

.broker-event:last-child .broker-line::before {
  height: 17px;
}

.broker-dot {
  position: absolute;
  top: 3px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--dark);
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 0 1px var(--cyan-bright);
}

.broker-event.intent .broker-dot {
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.broker-event.locked .broker-dot {
  background: var(--dark);
  box-shadow: 0 0 0 1px var(--muted-dark);
}

.broker-event.fill .broker-dot {
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--acid);
}

.broker-event-copy {
  padding: 0 0 24px 14px;
}

.broker-event-copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.broker-event-copy strong {
  display: block;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
}

.broker-event-copy small {
  display: block;
  margin-top: 5px;
  color: #868b7f;
  font-size: 0.78rem;
}

.broker-event.locked .broker-event-copy {
  opacity: 0.58;
}

.execution-rule {
  display: grid;
  border-top: 1px solid var(--dark-line);
  grid-template-columns: repeat(2, 1fr);
}

.execution-side {
  padding: 19px 21px;
}

.execution-side + .execution-side {
  border-left: 1px solid var(--dark-line);
}

.execution-side span {
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.execution-side strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.22rem;
}

.execution-side:first-child strong {
  color: var(--orange);
}

.execution-side:last-child strong {
  color: var(--cyan-bright);
}

.rtta-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--ink);
  background: var(--acid);
}

.rtta-band::after {
  position: absolute;
  top: -170px;
  right: -90px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(18, 20, 15, 0.32);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 45px rgba(18, 20, 15, 0.035),
    0 0 0 90px rgba(18, 20, 15, 0.025);
}

.rtta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 345px;
  align-items: center;
  gap: 65px;
  grid-template-columns: 0.84fr 1.16fr;
}

.rtta-label {
  display: grid;
  width: min(100%, 315px);
  aspect-ratio: 1.75;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--ink);
  place-items: center;
}

.rtta-label-inner {
  text-align: center;
}

.rtta-label strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.rtta-label span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rtta-copy .eyebrow {
  margin-bottom: 13px;
}

.rtta-copy h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4.8vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.rtta-copy p {
  max-width: 690px;
  margin: 20px 0 0;
  font-size: 1.02rem;
}

.rtta-copy a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.rtta-copy a::after {
  content: "↗";
  transition: transform 160ms ease;
}

.rtta-copy a:hover::after {
  transform: translate(3px, -3px);
}

.live-layout {
  display: grid;
  align-items: start;
  gap: 31px;
  grid-template-columns: minmax(270px, 0.58fr) minmax(0, 1.42fr);
}

.live-layout > * {
  min-width: 0;
}

.live-aside {
  display: grid;
  gap: 16px;
}

.contract-card {
  padding: 25px;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.contract-card.dark-card {
  border-color: var(--ink);
  color: var(--white);
  background: var(--dark);
}

.contract-card .index {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contract-card.dark-card .index {
  color: var(--acid);
}

.contract-card h3 {
  margin: 9px 0 9px;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.contract-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.contract-card.dark-card p {
  color: var(--muted-dark);
}

.contract-card code {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.75em;
}

.contract-card.dark-card code {
  color: var(--acid);
}

.boundary-note {
  padding: 19px 21px;
  border: 1px solid var(--orange);
  background: var(--orange-wash);
  font-size: 0.87rem;
  line-height: 1.6;
}

.boundary-note strong {
  display: block;
  margin-bottom: 4px;
  color: #b84214;
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-panel {
  min-width: 0;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--cyan-wash);
}

.template-panel pre {
  max-height: 740px;
}

.template-panel pre code {
  font-size: 0.66rem;
  line-height: 1.65;
}

.run-lines {
  display: grid;
  gap: 9px;
  margin-top: 25px;
}

.run-line {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.62rem;
  grid-template-columns: 87px 1fr;
  gap: 12px;
}

.run-line span {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-line code {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  color: var(--white);
  background: var(--cyan);
}

.cta::before {
  position: absolute;
  top: -100px;
  left: -90px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.045),
    0 0 0 90px rgba(255, 255, 255, 0.025);
}

.cta-inner {
  position: relative;
  display: grid;
  min-height: 410px;
  align-items: center;
  gap: 55px;
  grid-template-columns: 1fr auto;
}

.cta h2 {
  max-width: 800px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.cta p {
  max-width: 640px;
  margin: 21px 0 0;
  color: #d8f1f3;
  font-size: 1.02rem;
}

.cta .button {
  min-width: 190px;
  min-height: 57px;
  border-color: var(--white);
  color: var(--ink);
  background: var(--white);
}

.cta .button:hover,
.cta .button:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
}

.site-footer {
  color: #d6d9ce;
  background: var(--dark);
}

.footer-main {
  display: grid;
  gap: 50px;
  padding: 52px 0 44px;
  grid-template-columns: 1fr auto;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand .brand-mark {
  flex: 0 0 auto;
  border-color: var(--dark-line);
  background: var(--dark-soft);
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.footer-brand p {
  max-width: 460px;
  margin: 7px 0 0;
  color: var(--muted-dark);
  font-size: 0.84rem;
}

.footer-brand p a {
  color: var(--acid);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px 34px;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
}

.footer-links a {
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.64rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--acid);
}

.footer-legal {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--dark-line);
  color: #777c71;
  font-family: var(--mono);
  font-size: 0.54rem;
  line-height: 1.5;
}

.footer-legal p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .site-nav {
    gap: 17px;
  }

  .site-nav > a:not(.nav-github) {
    display: none;
  }

  .hero {
    padding-top: 78px;
  }

  .hero-grid {
    gap: 60px;
    grid-template-columns: 1fr;
  }

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

  .tape-card {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .metric:nth-child(3) {
    padding-left: 0;
  }

  .section-head {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-arrow {
    display: none;
  }

  .broker-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .broker-copy {
    position: static;
  }

  .broker-copy > p {
    max-width: 700px;
  }

  .rtta-inner {
    gap: 45px;
    grid-template-columns: 0.7fr 1.3fr;
  }

  .live-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .live-aside {
    grid-template-columns: repeat(2, 1fr);
  }

  .boundary-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --header: 66px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-copy small {
    display: none;
  }

  .nav-github {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header);
    right: 0;
    left: 0;
    display: none;
    padding: 15px 14px 18px;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 0 18px 25px rgba(18, 20, 15, 0.12);
    align-items: stretch;
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav.open > a:not(.nav-github),
  .site-nav.open .nav-github {
    display: flex;
  }

  .site-nav > a:not(.nav-github) {
    padding: 10px 4px;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .project-strip-inner {
    justify-content: center;
  }

  .project-strip .status {
    display: none;
  }

  .hero {
    padding: 67px 0 60px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15vw, 5.2rem);
  }

  .hero h1 .underline {
    white-space: normal;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tape-card {
    box-shadow:
      7px 7px 0 var(--cyan-wash),
      7px 7px 0 1px var(--cyan);
  }

  .tape-body {
    padding: 12px;
    font-size: 0.6rem;
  }

  .tape-head,
  .tick-row {
    grid-template-columns: 1.4fr 0.3fr 0.7fr 0.8fr;
  }

  .order-path {
    grid-template-columns: 1fr;
  }

  .order-arrow {
    transform: rotate(90deg);
  }

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

  .metric,
  .metric:first-child,
  .metric:nth-child(3),
  .metric:last-child {
    padding: 21px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .metric:first-child {
    border-top: 0;
  }

  .section {
    padding: 82px 0;
  }

  .section.compact {
    padding: 70px 0;
  }

  .section-head {
    gap: 24px;
    margin-bottom: 38px;
  }

  .truth-grid,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .truth-card {
    padding: 25px 21px;
  }

  .anti-quote {
    grid-template-columns: 1fr;
  }

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

  .pipeline-card {
    min-height: auto;
  }

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

  .quickstart-copy {
    border-right: 0;
    border-bottom: 1px solid var(--dark-line);
  }

  pre code {
    padding: 20px;
    font-size: 0.64rem;
  }

  .storage-map {
    grid-template-columns: 1fr;
  }

  .storage-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .broker-sequence {
    padding: 22px 15px;
  }

  .broker-event {
    grid-template-columns: 74px 23px 1fr;
  }

  .rtta-inner {
    padding: 65px 0 74px;
    grid-template-columns: 1fr;
  }

  .rtta-label {
    width: 230px;
  }

  .live-aside {
    grid-template-columns: 1fr;
  }

  .boundary-note {
    grid-column: auto;
  }

  .template-panel {
    box-shadow: 7px 7px 0 var(--cyan-wash);
  }

  .run-line {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta-inner {
    min-height: 445px;
    padding: 65px 0;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .cta .button {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-legal {
    padding: 17px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
