/* AgentLane site — design tokens, type and base layout.
   Motif: the logo's two slanted slabs. Black = the human lane, orange = the agent lane. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-normal-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-italic-400.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-var.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: #f3eee5;
  --paper-2: #ebe4d6;
  --ink: #17150f;
  --ink-2: #4a4538;
  --ink-3: #6f6957;
  --line: #d6ccb9;
  --orange: #ff6a13;
  --orange-ink: #b53e00;
  --orange-soft: #ffe2cc;
  --night: #15130e;
  --night-2: #211e16;
  --night-line: #3a3528;
  --bone: #f3eee5;
  --ok: #2f6f4f;
  --bad: #a8321f;

  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --lean: -14deg; /* slab slant, taken from the logo */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--orange-ink);
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}
code,
kbd,
pre {
  font-family: var(--mono);
}
code {
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 0.1em 0.38em;
  border-radius: 3px;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--ink);
  color: var(--bone);
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--mono);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 10px;
  background: var(--orange);
  transform: skewX(var(--lean));
  flex: none;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}
h2 {
  font-size: clamp(38px, 5.4vw, 72px);
}
h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
}
em {
  font-style: italic;
}
.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--ink-2);
  max-width: 56ch;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--bone);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 15px/1 var(--mono);
  padding: 16px 22px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn:hover {
  color: var(--fg);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--orange);
}
.btn.primary {
  --bg: var(--orange);
  --fg: var(--ink);
}
.btn.ghost {
  --bg: transparent;
  --fg: var(--ink);
}
.btn.ghost:hover {
  color: var(--ink);
}

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 28px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img {
  width: 30px;
  height: 30px;
}
.top nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font: 500 13px var(--mono);
  align-items: center;
}
.top nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.top nav a:hover {
  border-bottom-color: var(--orange);
  color: var(--ink);
}
.top nav a.cta {
  background: var(--ink);
  color: var(--bone);
  padding: 8px 14px;
  border: 0;
}
.top nav a.cta:hover {
  background: var(--orange);
  color: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(46px, 5.6vw, 88px);
  line-height: 0.94;
}
.hero h1 em {
  color: var(--orange-ink);
  display: inline-block;
}
.hero .lede {
  margin: 26px 0 30px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font: 500 12px var(--mono);
}
.chips li {
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--ink-2);
  background: var(--paper);
}
.chips li.warn {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--ink);
}

/* ---------- the stage: a live model of the problem and the fix ---------- */
.stage {
  --cycle: 11s;
  background: var(--night);
  color: var(--bone);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--orange);
  position: relative;
}
.stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--night-line);
  flex-wrap: wrap;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--night-line);
}
.seg button {
  font: 600 13px var(--mono);
  padding: 9px 14px;
  color: #cfc8b6;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: var(--bone);
  color: var(--ink);
}
.seg button.with[aria-pressed='true'] {
  background: var(--orange);
}
.seg button:focus-visible {
  outline-offset: -3px;
}
.stage-note {
  margin-left: auto;
  font: 12px var(--mono);
  color: #a79f8a;
}

.screen {
  position: relative;
  aspect-ratio: 16 / 10.2;
  margin: 14px;
  background:
    linear-gradient(135deg, #2a251a 0%, #1c1912 100%);
  overflow: hidden;
  container-type: inline-size;
}
.win {
  position: absolute;
  background: #fbf8f1;
  color: var(--ink);
  border: 1.5px solid #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    left 0.7s cubic-bezier(0.6, 0, 0.2, 1),
    top 0.7s cubic-bezier(0.6, 0, 0.2, 1),
    width 0.7s cubic-bezier(0.6, 0, 0.2, 1),
    height 0.7s cubic-bezier(0.6, 0, 0.2, 1);
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  height: 7.2cqw;
  min-height: 24px;
  background: var(--ink);
  color: var(--bone);
  font: 600 clamp(9px, 1.5cqw, 12px) var(--mono);
  white-space: nowrap;
  flex: none;
}
.win-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d664f;
  flex: none;
}
.win-bar .state {
  margin-left: auto;
  font-weight: 400;
  opacity: 0.85;
}
.win-agent .win-bar {
  background: #5a2d10;
}
.win-body {
  padding: 3.2cqw;
  flex: 1;
  position: relative;
  font-size: clamp(9px, 1.75cqw, 14px);
  line-height: 1.5;
}
.win-human {
  left: 2%;
  top: 11%;
  width: 47%;
  height: 85%;
  z-index: 2;
}
.win-agent {
  left: 51%;
  top: 11%;
  width: 47%;
  height: 85%;
  z-index: 1;
}
.doc-title {
  font: 600 clamp(10px, 2cqw, 15px) var(--serif);
  font-family: var(--serif);
  font-size: clamp(14px, 3.1cqw, 24px);
  margin: 0 0 1.4cqw;
}
.typed-line {
  font-family: var(--mono);
  font-size: clamp(8.5px, 1.6cqw, 13px);
  line-height: 1.7;
  word-break: break-word;
}
.typed-line .t {
  display: inline;
  position: relative;
}
.caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  background: var(--ink);
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.badge {
  position: absolute;
  right: 2.2cqw;
  bottom: 2cqw;
  font: 600 clamp(8px, 1.4cqw, 11px) var(--mono);
  padding: 4px 7px;
  background: var(--ink);
  color: var(--bone);
  letter-spacing: 0.04em;
}
.win-agent .badge {
  background: var(--orange);
  color: var(--ink);
}
.fakepage h4 {
  margin: 0 0 1.2cqw;
  font: 600 clamp(9px, 1.9cqw, 15px) var(--sans);
}
.fakepage .row {
  display: flex;
  gap: 1.4cqw;
  align-items: center;
  margin-bottom: 1.6cqw;
}
.fakefield {
  flex: 1;
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 0.8cqw 1.2cqw;
  font: clamp(8.5px, 1.6cqw, 13px) var(--mono);
  min-height: 4cqw;
  overflow: hidden;
  white-space: nowrap;
}
.fakebtn {
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  font: 600 clamp(8.5px, 1.6cqw, 13px) var(--mono);
  padding: 0.8cqw 1.8cqw;
}
.toast {
  background: #d9ecdf;
  border-left: 4px solid var(--ok);
  padding: 1cqw 1.4cqw;
  font-size: clamp(8.5px, 1.6cqw, 13px);
  opacity: 0;
}
.bars {
  display: grid;
  gap: 0.8cqw;
  margin-top: 1.6cqw;
}
.bars span {
  height: 1.3cqw;
  background: var(--paper-2);
  display: block;
}
.bars span:nth-child(2) {
  width: 82%;
}
.bars span:nth-child(3) {
  width: 64%;
}

/* pointer cursors */
.ptr {
  position: absolute;
  z-index: 8;
  width: 3.1cqw;
  min-width: 14px;
  pointer-events: none;
}
.ptr svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.55));
}
.ptr b {
  position: absolute;
  left: 70%;
  top: 80%;
  font: 600 clamp(8px, 1.3cqw, 11px) var(--mono);
  padding: 2px 5px;
  white-space: nowrap;
}
.ptr-agent b {
  background: var(--orange);
  color: var(--ink);
}
.ptr-human b {
  background: var(--bone);
  color: var(--ink);
}

/* focus & verdict overlays */
.focus-flag {
  position: absolute;
  z-index: 9;
  top: 1.2cqw;
  left: 50%;
  transform: translateX(-50%);
  font: 600 clamp(9px, 1.5cqw, 12px) var(--mono);
  background: var(--bone);
  color: var(--ink);
  padding: 5px 10px;
  border: 1.5px solid #000;
  white-space: nowrap;
}
.focus-flag .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 6px;
}
.pause {
  position: absolute;
  inset: 0;
  top: 7.2cqw;
  background: rgba(23, 21, 15, 0.62);
  color: var(--bone);
  display: grid;
  place-items: center;
  text-align: center;
  font: 600 clamp(9px, 1.8cqw, 14px) var(--mono);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}
.lost {
  position: absolute;
  z-index: 6;
  font: 600 clamp(8px, 1.4cqw, 11px) var(--mono);
  background: var(--bad);
  color: #fff;
  padding: 3px 6px;
  opacity: 0;
}

/* timeline tracks */
.tracks {
  margin: 0 14px 14px;
  display: grid;
  gap: 8px;
  font: 12px var(--mono);
}
.track {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 10px;
}
.track > span {
  color: #cfc8b6;
  font-weight: 600;
}
.lane {
  position: relative;
  height: 20px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #2d291e calc(10% - 1px) 10%);
  overflow: hidden;
}
.seg-run {
  position: absolute;
  top: 2px;
  bottom: 2px;
  transform: skewX(var(--lean));
}
.human-run {
  background: var(--bone);
}
.agent-run {
  background: var(--orange);
}
.wait-run {
  background: repeating-linear-gradient(135deg, transparent 0 4px, #5b5340 4px 6px);
  border: 1px dashed #6d664f;
}
.verdict {
  margin: 0 14px 14px;
  padding: 12px 14px;
  border: 1px solid var(--night-line);
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
  font: 13px/1.45 var(--mono);
}
.verdict strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
}
.verdict .v-with {
  display: none;
}
.stage[data-mode='with'] .v-with {
  display: inline;
}
.stage[data-mode='with'] .v-without {
  display: none;
}
.stage[data-mode='without'] .v-with {
  display: none;
}
.v-without strong {
  color: #ff9a62;
}
.v-with strong {
  color: var(--orange);
}
.shared {
  margin: 0 14px 12px;
  border: 1.5px dashed #6d664f;
  text-align: center;
  padding: 7px;
  font: 12px var(--mono);
  color: #cfc8b6;
}

/* ===== WITH AgentLane: two windows side by side, both live ===== */
.stage[data-mode='with'] .pause,
.stage[data-mode='with'] .lost,
.stage[data-mode='with'] .wait-run,
.stage[data-mode='without'] .run-with {
  display: none;
}
.stage[data-mode='with'] .run-without {
  display: none;
}
.stage[data-mode='with'] .win-agent .win-bar {
  background: #5a2d10;
}
.stage[data-mode='with'] .win-human .t-clip {
  animation: type-with var(--cycle) steps(38, end) infinite;
}
@keyframes type-with {
  0% {
    width: 0;
  }
  92%,
  100% {
    width: 38ch;
  }
}
.t-clip {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 38ch;
  max-width: 100%;
}
.stage[data-mode='with'] .agent-field-text {
  animation: field-with var(--cycle) steps(8, end) infinite;
}
@keyframes field-with {
  0%,
  10% {
    width: 0;
  }
  30%,
  100% {
    width: 8ch;
  }
}
.agent-field-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 8ch;
  vertical-align: bottom;
}
.stage[data-mode='with'] .toast {
  animation: toast-with var(--cycle) infinite;
}
@keyframes toast-with {
  0%,
  52% {
    opacity: 0;
  }
  56%,
  92% {
    opacity: 1;
  }
  96%,
  100% {
    opacity: 0;
  }
}
.stage[data-mode='with'] .ptr-agent {
  animation: ptr-agent-with var(--cycle) cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes ptr-agent-with {
  0%,
  8% {
    left: 66%;
    top: 40%;
  }
  18% {
    left: 70%;
    top: 22%;
  }
  40%,
  44% {
    left: 70%;
    top: 22%;
  }
  54%,
  62% {
    left: 88%;
    top: 22%;
  }
  80%,
  100% {
    left: 88%;
    top: 62%;
  }
}
.stage[data-mode='with'] .ptr-human {
  display: none;
}
.stage[data-mode='with'] .focus-flag .where::after {
  content: 'yours · never moved';
}
.stage[data-mode='with'] .win-agent .state::after {
  content: 'unfocused · restored';
}
.stage[data-mode='with'] .win-human .state::after {
  content: 'focused';
}
.stage[data-mode='with'] .win-human .badge::after {
  content: 'YOU · TYPING';
}
.stage[data-mode='with'] .win-agent .badge::after {
  content: 'AGENT · WORKING';
}

/* ===== WITHOUT: one focus, the two take turns on the same windows ===== */
.stage[data-mode='without'] .win-human {
  left: 2%;
  top: 11%;
  width: 62%;
  height: 72%;
  animation: z-human var(--cycle) steps(1) infinite;
}
.stage[data-mode='without'] .win-agent {
  left: 36%;
  top: 22%;
  width: 62%;
  height: 74%;
  animation: z-agent var(--cycle) steps(1) infinite;
}
@keyframes z-human {
  0% {
    z-index: 3;
  }
  27% {
    z-index: 1;
  }
  55% {
    z-index: 3;
  }
  72% {
    z-index: 1;
  }
  90%,
  100% {
    z-index: 3;
  }
}
@keyframes z-agent {
  0% {
    z-index: 1;
  }
  27% {
    z-index: 3;
  }
  55% {
    z-index: 1;
  }
  72% {
    z-index: 3;
  }
  90%,
  100% {
    z-index: 1;
  }
}
.stage[data-mode='without'] .win-human .t-clip {
  animation: type-without var(--cycle) steps(38, end) infinite;
}
@keyframes type-without {
  0% {
    width: 0;
  }
  26% {
    width: 14ch;
  }
  56% {
    width: 14ch;
  }
  70% {
    width: 23ch;
  }
  90%,
  100% {
    width: 23ch;
  }
}
.stage[data-mode='without'] .agent-field-text {
  animation: field-without var(--cycle) steps(8, end) infinite;
}
@keyframes field-without {
  0%,
  28% {
    width: 0;
  }
  42%,
  100% {
    width: 8ch;
  }
}
.stage[data-mode='without'] .toast {
  animation: toast-without var(--cycle) infinite;
}
@keyframes toast-without {
  0%,
  46% {
    opacity: 0;
  }
  50%,
  66% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
  }
}
.stage[data-mode='without'] .pause-human {
  animation: pause-human var(--cycle) steps(1) infinite;
}
@keyframes pause-human {
  0%,
  27% {
    opacity: 0;
  }
  28%,
  54% {
    opacity: 1;
  }
  55%,
  72% {
    opacity: 0;
  }
  73%,
  89% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}
.stage[data-mode='without'] .pause-human::after {
  content: 'your window lost the keyboard';
}
.stage[data-mode='without'] .pause-agent {
  display: none;
}
.stage[data-mode='without'] .lost {
  left: 12%;
  top: 40%;
  animation: lost var(--cycle) steps(1) infinite;
}
@keyframes lost {
  0%,
  28% {
    opacity: 0;
  }
  29%,
  40% {
    opacity: 1;
  }
  41%,
  72% {
    opacity: 0;
  }
  73%,
  80% {
    opacity: 1;
  }
  81%,
  100% {
    opacity: 0;
  }
}
.stage[data-mode='without'] .lost::after {
  content: 'your keystrokes interrupted';
}
.stage[data-mode='without'] .ptr-agent {
  animation: ptr-agent-without var(--cycle) cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes ptr-agent-without {
  0%,
  26% {
    left: 92%;
    top: 90%;
    opacity: 0;
  }
  30% {
    left: 62%;
    top: 50%;
    opacity: 1;
  }
  38% {
    left: 66%;
    top: 40%;
    opacity: 1;
  }
  46% {
    left: 86%;
    top: 40%;
  }
  54% {
    left: 86%;
    top: 60%;
    opacity: 1;
  }
  56%,
  100% {
    left: 92%;
    top: 90%;
    opacity: 0;
  }
}
.stage[data-mode='without'] .ptr-human {
  animation: ptr-human-without var(--cycle) cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes ptr-human-without {
  0%,
  26% {
    left: 30%;
    top: 30%;
    opacity: 1;
  }
  30%,
  54% {
    left: 22%;
    top: 40%;
    opacity: 0.3;
  }
  58%,
  72% {
    left: 30%;
    top: 32%;
    opacity: 1;
  }
  76%,
  88% {
    left: 22%;
    top: 40%;
    opacity: 0.3;
  }
  92%,
  100% {
    left: 30%;
    top: 30%;
    opacity: 1;
  }
}
.stage[data-mode='without'] .focus-flag {
  animation: flag-bg var(--cycle) steps(1) infinite;
}
@keyframes flag-bg {
  0%,
  27% {
    background: var(--bone);
  }
  28%,
  54% {
    background: var(--orange);
  }
  55%,
  72% {
    background: var(--bone);
  }
  73%,
  89% {
    background: var(--orange);
  }
  90%,
  100% {
    background: var(--bone);
  }
}
.stage[data-mode='without'] .focus-flag .where::after {
  content: 'one keyboard · two claimants';
}
.stage[data-mode='without'] .win-human .state::after {
  content: 'sharing focus';
}
.stage[data-mode='without'] .win-agent .state::after {
  content: 'sharing focus';
}
.stage[data-mode='without'] .win-human .badge::after {
  content: 'YOU · INTERRUPTED';
}
.stage[data-mode='without'] .win-agent .badge::after {
  content: 'AGENT · TAKING TURNS';
}
.stage[data-mode='without'] .win-agent .win-bar {
  background: #5a2d10;
}

/* static fallback when motion is reduced: show the finished state, no keyframes */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .stage *,
  .stage *::before,
  .stage *::after {
    animation: none !important;
    transition: none !important;
  }
  .stage .ptr-agent {
    left: 88%;
    top: 60%;
    opacity: 1;
  }
  .stage[data-mode='without'] .pause-human {
    opacity: 1;
  }
  .stage[data-mode='without'] .win-human {
    z-index: 1;
  }
  .stage[data-mode='without'] .win-agent {
    z-index: 3;
  }
  .stage[data-mode='without'] .lost {
    opacity: 1;
  }
  .stage .toast {
    opacity: 1;
  }
  .stage[data-mode='without'] .t-clip {
    width: 14ch;
  }
}
.stage .caret {
  animation: blink 1s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .stage .caret {
    animation: none !important;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .stage {
    box-shadow: 6px 6px 0 var(--orange);
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .top nav {
    gap: 14px;
  }
  .top nav .hide-sm {
    display: none;
  }
  .stage-note {
    display: none;
  }
  .track {
    grid-template-columns: 44px 1fr;
  }
}

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  left: 0;
  z-index: 3;
  animation: play var(--cycle) linear infinite;
}
@keyframes play {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .playhead {
    display: none;
  }
}

/* ---------- lane analogy (road) ---------- */
.road {
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.road h2 em {
  color: var(--orange-ink);
}
.road .lede {
  margin-top: 22px;
}
.roadway {
  margin: 44px 0 0;
}
.road-surface {
  --road: #2a2720;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  height: clamp(220px, 28vw, 300px);
  padding: 0 0 34px;
  background: var(--road);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.road-lane {
  position: relative;
  min-height: 0;
}
.road-divider {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--bone) 0 36px, transparent 36px 72px);
  opacity: 0.85;
  animation: road-dash 1.6s linear infinite;
}
.road-tag {
  position: absolute;
  left: 14px;
  z-index: 2;
  font: 500 12px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a79f8a;
}
.road-tag-top {
  top: 10px;
}
.road-tag-bottom {
  bottom: 44px;
}
.road-surface-label {
  position: absolute;
  inset: auto 0 0;
  padding: 8px 14px;
  background: var(--night);
  color: #cfc8b6;
  font: 500 12px var(--mono);
  border-top: 2px solid var(--orange);
}
.car {
  position: absolute;
  top: 50%;
  left: 0;
  width: 112px;
  height: 46px;
  margin-top: -18px;
  display: grid;
  place-items: center;
  font: 600 13px var(--mono);
  border: 2px solid #000;
  border-radius: 10px 18px 18px 10px;
  transform: translateX(var(--from, 0));
  animation: car-drive var(--t) linear infinite;
}
.car::before,
.car::after {
  content: '';
  position: absolute;
  bottom: -7px;
  width: 16px;
  height: 12px;
  background: #000;
  border-radius: 4px;
}
.car::before {
  left: 14px;
}
.car::after {
  right: 14px;
}
.car-you {
  --t: 9s;
  background: var(--bone);
  color: var(--ink);
}
.car-agent {
  --t: 6s;
  background: var(--orange);
  color: var(--ink);
}
.road-lane-agent .car {
  margin-top: -26px;
}
@keyframes car-drive {
  from {
    left: -130px;
  }
  to {
    left: 100%;
  }
}
@keyframes road-dash {
  to {
    background-position: -72px 0;
  }
}
.road-cap {
  margin: 0 0 10px;
  font: 500 13px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.road-cap b {
  color: var(--ink);
}
.roadway-with {
  margin-top: 28px;
}
.road-surface-one {
  grid-template-rows: 1fr;
}
.road-lane-shared {
  display: block;
}
.car-jam {
  top: 58%;
  margin-top: -23px;
  --t: 12s;
  animation-name: car-stopgo;
}
.car-jam.car-you {
  animation-delay: -1.9s;
}
.jam-badge {
  position: absolute;
  top: 58%;
  left: 50%;
  margin-top: 34px;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: var(--night);
  color: var(--orange);
  border: 2px solid var(--orange);
  font: 600 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: jam-blink 1.6s steps(2, jump-none) infinite;
}
@keyframes car-stopgo {
  0% {
    left: -240px;
  }
  25% {
    left: 22%;
  }
  40% {
    left: 22%;
  }
  65% {
    left: 60%;
  }
  80% {
    left: 60%;
  }
  100% {
    left: 100%;
  }
}
@keyframes jam-blink {
  50% {
    opacity: 0.35;
  }
}
.road-key {
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.road-key > div {
  padding: 20px 24px 0 0;
}
.road-key dt {
  font: 400 26px/1.1 var(--serif);
  margin-bottom: 8px;
}
.road-key dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.road-caveat {
  margin: 36px 0 0;
  max-width: 70ch;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 15px;
}
.road-caveat b {
  color: var(--ink);
}
@media (max-width: 960px) {
  .road-key {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .road-key {
    grid-template-columns: 1fr;
  }
  .car {
    width: 88px;
    height: 38px;
  }
  .road-tag {
    font-size: 10px;
  }
  .road-surface-label {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .car,
  .road-divider {
    animation: none;
  }
  .car-you {
    left: 22%;
  }
  .car-agent {
    left: 58%;
  }
  .car-jam {
    left: 52%;
  }
  .car-jam-behind {
    left: 30%;
  }
  .jam-badge {
    animation: none;
  }
}

/* ---------- how it works (dark section, slanted nodes) ---------- */
.how {
  background: var(--night);
  color: var(--bone);
  padding: clamp(56px, 8vw, 112px) 0;
}
.how .eyebrow {
  color: #a79f8a;
}
.how .lede {
  color: #cfc8b6;
  margin-top: 22px;
}
.how h2 em {
  color: var(--orange);
}
.flow {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: stretch;
}
.flow-lanes {
  display: grid;
  gap: 18px;
}
.flow-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 34px 12px 12px;
  position: relative;
  border: 1px solid var(--night-line);
}
.flow-row.human {
  flex: 0 0 auto;
}
.row-tag {
  position: absolute;
  top: 9px;
  left: 12px;
  font: 600 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a79f8a;
}
.flow-row.agent .row-tag {
  color: var(--orange);
}
.node {
  flex: 1 1 0;
  min-width: 0;
  font: 600 13px/1.25 var(--mono);
  color: var(--bone);
  background: transparent;
  border: 1.5px solid #6d664f;
  padding: 16px 10px;
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}
.flow-row.human .node {
  flex: 0 1 220px;
}
.node:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -11px;
  top: 50%;
  width: 10px;
  height: 2px;
  background: #6d664f;
}
.flow-row.agent .node:not(:last-child)::after {
  background: var(--orange);
}
.node:hover {
  background: #2c281c;
}
.node[aria-pressed='true'] {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.flow-row.agent .node[aria-pressed='true'] {
  background: var(--orange);
  border-color: var(--orange);
}
.flow-profile {
  border: 2px dashed #8f8668;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px;
  font: 12px/1.4 var(--mono);
  color: #cfc8b6;
}
.flow-profile strong {
  font: 400 28px/1 var(--serif);
  color: var(--bone);
}
.flow-profile em {
  color: var(--orange);
  font-style: normal;
}
.node-detail {
  margin-top: 18px;
  border-left: 6px solid var(--orange);
  padding: 6px 0 6px 22px;
  min-height: 138px;
  max-width: 78ch;
}
.node-detail h3 {
  color: var(--bone);
}
.node-detail p {
  margin: 10px 0 0;
  color: #cfc8b6;
}
.node-detail .nd-src {
  font: 12px var(--mono);
  color: #a79f8a;
}
.node-detail a {
  color: var(--orange);
}
.contract {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--night-line);
}
.contract li {
  padding: 22px 28px 0 0;
  color: #cfc8b6;
  font-size: 15px;
}
.contract b {
  display: block;
  color: var(--bone);
  font: 400 26px/1.1 var(--serif);
  margin-bottom: 8px;
}
@media (max-width: 960px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-row {
    flex-wrap: wrap;
  }
  .flow-row .node,
  .flow-row.human .node {
    flex: 1 1 140px;
  }
  .node::after {
    display: none;
  }
  .contract {
    grid-template-columns: 1fr;
  }
}

/* ---------- see it ---------- */
.see {
  padding: clamp(56px, 8vw, 112px) 0;
}
.see h2 em {
  color: var(--orange-ink);
}
.see .lede {
  margin-top: 22px;
}
.play {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
.play-view {
  padding: 18px;
  border-right: 2px solid var(--ink);
}
.vp-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #5a2d10;
  color: var(--bone);
  font: 600 12px var(--mono);
  padding: 8px 12px;
}
.vp {
  background: #f4f6f4;
  border: 1.5px solid #000;
  border-top: 0;
  aspect-ratio: 1100 / 640;
  padding: 3.5% 4%;
  cursor: crosshair;
  position: relative;
  container-type: inline-size;
  user-select: none;
}
.vp h4 {
  margin: 0;
  font: 700 clamp(18px, 4.2cqw, 30px) var(--sans);
  color: #1b3a30;
}
.vp-sub {
  margin: 2cqw 0;
  font-size: clamp(11px, 2.4cqw, 17px);
  color: #1b3a30;
}
.vp label {
  display: block;
  font-size: clamp(11px, 2.4cqw, 17px);
  color: #1b3a30;
}
.vp-field {
  border: 1.5px solid #666;
  background: #fff;
  width: 58%;
  min-height: 7cqw;
  padding: 1.4cqw 1.8cqw;
  font: clamp(11px, 2.5cqw, 18px) var(--sans);
  margin: 0.6cqw 0 2cqw;
  white-space: nowrap;
  overflow: hidden;
}
.vp-field.on {
  border-color: #1a56d6;
  box-shadow: 0 0 0 2px #1a56d655;
}
.vp-caret {
  display: none;
  width: 1.5px;
  height: 1.1em;
  background: #000;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
.vp-field.on .vp-caret {
  display: inline-block;
}
.vp-btn {
  display: inline-block;
  border: 1.5px solid #666;
  background: #eee;
  padding: 1.2cqw 2.4cqw;
  font: clamp(11px, 2.5cqw, 18px) var(--sans);
}
.vp-saved {
  margin-top: 2.4cqw;
  background: #d5e8dc;
  padding: 1.6cqw 2cqw;
  width: 80%;
  font-size: clamp(11px, 2.4cqw, 17px);
  color: #1b3a30;
  visibility: hidden;
}
.vp-saved.on {
  visibility: visible;
}
.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.play-actions .btn {
  padding: 11px 14px;
  font-size: 13px;
}
.play-hint {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  min-height: 3em;
}
.play-log {
  background: var(--night);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.log-head {
  display: flex;
  justify-content: space-between;
  font: 600 12px var(--mono);
  padding: 12px 16px;
  border-bottom: 1px solid var(--night-line);
  color: #a79f8a;
}
.log-head span {
  color: var(--orange);
}
.log {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  font: 12.5px/1.55 var(--mono);
  overflow: auto;
  max-height: 420px;
  flex: 1;
  word-break: break-word;
}
.log li {
  margin-bottom: 6px;
}
.log .call {
  color: #cfc8b6;
}
.log .ok {
  color: #8fd0a8;
}
.log .err {
  color: #ff9a80;
}
.real-title {
  margin: 72px 0 22px;
}
.shots {
  display: grid;
  grid-template-columns: 0.42fr 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.shots figure {
  margin: 0;
}
.shots img {
  border: 2px solid var(--ink);
  width: 100%;
  height: auto;
  background: #fff;
}
.shots figcaption {
  font: 12px/1.5 var(--mono);
  color: var(--ink-2);
  margin-top: 10px;
}
.shots-note {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 70ch;
}
@media (max-width: 960px) {
  .play {
    grid-template-columns: 1fr;
  }
  .play-view {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
  .shots {
    grid-template-columns: 1fr;
  }
  .shots figure:first-child img {
    max-width: 320px;
  }
}

/* ---------- install ---------- */
.install {
  background: var(--paper-2);
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 2px solid var(--ink);
}
.install h2 em {
  color: var(--orange-ink);
}
.install .lede {
  margin-top: 22px;
}
.env {
  margin: 34px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  padding: 12px 16px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font: 13px var(--mono);
}
.env[data-ok='yes'] {
  border-left: 8px solid var(--ok);
}
.env[data-ok='no'] {
  border-left: 8px solid var(--orange);
}
.env-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--ink-3);
}
.env-req {
  margin-left: auto;
  color: var(--ink-2);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps > li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.step-n {
  font: 400 88px/0.8 var(--serif);
  color: var(--orange);
  -webkit-text-stroke: 0;
  position: sticky;
  top: 80px;
  align-self: start;
}
.step-b {
  max-width: 78ch;
}
.step-b h3 {
  margin-bottom: 12px;
}
.step-b p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.step-b .note {
  font-size: 14px;
  color: var(--ink-3);
}
.step-b b {
  color: var(--ink);
}
.code {
  position: relative;
  background: var(--night);
  color: var(--bone);
  margin: 0 0 14px;
  border-left: 6px solid var(--orange);
}
.code pre {
  margin: 0;
  padding: 18px 96px 18px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}
.code code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.copy {
  font: 600 12px var(--mono);
  background: var(--bone);
  color: var(--ink);
  border: 0;
  padding: 7px 11px;
  cursor: pointer;
}
.code .copy {
  position: absolute;
  top: 10px;
  right: 10px;
}
.copy:hover {
  background: var(--orange);
}
.copy.done {
  background: var(--ok);
  color: #fff;
}
.copy.inline {
  padding: 2px 7px;
  font-size: 11px;
  background: var(--ink);
  color: var(--bone);
  vertical-align: 1px;
}
.copy.inline.done {
  background: var(--ok);
}
.idlabel {
  display: block;
  font: 600 13px var(--mono);
  margin-bottom: 6px;
}
.idlabel .good {
  color: var(--ok);
  margin-left: 8px;
}
.idlabel .bad {
  color: var(--bad);
  margin-left: 8px;
}
.idinput {
  width: 100%;
  font: 14px var(--mono);
  padding: 12px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  margin-bottom: 12px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.tabs button {
  font: 600 13px var(--mono);
  padding: 10px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-2);
}
.tabs button small {
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 4px;
}
.tabs button[aria-selected='true'] {
  background: var(--ink);
  color: var(--bone);
}
.tabs button[aria-selected='true'] small {
  color: #cfc8b6;
}
@media (max-width: 640px) {
  .steps > li {
    grid-template-columns: minmax(0, 1fr);
  }
  .step-n {
    position: static;
    font-size: 56px;
  }
  .env-req {
    margin-left: 0;
  }
}

/* ---------- ledger ---------- */
.ledger {
  padding: clamp(56px, 8vw, 112px) 0;
}
.ledger h2 em:first-of-type {
  color: var(--ok);
}
.ledger h2 em:last-of-type {
  color: var(--bad);
}
.ledger .lede {
  margin-top: 22px;
}
.ledger-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 2px solid var(--ink);
}
.ledger .col {
  padding: 28px clamp(18px, 3vw, 36px);
}
.ledger .col.yes {
  border-right: 2px solid var(--ink);
  background: #e6efe5;
}
.ledger .col.no {
  background: #f6e1d6;
}
.ledger ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.ledger li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-top: 1px solid rgba(23, 21, 15, 0.18);
  font-size: 15.5px;
}
.ledger li::before {
  position: absolute;
  left: 0;
  top: 10px;
  font: 700 15px var(--mono);
}
.ledger .yes li::before {
  content: '✓';
  color: var(--ok);
}
.ledger .no li::before {
  content: '✗';
  color: var(--bad);
}
.ledger-foot {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 15px;
}
@media (max-width: 800px) {
  .ledger-grid {
    grid-template-columns: 1fr;
  }
  .ledger .col.yes {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
}

/* ---------- footer ---------- */
.foot {
  background: var(--night);
  color: var(--bone);
  padding: 56px 0 64px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.foot p {
  color: #cfc8b6;
  max-width: 36ch;
}
.foot h4 {
  margin: 0 0 12px;
  font: 600 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a79f8a;
}
.foot nav a {
  display: block;
  padding: 4px 0;
  font: 14px var(--mono);
  text-decoration: none;
}
.foot a:hover {
  color: var(--orange);
}
@media (max-width: 640px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > div {
    grid-column: 1 / -1;
  }
}

/* ---------- documentation ---------- */
.docgrid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-top: 40px;
  padding-bottom: 80px;
}
.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow: auto;
}
.toc summary {
  font: 600 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  padding: 4px 0 10px;
}
.toc nav {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--line);
}
.toc nav a {
  font: 13px/1.3 var(--mono);
  text-decoration: none;
  padding: 7px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
}
.toc nav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.toc nav a.on {
  border-left-color: var(--orange);
  color: var(--ink);
  font-weight: 600;
}
.doc {
  max-width: 82ch;
  min-width: 0;
}
.doc h1 {
  font-size: clamp(48px, 6vw, 80px);
}
.doc .lede {
  margin: 16px 0 12px;
}
.doc section {
  padding-top: 48px;
  margin-top: 24px;
  border-top: 2px solid var(--ink);
}
.doc h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  margin-bottom: 18px;
}
.doc h3 {
  font-size: 26px;
  margin: 30px 0 10px;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc p b,
.doc li b,
.doc td b {
  color: var(--ink);
}
.doc ol,
.doc .bul {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 6px;
}
.doc .req {
  font: 13px var(--mono);
  border-left: 4px solid var(--orange);
  padding-left: 12px;
  color: var(--ink);
}
.doc .warn {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  padding: 12px 16px;
  color: var(--ink);
}
.docfig {
  margin: 20px 0;
}
.docfig img,
.pair img {
  border: 2px solid var(--ink);
  background: #fff;
  height: auto;
}
.docfig figcaption {
  font: 12px var(--mono);
  color: var(--ink-3);
  margin-top: 8px;
}
.pair {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 16px 0;
}
.pair img:first-child {
  width: 260px;
}
.pair img:last-child:not(:first-child) {
  flex: 1;
  min-width: 0;
}
.tablewrap {
  overflow-x: auto;
  margin: 16px 0;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}
.doc th,
.doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc th {
  font: 600 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid var(--ink);
}
.tag {
  display: inline-block;
  font: 600 11px/1 var(--mono);
  padding: 4px 7px;
  vertical-align: 3px;
  white-space: nowrap;
}
h2 .tag {
  font-size: 10px;
}
.tag.ok {
  background: #cfe6d5;
  color: #1c4a33;
}
.tag.exp {
  background: var(--orange-soft);
  color: #7a2c00;
}
.tag.no {
  background: #f0cfc4;
  color: #7a1f10;
}
.tag.unk {
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.defs dt {
  font: 400 24px/1.2 var(--serif);
  margin-top: 18px;
  color: var(--ink);
}
.defs dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}
.doc details {
  border: 1.5px solid var(--ink);
  margin-bottom: 10px;
  background: var(--paper);
}
.doc details summary {
  cursor: pointer;
  padding: 12px 16px;
  font: 600 14px var(--mono);
  color: var(--ink);
}
.doc details[open] summary {
  background: var(--paper-2);
  border-bottom: 1.5px solid var(--ink);
}
.doc details p {
  margin: 0;
  padding: 14px 16px;
}
.doc .code pre {
  white-space: pre;
}
@media (max-width: 860px) {
  .docgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    max-height: none;
    border: 1.5px solid var(--ink);
    padding: 10px 14px;
  }
  .toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
  }
  .toc nav a {
    border-left: 0;
    margin: 0;
    padding: 5px 8px;
  }
  .pair {
    flex-direction: column;
  }
}

@media (max-width: 960px) {
  .hero-text {
    display: contents;
  }
  .hero-text > .eyebrow {
    order: 0;
    margin-bottom: 0;
  }
  .hero-text > h1 {
    order: 1;
  }
  .stage {
    order: 2;
  }
  .hero-text > .hero-lede {
    order: 3;
    margin: 0;
  }
  .hero-text > .hero-cta {
    order: 4;
  }
  .hero-text > .chips {
    order: 5;
    margin: 0;
  }
  .hero-grid {
    gap: 22px;
  }
}
@media (max-width: 640px) {
  .seg button {
    padding: 9px 10px;
    font-size: 12px;
    white-space: nowrap;
  }
}

.stage {
  margin: 0;
}
.docfig {
  margin-inline: 0;
}

.doc p code,
.doc li code,
.doc td code,
.doc dd code {
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .play-log {
    min-height: 180px;
  }
  .log {
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  .code pre {
    padding: 46px 14px 14px;
  }
}

/* ---------- clients: compact rotating logo window ---------- */
.clients {
  padding: 8px 0 clamp(40px, 6vw, 72px);
}
.clients-card {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.clients-card h2 {
  font-size: clamp(26px, 2.8vw, 34px);
}
.clients-card h2 em {
  color: var(--orange-ink);
}
.clients-card p {
  margin: 4px 0 18px;
  font: 13px var(--mono);
}
.spin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 12px;
  margin: 12px auto 0;
  padding: 0;
  list-style: none;
}
.spin li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
}
.spin .logo {
  width: 48px;
  height: 48px;
  flex: none;
  fill: var(--ink);
}
.spin span {
  font: 600 13px var(--mono);
  color: var(--ink-2);
  text-align: center;
}
.clients-card .and-more {
  margin: 30px 0 0;
  font: 600 13px var(--mono);
  color: var(--ink-2);
}
.foot .tm {
  font-size: 12px;
  color: #a79f8a;
}

.foot .team {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 46ch;
}

html:not(.js) button.copy {
  display: none;
}
