/*
  respawn — site styles
  Static. No remote fonts, images, or scripts. System font stacks only.
  Sections: tokens, base, layout, header, type, components, pages, demo, legal, motion.
*/

/* ---------- tokens ---------- */
:root {
  --ink: #0f0e0c;
  --ink-2: #151311;
  --ink-3: #1c1916;
  --ink-4: #27231f;
  --line: rgba(243, 240, 235, .10);
  --line-2: rgba(243, 240, 235, .18);
  --line-3: rgba(243, 240, 235, .28);
  --paper: #f3f0eb;
  --paper-2: #ebe6de;
  --paper-3: #ded7cc;
  --text: #f3f0eb;
  --muted: #bab1a5;
  --dim: #9a9185;
  --dark: #1a1a1a;
  --dark-muted: #57514a;
  --dark-line: rgba(26, 26, 26, .12);
  --orange: #f08f2f;
  --orange-2: #f5a65a;
  --orange-soft: rgba(240, 143, 47, .14);
  --orange-ink: #9a4a05;
  --sky: #8dbcff;
  --sky-soft: rgba(141, 188, 255, .13);
  --sky-ink: #2b5ea8;
  --ok: #7fd1a0;
  --warn: #ffbf73;
  --stop: #ff9483;
  --focus: var(--orange);
  --r-xl: clamp(24px, 3vw, 40px);
  --r-lg: 24px;
  --r: 18px;
  --r-sm: 12px;
  --max: 1240px;
  --gutter: clamp(18px, 4.5vw, 52px);
  --header-h: 68px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p a, li a, dd a { color: var(--orange); text-decoration-color: rgba(240, 143, 47, .5); }
p code, li code, dd code, dt code, h1 code, h2 code, h3 code, figcaption code, .lede code, blockquote code {
  font-family: var(--mono);
  font-size: .9em;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--paper);
  background: var(--ink-4);
  padding: .05em .38em;
  border-radius: 6px;
}
.theme-paper p code, .theme-paper li code, .theme-paper dd code, .theme-paper dt code,
.theme-paper h1 code, .theme-paper h2 code, .theme-paper h3 code, .theme-paper .lede code {
  color: var(--dark);
  background: var(--paper-2);
}
p a:hover, li a:hover, dd a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
b, strong { font-weight: 650; }
::selection { background: rgba(240, 143, 47, .35); color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--orange);
  color: #160b02;
  font-weight: 650;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 140px);
}
.section-flush { padding-top: 0; }
.section-tint { background: var(--ink-2); }
.slab {
  position: relative;
  background: var(--paper);
  color: var(--dark);
  border-radius: var(--r-xl);
  margin-inline: clamp(6px, 1.2vw, 18px);
  --focus: var(--orange-ink);
  color-scheme: light;
}
.slab + .slab { margin-top: clamp(6px, 1.2vw, 18px); }

.split {
  display: grid;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.split + * { margin-top: clamp(40px, 5vw, 72px); }
.split-head .h2 { margin-top: 14px; }
.split-center { align-items: center; }
.split > figure { margin-top: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .split-center .split-head { position: static; }
}

.center { text-align: center; margin-inline: auto; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.actions.center { justify-content: center; }
.more { margin-top: 32px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  transition: box-shadow .3s var(--ease);
}
/* The blur sits on a pseudo-element so the header does not become the
   containing block for the fixed mobile menu panel. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 14, 12, .8);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(0, 0, 0, .7); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 8px;
  min-height: 44px;
}
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 550;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--text); background: rgba(243, 240, 235, .06); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 1px;
  background: var(--orange);
}
.nav-demo { margin-left: 10px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-weight: 600;
  font-size: .95rem;
}
.menu-btn .menu-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-close { display: inline; }
.menu-btn span { display: inline-flex; }

@media (max-width: 899px) {
  /* Without JavaScript the links wrap under the logo. */
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .nav-list { flex-wrap: wrap; }

  .js .menu-btn { display: inline-flex; }
  .js .nav-list {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 59;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 40px;
    background: var(--ink);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .js .nav-list.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .js .nav-list > li { border-bottom: 1px solid var(--line); }
  .js .nav-link {
    width: 100%;
    min-height: 64px;
    padding: 0 4px;
    border-radius: 0;
    font-size: 1.6rem;
    font-weight: 650;
    letter-spacing: -.02em;
    color: var(--text);
  }
  .js .nav-link:hover { background: transparent; color: var(--orange); }
  .js .nav-link[aria-current="page"]::after { left: auto; right: 8px; bottom: 50%; margin: 0 0 -4px; width: 8px; height: 8px; }
  .js .nav-demo { margin: 28px 0 0; border: 0 !important; }
  .js .nav-demo .btn { width: 100%; min-height: 56px; font-size: 1.1rem; }
  .js .theme-paper .nav-list { background: var(--paper); }
  .js .theme-paper .nav-list > li { border-color: var(--dark-line); }
  .js .theme-paper .nav-link { color: var(--dark); }
  .js .theme-paper .nav-link:hover { color: var(--orange-ink); }
  body.menu-open { overflow: hidden; }
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: .62em; height: .62em;
  flex: none;
  border-radius: 2px;
  background: var(--orange);
}
.eyebrow .sep { color: var(--dim); }
.eyebrow-by { flex-wrap: wrap; row-gap: .4em; }
.eyebrow-by .by { display: inline-flex; align-items: center; gap: .55em; }
.eyebrow-by .by img { width: 1.5em; height: 1.5em; flex: none; }
.slab .eyebrow, .theme-paper .eyebrow { color: var(--dark-muted); }

.display {
  font-size: clamp(2.2rem, 6.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 750;
}
.h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 750;
}
.h2 {
  font-size: clamp(1.85rem, 4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 720;
}
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hl { color: var(--orange); }
.lede {
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
}
.slab .lede, .theme-paper .lede { color: var(--dark-muted); }
.prose { max-width: 62ch; color: var(--muted); }
.prose p + p { margin-top: 1.1em; }
.prose-lg { font-size: clamp(1.06rem, 1.3vw, 1.2rem); line-height: 1.62; }
.slab .prose { color: #3f3a34; }
.slab p a, .slab li a, .slab dd a { color: var(--orange-ink); text-decoration-color: rgba(154, 74, 5, .45); }
.prose.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn .ic { width: 1.15em; height: 1.15em; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  --btn-bg: var(--orange);
  --btn-fg: #170c02;
  box-shadow: 0 10px 30px -12px rgba(240, 143, 47, .65);
}
.btn-primary:hover { --btn-bg: var(--orange-2); box-shadow: 0 14px 36px -12px rgba(240, 143, 47, .8); }
.btn-ghost { border-color: var(--line-3); }
.btn-ghost:hover { border-color: var(--text); background: rgba(243, 240, 235, .05); }
.slab .btn-ghost, .theme-paper .btn-ghost { --btn-fg: var(--dark); border-color: rgba(26, 26, 26, .28); }
.slab .btn-ghost:hover, .theme-paper .btn-ghost:hover { border-color: var(--dark); background: rgba(26, 26, 26, .04); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  font-weight: 650;
  color: var(--orange) !important;
  text-decoration: none !important;
}
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }
.slab .link-arrow { color: var(--orange-ink) !important; }

/* ---------- pills, chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.pill i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill-live { color: var(--ok); border-color: rgba(127, 209, 160, .35); background: rgba(127, 209, 160, .08); }
.pill-live i { box-shadow: 0 0 0 0 rgba(127, 209, 160, .6); }
.is-playing .pill-live i, .demo .pill-live i { animation: pulse 2s infinite; }
.pill-idle { color: var(--dim); }
.pill-ready { color: var(--muted); }
.pill-warn { color: var(--warn); border-color: rgba(255, 191, 115, .35); background: rgba(255, 191, 115, .08); }
.pill-stop { color: var(--stop); border-color: rgba(255, 148, 131, .35); background: rgba(255, 148, 131, .08); }
.pill-done { color: var(--orange); border-color: rgba(240, 143, 47, .4); background: var(--orange-soft); }
.pill-paused { color: var(--warn); border-color: rgba(255, 191, 115, .35); }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .68rem;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-in { color: var(--orange); background: var(--orange-soft); }
.tag-out { color: var(--sky); background: var(--sky-soft); }
.tag-person { color: var(--text); background: rgba(243, 240, 235, .1); }

/* ---------- hero ---------- */
.hero, .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero { padding: clamp(28px, 6vw, 88px) 0 clamp(56px, 8vw, 110px); }
.page-hero { padding: clamp(40px, 8vw, 120px) 0 clamp(56px, 8vw, 110px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(243, 240, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 235, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 70vmax; height: 70vmax;
  right: -25vmax; top: -40vmax;
  background: radial-gradient(circle, rgba(240, 143, 47, .22), rgba(240, 143, 47, 0) 60%);
  animation: drift 22s var(--ease-io) 2 alternate;
}
.hero .eyebrow { margin-bottom: clamp(16px, 2.4vw, 28px); }
.hero-layout { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-title { max-width: 17ch; }
.hero-copy { margin-top: clamp(20px, 2.6vw, 32px); }
@media (min-width: 1100px) {
  .hero-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; }
  .hero-title { max-width: none; font-size: clamp(3rem, 4.4vw, 4.6rem); }
}
.hero-copy .actions { margin-top: 24px; }
.lede-2 { margin-top: 12px; font-size: clamp(1rem, 1.25vw, 1.12rem); }
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
  max-width: 520px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(243, 240, 235, .025);
  font-size: .9rem;
  line-height: 1.3;
  color: var(--muted);
}
.facts .ic { color: var(--orange); }
@media (max-width: 480px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .facts li { min-height: 46px; font-size: .95rem; }
}

.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .h1 { max-width: 20ch; }
.page-hero .lede { margin-top: 24px; max-width: 56ch; }
.hero-two { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- switchboard (home hero) ---------- */
.hero-board { margin: 0; }
.hero-board figcaption, figure > figcaption {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--dim);
}
.slab figure > figcaption { color: var(--dark-muted); }
figcaption a { color: var(--orange); text-decoration-color: rgba(240, 143, 47, .5); }
.slab figcaption a { color: var(--orange-ink); }
.board {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(240, 143, 47, .08), transparent 60%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(243, 240, 235, .06);
  overflow: hidden;
}
.board-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.board-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}
.board-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}
.board-toggle .ic { width: 14px; height: 14px; }
.board-toggle:hover { color: var(--text); border-color: var(--line-3); }
.board-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 72px);
  padding: clamp(20px, 3vw, 32px) clamp(14px, 2.4vw, 28px);
}
.board-wires {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.board-wires path { fill: none; stroke: rgba(243, 240, 235, .12); stroke-width: 1.5; }
.board-wires path.is-on { stroke: rgba(240, 143, 47, .75); stroke-width: 2; }
.board-col { list-style: none; display: grid; gap: 10px; position: relative; z-index: 1; }
.board-col li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-2);
  font-size: .86rem;
  font-weight: 560;
  line-height: 1.2;
  color: var(--muted);
  transition: border-color .35s, color .35s, background-color .35s, box-shadow .35s;
}
.board-col li.is-on {
  color: var(--text);
  border-color: rgba(240, 143, 47, .65);
  background: #221a12;
  box-shadow: 0 0 0 4px rgba(240, 143, 47, .1);
}
.board-out li.is-on.is-person { border-color: rgba(243, 240, 235, .6); background: #22201d; box-shadow: 0 0 0 4px rgba(243, 240, 235, .07); }
.node-ic {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 8px;
  background: rgba(243, 240, 235, .06);
  color: var(--orange);
}
.node-ic .ic { width: 16px; height: 16px; }
.board-core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 14px 12px 10px;
  border-radius: 20px;
  border: 1px solid rgba(240, 143, 47, .4);
  background: #1d1611;
  box-shadow: 0 0 0 6px rgba(240, 143, 47, .06), 0 20px 40px -20px rgba(240, 143, 47, .5);
  transition: box-shadow .4s;
}
.board-core img { width: 52px; height: 52px; }
.board-core span { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); }
.board-core.is-on { box-shadow: 0 0 0 10px rgba(240, 143, 47, .12), 0 20px 50px -16px rgba(240, 143, 47, .75); }
.board-packet {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 3px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 143, 47, .2), 0 0 18px rgba(240, 143, 47, .9);
  opacity: 0;
  pointer-events: none;
}
.board-feed {
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.45;
  min-height: 142px;
}
.board-feed div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 10px; }
.board-feed dt { color: var(--orange); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; padding-top: .1em; }
.board-feed dd { margin: 0; color: var(--text); transition: opacity .3s; }
.board-feed dd.is-swap { opacity: 0; }
@media (max-width: 480px) {
  .board-title { font-size: .72rem; }
  .board-toggle { width: 36px; padding: 0; justify-content: center; }
  .board-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .board-stage { gap: 18px; padding-inline: 10px; }
  .board-col li { padding: 6px 8px; font-size: .8rem; gap: 6px; min-height: 42px; }
  .board-col li .node-ic { width: 24px; height: 24px; }
  .board-core { padding: 10px 8px 8px; border-radius: 16px; }
  .board-core img { width: 40px; height: 40px; }
  .board-feed { font-size: .76rem; min-height: 158px; }
}

/* ---------- band ---------- */
.band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(18px, 2.5vw, 28px);
  background: var(--orange);
  color: #170c02;
  transform: rotate(-1.2deg);
  margin: 0 -2vw;
}
.band-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.band-list {
  display: flex;
  list-style: none;
  flex: none;
}
.band-list li {
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.3rem, 2.8vw, 2.3rem);
  font-weight: 720;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.band-list li::after {
  content: "";
  width: .38em; height: .38em;
  margin: 0 .8em;
  border-radius: 2px;
  background: #170c02;
}

/* ---------- compare (home) ---------- */
.compare {
  display: grid;
  gap: 20px;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.cmp {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
}
.cmp-run { border-color: rgba(240, 143, 47, .35); background: linear-gradient(180deg, #1b1510, var(--ink-2)); }
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cmp-label { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.cmp-tools { display: inline-flex; align-items: center; gap: 8px; }
.cmp figcaption { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: .95rem; }
.chatwin {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ink);
  padding: 18px;
  display: grid;
  gap: 18px;
  min-height: 260px;
  grid-template-rows: 1fr auto;
}
.chatwin-msgs { display: grid; gap: 10px; align-content: start; }
.ghost-line { display: block; height: 12px; border-radius: 6px; background: rgba(243, 240, 235, .06); }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.chatwin-input {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--dim);
  font-size: .92rem;
}
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--muted); animation: blink 1.1s steps(1) 8; }
.runq { list-style: none; display: grid; gap: 10px; min-height: 260px; align-content: start; }
.runq li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "src item" "src state";
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 14, 12, .6);
  transition: border-color .4s, background-color .4s;
}
.runq li.is-new { border-color: rgba(240, 143, 47, .6); background: #201811; }
.runq-src {
  grid-area: src;
  align-self: stretch;
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(243, 240, 235, .06);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.runq-item { grid-area: item; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.runq-state { grid-area: state; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.runq-state::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: currentColor; vertical-align: .05em; }
.runq-state.is-work { color: var(--warn); }
.runq-state.is-done { color: var(--ok); }
.runq-state.is-flag { color: var(--stop); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 16px; }
.split + .cards, .statement + .cards { margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--dark-line);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .04), 0 18px 40px -30px rgba(26, 26, 26, .35);
}
.card h3, .card .h3 { font-size: 1.28rem; margin: 18px 0 10px; letter-spacing: -.02em; }
.card p { color: var(--dark-muted); font-size: 1rem; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--orange);
}
.card-icon .ic { width: 24px; height: 24px; }
.cards-dark .card, .section .cards-dark .card {
  background: var(--ink-2);
  border-color: var(--line);
  box-shadow: none;
}
.cards-dark .card p { color: var(--muted); }
.cards-dark .card-icon { background: var(--orange-soft); }
.card-case p { margin-top: 14px; }
.case-k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}
.case-k .ic { color: var(--orange-ink); width: 22px; height: 22px; }

.statement {
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
}
.statement p {
  font-size: clamp(1.9rem, 4.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 750;
  max-width: 22ch;
  text-wrap: balance;
}
.statement p::before { content: "“"; color: var(--orange); }
.statement p::after { content: "”"; color: var(--orange); }
.slab .statement p::before, .slab .statement p::after { color: var(--orange-ink); }
.statement-dark p { margin-inline: auto; text-align: center; }
.statement-dark + .prose { margin-top: 36px; }

/* ---------- flow ---------- */
.flow {
  list-style: none;
  display: grid;
  gap: 2px;
  border-radius: var(--r-lg);
  overflow: hidden;
  counter-reset: flow;
}
@media (min-width: 700px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--ink-3);
  min-height: 220px;
  transition: background-color .3s;
}
.flow li:hover { background: #221e1a; }
.flow-n {
  display: block;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--orange);
  letter-spacing: .1em;
  margin-bottom: 44px;
}
.flow h3 { font-size: 1.3rem; margin-bottom: 10px; }
.flow p { color: var(--muted); font-size: .98rem; }
.flow li::after {
  content: "";
  position: absolute;
  top: clamp(24px, 2.6vw, 34px);
  right: clamp(24px, 2.6vw, 34px);
  width: 28px; height: 1px;
  background: var(--line-3);
}

/* ---------- surfaces ---------- */
.surfaces { display: grid; gap: 14px; }
@media (min-width: 700px) { .surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .surfaces { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.surface {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--ink);
  text-decoration: none;
}
.surface h3 { font-size: 1.3rem; margin: 22px 0 10px; }
.surface p { color: var(--muted); font-size: .98rem; }
.surface-ic {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(243, 240, 235, .06);
  color: var(--orange);
}
.surface-link {
  border-color: rgba(240, 143, 47, .45);
  background: linear-gradient(160deg, #241a10, var(--ink) 70%);
  transition: border-color .25s, transform .25s var(--ease);
}
.surface-link:hover { border-color: var(--orange); transform: translateY(-3px); }
.surface-go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--orange); }
.surface-link:hover .surface-go .ic { transform: translateX(4px); }
.surface-go .ic { transition: transform .25s var(--ease); }
.harness-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(-45deg, rgba(240, 143, 47, .06) 0 10px, transparent 10px 20px), var(--ink-3);
  border: 1px solid rgba(240, 143, 47, .35);
}
.harness-bar img { width: 44px; height: 44px; flex: none; }
.harness-bar p { color: var(--muted); }
.harness-bar strong { color: var(--text); }

/* ---------- tiles ---------- */
.tiles { display: grid; gap: 16px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.tile::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 80%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 143, 47, .22), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
}
.tile:hover { transform: translateY(-4px); border-color: rgba(240, 143, 47, .6); }
.tile:hover::before { opacity: 1; }
.tile-k {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
}
.tile h3 { margin: 40px 0 14px; font-size: clamp(1.45rem, 2.2vw, 1.85rem); letter-spacing: -.03em; line-height: 1.1; }
.tile p { color: var(--muted); }
.tile-go {
  margin-top: auto;
  align-self: flex-end;
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  transition: background-color .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.tile:hover .tile-go { background: var(--orange); color: #170c02; border-color: var(--orange); transform: rotate(-30deg); }

/* ---------- team ---------- */
.team { margin-inline: 0; margin-bottom: 0; }
.team-frame {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 48px 18px 20px;
  border: 1px dashed rgba(240, 143, 47, .5);
  border-radius: var(--r-lg);
  background: rgba(240, 143, 47, .03);
}
.slab .team-frame { border-color: rgba(154, 74, 5, .45); background: rgba(154, 74, 5, .03); }
.team-label {
  position: absolute; top: 14px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange);
}
.slab .team-label { color: var(--orange-ink); }
.team-people { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-people li {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  font-size: .9rem; line-height: 1.25; font-weight: 560;
}
.slab .team-people li { background: #fff; border-color: var(--dark-line); }
.team-people li::after {
  content: "";
  position: absolute;
  left: 50%; width: 1px; height: 16px;
  background: rgba(240, 143, 47, .55);
}
.team-people:first-of-type li::after { top: 100%; }
.team-people:last-of-type li::after { bottom: 100%; }
.avatar {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  font-family: var(--mono); font-size: .74rem; font-weight: 600;
}
.slab .avatar { color: var(--orange-ink); background: rgba(240, 143, 47, .16); }
.team-core {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px;
  padding: 12px;
  border-radius: 14px;
  background: var(--orange);
  color: #170c02;
  font-weight: 700;
  text-align: center;
}

/* ---------- scratch / cta ---------- */
/* The company logo sits in one row with the heading (under it on a phone),
   so whenever the heading is on screen the whole logo is too. */
.scratch-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin: 14px 0 28px; }
.scratch-head .h2 { margin: 0; max-width: 18ch; }
.scratch-head .tds-plate { flex: none; width: min(100%, 280px); }
@media (min-width: 760px) {
  .scratch-head { flex-direction: row; align-items: center; gap: clamp(32px, 5vw, 64px); }
  .scratch-head .tds-plate { width: clamp(240px, 24vw, 320px); }
}
.tds-plate {
  display: flex; align-items: center; justify-content: center;
  max-width: 320px;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8);
}
.tds-plate img { width: 100%; height: auto; }
.tds-plate-sm { max-width: 240px; padding: 14px 18px; border-radius: 14px; }
.theme-paper .tds-plate, .slab .tds-plate { box-shadow: none; border: 1px solid var(--dark-line); }
.cta { padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 120px); }
.cta-inner {
  display: grid;
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(240, 143, 47, .28), transparent 60%),
    var(--ink-3);
  border: 1px solid rgba(240, 143, 47, .3);
}
.cta-inner .h2 { margin: 14px 0 16px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- product chapters ---------- */
.toc { margin-top: 40px; }
.toc ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  text-decoration: none;
  font-size: .92rem; font-weight: 560;
  color: var(--muted);
  background: rgba(15, 14, 12, .5);
  transition: border-color .2s, color .2s;
}
.toc a:hover { color: var(--text); border-color: var(--orange); }
.toc a span { font-family: var(--mono); font-size: .72rem; color: var(--orange); }

.chapter { position: relative; padding-block: clamp(72px, 9vw, 130px); }
.chapter-tint { background: var(--ink-2); }
.chapter-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) {
  .chapter-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
  .chapter-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.chapter-n {
  display: block;
  font-family: var(--mono);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: .9;
  font-weight: 500;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 143, 47, .7);
  margin-bottom: 18px;
}
.slab .chapter-n { -webkit-text-stroke-color: rgba(154, 74, 5, .7); }
.chapter-head .h2 { margin-top: 14px; }
.chapter-body > * + * { margin-top: clamp(28px, 3.4vw, 44px); }
.chapter-body > :first-child { margin-top: 0; }

.points { margin-inline: 0; margin-bottom: 0; display: grid; gap: 2px; border-radius: var(--r-lg); overflow: hidden; }
.points div { padding: 22px 24px; background: var(--ink-3); }
.chapter-tint .points div { background: var(--ink-3); }
.points dt { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.12rem; }
.points dt .ic { color: var(--orange); }
.points dd { margin: 8px 0 0 calc(1.25em + 12px); color: var(--muted); }

.keep { margin-inline: 0; margin-bottom: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .keep { grid-template-columns: 3fr 2fr; } .keep figcaption { grid-column: 1 / -1; } }
.keep-box, .keep-swap {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(240, 143, 47, .4);
  background: rgba(240, 143, 47, .05);
}
.keep-swap { border-style: dashed; border-color: var(--line-3); background: transparent; display: flex; flex-direction: column; }
.keep-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.keep-swap .keep-label { color: var(--muted); }
.keep-box ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.keep-box li { padding: 8px 12px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); font-size: .92rem; }
.keep-model { position: relative; flex: 1; min-height: 84px; margin-top: 16px; }
.keep-chip {
  position: absolute; left: 0; right: 0; top: 50%;
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; margin-top: -26px;
  border-radius: 12px;
  font-family: var(--mono); font-size: .86rem;
  border: 1px solid var(--line-2);
  background: var(--ink);
}
.keep-chip.is-in { border-color: rgba(240, 143, 47, .6); color: var(--orange); }
.js .keep-chip { transition: transform .7s var(--ease), opacity .7s var(--ease); }
.js .keep-chip.is-in { opacity: 0; transform: translateY(30px); }
.js .keep-model.is-swapped .keep-chip.is-out { opacity: 0; transform: translateY(-30px); }
.js .keep-model.is-swapped .keep-chip.is-in { opacity: 1; transform: none; }

.addon { margin-inline: 0; margin-bottom: 0; display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .addon { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.addon-stack { list-style: none; display: grid; gap: 6px; }
.addon-stack li {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--ink-3);
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--muted);
}
.addon-stack li:nth-child(2) { margin-inline: 8px; }
.addon-stack li:nth-child(3) { margin-inline: 4px 14px; }
.addon-stack li:nth-child(5) { margin-inline: 10px 2px; }
.addon-top { color: var(--text) !important; border-color: var(--line-3) !important; }
.addon-stack li:last-child { background: transparent; border-style: dashed; }
.addon-bad {
  border-color: rgba(255, 148, 131, .7) !important;
  background: rgba(255, 148, 131, .08) !important;
  color: var(--stop) !important;
  transform: rotate(-2.2deg) translateX(10px);
}
.addon-bad em { font-style: normal; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.js .addon-bad { animation: nudge 5s var(--ease) 3; }
.addon-stack li:nth-child(-n+3) { transition: opacity .4s; }
.addon-note { padding: 24px; border-radius: var(--r-lg); background: var(--ink-3); border: 1px solid var(--line); }
.addon-status { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--stop); margin-bottom: 12px; }
.addon-note p:last-child { color: var(--muted); }

.routes { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.routes-head { display: none; }
.routes ul { list-style: none; }
.routes li {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.routes li:first-child { border-top: 0; }
.r-from, .r-to { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.r-from .ic, .r-to .ic { color: var(--orange); width: 18px; height: 18px; }
.r-rule { color: var(--muted); font-size: .96rem; }
.r-to::before { content: "→"; color: var(--orange); margin-right: 2px; }
.routes-note { margin: 0; padding: 12px 20px; font-size: .82rem; color: var(--dim); background: var(--ink-2); border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .routes-head {
    display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 20px;
    padding: 12px 20px;
    font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
    background: var(--ink-2); border-bottom: 1px solid var(--line);
  }
  .routes li { grid-template-columns: 1fr 1.6fr 1fr; gap: 20px; align-items: center; }
  .r-to::before { display: none; }
}
.aside-panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); background: var(--ink-3); border: 1px solid rgba(240, 143, 47, .3); }
.aside-panel h3 { font-size: 1.45rem; margin-bottom: 14px; }
.aside-panel p { color: var(--muted); }

.senders { display: grid; gap: 14px; }
@media (min-width: 860px) { .senders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sender {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--dark-line);
}
.sender h3 { font-size: 1.15rem; }
.sender p { font-size: .96rem; color: var(--dark-muted); }
.sender-mail {
  display: grid; gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--dark-line);
}
.sender-from { font-family: var(--mono); font-size: .78rem; color: var(--dark); }
.sender-from b { color: var(--dark-muted); font-weight: 500; margin-right: 6px; }
.sender-line { display: block; height: 9px; border-radius: 5px; background: rgba(26, 26, 26, .1); }
.verdict {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 32px; padding: 0 12px;
  border-radius: 999px;
  font-size: .8rem; font-weight: 650;
}
.verdict .ic { width: 16px; height: 16px; }
.verdict-stop { background: #fbe3df; color: #8f2a19; }
.verdict-warn { background: #fbecd6; color: #7c4605; }

/* ---------- spawnpoint ---------- */
.sp-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .sp-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.sp-name { font-size: clamp(2.8rem, 5.6vw, 5.2rem); letter-spacing: -.05em; }
.sp-sub { margin-top: 14px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 650; letter-spacing: -.02em; color: var(--orange); }
.devices { margin: 0; }
.dev-stage { position: relative; padding-bottom: 36px; }
.dev-desk {
  width: 88%;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.dev-bar { display: flex; align-items: center; justify-content: center; height: 38px; border-bottom: 1px solid var(--line); background: var(--ink-3); }
.dev-title { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; color: var(--muted); }
.dev-main { display: grid; gap: 10px; padding: 18px 18px 16px; align-content: start; min-height: 300px; }
.dev-who { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.dev-who .ic { width: 15px; height: 15px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: .86rem; line-height: 1.4; }
.msg-me { justify-self: end; background: var(--ink-4); border-bottom-right-radius: 4px; }
.msg-bot { justify-self: start; background: var(--orange-soft); border: 1px solid rgba(240, 143, 47, .3); border-bottom-left-radius: 4px; }
.dev-input { margin-top: 6px; min-height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; color: var(--dim); }
.dev-phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 38%;
  max-width: 230px;
  padding: 10px;
  border-radius: 30px;
  border: 1px solid var(--line-3);
  background: #0b0a09;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 6px rgba(15, 14, 12, .9);
}
.dev-notch { width: 34%; height: 6px; margin: 2px auto 10px; border-radius: 4px; background: var(--ink-4); }
.dev-phone-body { display: grid; gap: 8px; padding: 6px 4px 12px; align-content: start; min-height: 260px; }
.dev-phone .msg { max-width: 92%; font-size: .74rem; padding: 8px 10px; }
.dev-phone .dev-who { font-size: .64rem; }
.devices figcaption { margin-top: 18px; }
@media (max-width: 560px) {
  .dev-desk { width: 94%; }
  .dev-main { min-height: 0; padding-bottom: 90px; }
  .dev-phone { width: 46%; border-radius: 24px; }
  .dev-phone-body { min-height: 200px; }
  .dev-phone .msg:last-child { display: none; }
}

.layers { margin-inline: 0; margin-bottom: 0; display: grid; gap: 10px; }
.layers-top { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 800px) { .layers-top { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.layers-top li {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px; padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  font-weight: 600; font-size: .95rem;
}
.layers-top .ic { color: var(--muted); }
.layers-top li.is-sp { border-color: rgba(240, 143, 47, .6); background: #21180f; }
.layers-top li.is-sp .ic { color: var(--orange); }
.layers-mid {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--orange);
  color: #170c02;
}
.layers-mid img { width: 44px; height: 44px; flex: none; background: #170c02; border-radius: 10px; padding: 4px; }
.layers-mid span { display: grid; line-height: 1.3; }
.layers-mid b { font-size: 1.1rem; }
.layers-base {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px dashed var(--line-3);
  color: var(--muted); font-size: .92rem;
}
.layers-base .ic { color: var(--orange); }

.duo { display: grid; gap: 16px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-item { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); }
.duo-k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.duo-item .h3 { margin: 26px 0 12px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.duo-item p { color: var(--muted); }

/* ---------- agents ---------- */
.ticket {
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ticket-id { font-family: var(--mono); font-size: .8rem; color: var(--orange); letter-spacing: .06em; }
.ticket-title { font-weight: 700; font-size: 1.15rem; margin-right: auto; }
.ticket-meta { margin: 8px 0 18px; font-size: .86rem; color: var(--dim); }
.ticket-parts { list-style: none; display: grid; gap: 8px; }
.ticket-parts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "what state" "who who";
  gap: 6px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 14, 12, .6);
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .4s;
}
.tp-what { grid-area: what; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.tp-who { grid-area: who; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.tp-who b { font-weight: 600; color: var(--text); }
.tp-state { grid-area: state; align-self: start; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ticket-parts li.is-done .tp-state { color: var(--ok); }
.ticket-parts li.is-work { border-color: rgba(240, 143, 47, .55); }
.ticket-parts li.is-work .tp-state { color: var(--orange); }
.ticket-parts li.is-wait .tp-state { color: var(--warn); }
.ticket-parts li.is-hidden { opacity: 0; transform: translateY(8px); }
.ticket-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.ticket-foot:empty { display: none; }

.bounds { margin-inline: 0; margin-bottom: 0; display: grid; gap: 0; align-items: stretch; }
@media (min-width: 900px) { .bounds { grid-template-columns: minmax(0, 3fr) 80px minmax(0, 2fr); } .bounds figcaption { grid-column: 1 / -1; } }
.bounds-in, .bounds-out {
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 52px 20px 20px;
  border-radius: var(--r-lg);
}
.bounds-in { border: 1.5px dashed rgba(154, 74, 5, .55); background: rgba(240, 143, 47, .05); }
.bounds-out { border: 1.5px dashed rgba(43, 94, 168, .5); background: rgba(141, 188, 255, .1); }
.bounds-label { position: absolute; top: 16px; left: 20px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.bounds-out .bounds-label { color: var(--sky-ink); }
.bounds-job { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--dark); color: var(--paper); }
.bounds-job img { width: 40px; height: 40px; flex: none; }
.bounds-job span { line-height: 1.3; }
.bounds-job b { color: var(--orange); }
.bounds-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bnode { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--dark-line); font-weight: 600; font-size: .92rem; line-height: 1.25; }
.bnode .ic { color: var(--orange-ink); }
.bnode-out .ic { color: var(--sky-ink); }
.bounds-keep { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--dark-muted); }
.bounds-keep .ic { color: var(--orange-ink); width: 18px; height: 18px; }
.bounds-note { font-size: .86rem; color: var(--dark-muted); }
.bounds-link { position: relative; min-height: 48px; }
.bounds-link span { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed rgba(26, 26, 26, .3); }
@media (min-width: 900px) {
  .bounds-link span { left: 0; right: 0; top: 50%; bottom: auto; border-left: 0; border-top: 2px dashed rgba(26, 26, 26, .3); }
}
.js .bounds-link span::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--orange-ink);
  left: -6px; top: 0;
  animation: travel-y 2.6s var(--ease-io) 3;
  opacity: 0;
}
@media (min-width: 900px) { .js .bounds-link span::after { top: -6px; left: 0; animation-name: travel-x; } }

/* ---------- agent tree (product, agents) ---------- */
.tree { margin-inline: 0; margin-bottom: 0; }
.tree-root {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  max-width: 440px;
  margin-inline: auto;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--orange);
  color: #170c02;
}
.tree-root img { width: 40px; height: 40px; flex: none; background: #170c02; border-radius: 10px; padding: 3px; }
.tree-root span { display: grid; line-height: 1.25; font-size: .9rem; }
.tree-root b { font-size: 1.05rem; }
.tree-kids { --stem: 12px; position: relative; list-style: none; display: grid; gap: 12px; margin-top: calc(var(--stem) * 2); }
.tree-kids::before { content: ""; position: absolute; left: 50%; top: calc(var(--stem) * -2); width: 2px; height: var(--stem); margin-left: -1px; background: rgba(240, 143, 47, .65); }
.tree-kids li {
  position: relative;
  display: grid; gap: 6px; align-content: start;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(240, 143, 47, .4);
  background: var(--ink-3);
}
.tree-kids li::before { content: ""; position: absolute; left: 50%; top: calc(var(--stem) * -1); width: 2px; height: var(--stem); margin-left: -1px; background: rgba(240, 143, 47, .65); }
.tk-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.tree-kids b { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; font-weight: 650; }
.tree-kids b .ic { color: var(--orange); width: 20px; height: 20px; }
.tree-kids em { font-style: normal; font-size: .85rem; color: var(--muted); }
.tree-kids li.is-out { border-color: rgba(141, 188, 255, .45); }
.tree-kids li.is-out .tk-k, .tree-kids li.is-out b .ic { color: var(--sky); }
.tree-kids li.is-out::before { background: rgba(141, 188, 255, .6); }
.tree-kids li.is-api b .ic { color: var(--sky); }
@media (min-width: 700px) {
  .tree-kids { --stem: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .tree-kids::after { content: ""; position: absolute; top: calc(var(--stem) * -1); left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: rgba(240, 143, 47, .65); }
  .tree-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin-inline: auto; }
  .tree-two::after { left: 25%; right: 25%; }
}
.tree figcaption { text-align: center; }

/* ---------- local models ---------- */
.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--ink);
}
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 650; font-size: .95rem;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.seg input:checked + span { background: var(--orange); color: #170c02; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg label:hover input:not(:checked) + span { color: var(--text); background: rgba(243, 240, 235, .06); }

.lm {
  margin: 0;
  padding: clamp(18px, 3vw, 36px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.lm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
html:not(.js) .lm-top .seg { display: none; }
.lm-diagram { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 900px) { .lm-diagram { grid-template-columns: minmax(0, 3fr) 90px minmax(0, 1.4fr); } }
.lm-own, .lm-remote-box { position: relative; display: grid; gap: 12px; align-content: start; padding: 52px 18px 18px; border-radius: var(--r-lg); }
.lm-own { border: 1.5px dashed rgba(240, 143, 47, .55); background: rgba(240, 143, 47, .04); }
.lm-remote-box { border: 1.5px dashed rgba(141, 188, 255, .45); background: rgba(141, 188, 255, .04); transition: opacity .4s, filter .4s; }
.lm-label { position: absolute; top: 16px; left: 18px; right: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.lm-remote-box .lm-label { color: var(--sky); }
.lm-harness { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--orange); color: #170c02; }
.lm-harness img { width: 40px; height: 40px; flex: none; background: #170c02; border-radius: 10px; padding: 3px; }
.lm-harness span { display: grid; line-height: 1.25; font-size: .9rem; }
.lm-harness b { font-size: 1.05rem; }
.lm-keep { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .lm-keep { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lm-keep li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.lm-keep .ic { color: var(--orange); width: 18px; height: 18px; }
.lm-model { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--ink-3); transition: border-color .4s, background-color .4s, opacity .4s; }
.lm-model span { display: grid; line-height: 1.3; }
.lm-model em { font-style: normal; font-size: .84rem; color: var(--muted); }
.lm-local { border-color: rgba(240, 143, 47, .6); }
.lm-local .ic { color: var(--orange); }
.lm-remote .ic { color: var(--sky); }
.lm-wire { position: relative; min-height: 44px; }
.lm-wire span { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed rgba(141, 188, 255, .5); transition: opacity .4s; }
@media (min-width: 900px) { .lm-wire span { left: 0; right: 0; top: 50%; bottom: auto; border-left: 0; border-top: 2px dashed rgba(141, 188, 255, .5); } }
.lm-text { margin-top: 26px; display: grid; gap: 18px; }
.lm-text h3 { font-size: 1.3rem; margin-bottom: 8px; }
.lm-text p { color: var(--muted); max-width: 70ch; }
.js .lm [class*="lm-when-"] { display: none; }
.js .lm[data-mode="frontier"] .lm-when-frontier,
.js .lm[data-mode="partial"] .lm-when-partial,
.js .lm[data-mode="local"] .lm-when-local { display: block; }
.js .lm[data-mode="frontier"] .lm-local { opacity: .45; border-style: dashed; border-color: var(--line-2); }
.js .lm[data-mode="local"] .lm-remote-box { opacity: .45; filter: grayscale(.6); }
.js .lm[data-mode="local"] .lm-wire span { opacity: .15; }
.js .lm[data-mode="frontier"] .lm-remote, .js .lm[data-mode="partial"] .lm-remote { border-color: rgba(141, 188, 255, .65); background: #151b24; }
html:not(.js) .lm em.lm-when-frontier::before { content: "Frontier model APIs: "; }
html:not(.js) .lm em.lm-when-partial::before { content: "Certain tasks local: "; }
html:not(.js) .lm em.lm-when-local::before { content: "Entire harness local: "; }
@media (max-width: 640px) {
  .seg-3 { grid-auto-flow: row; width: 100%; border-radius: 18px; }
  .seg-3 span { border-radius: 14px; }
}

.keepers { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 800px) { .keepers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.keepers li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 160px;
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
}
.keepers .ic { width: 32px; height: 32px; color: var(--orange); }
.keepers b { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -.03em; font-weight: 700; }
.keepers-note { margin-top: 24px; color: var(--muted); font-size: 1.05rem; }

/* ---------- notice ---------- */
.notice {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(141, 188, 255, .35);
  background: rgba(141, 188, 255, .07);
  color: var(--text);
  font-size: .95rem;
  max-width: 70ch;
}
.notice .ic { color: var(--sky); margin-top: .15em; }

/* ---------- demo ---------- */
.demo-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.demo-hero .h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.demo-hero-grid { display: grid; gap: 20px; align-items: end; }
.demo-hero-grid .notice { margin-top: 0; }
@media (min-width: 1000px) { .demo-hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; } }
.demo-section { padding-bottom: clamp(64px, 8vw, 110px); }
html:not(.js) .demo { display: none; }
.demo-noscript { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--ink-2); }
.demo-noscript p { color: var(--muted); margin-top: 12px; }
.demo-noscript ol { margin: 18px 0 0 1.2em; display: grid; gap: 8px; color: var(--muted); }

.demo {
  display: grid;
  gap: 16px;
  grid-template-areas: "setup" "run" "side";
}
@media (min-width: 1100px) {
  .demo {
    grid-template-columns: 340px minmax(0, 1fr);
    grid-template-areas: "setup run" "setup side";
    align-items: start;
  }
}
.demo-setup {
  grid-area: setup;
  display: grid;
  gap: 22px;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
}
.demo-setup { grid-template-areas: "pick" "mode" "arrives" "go"; }
.demo-pick { grid-area: pick; }
.demo-mode { grid-area: mode; }
.demo-arrives { grid-area: arrives; }
.demo-go { grid-area: go; }
@media (min-width: 760px) and (max-width: 1099px) {
  .demo-setup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "pick pick" "mode arrives" "go go"; }
}
@media (min-width: 1100px) {
  .demo-setup { grid-template-areas: "pick" "mode" "go" "arrives"; gap: 18px; }
  .demo-setup .pick-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .demo-setup .pick-card { min-height: 58px; padding: 9px 12px; }
  .demo-setup .pick-ic { width: 34px; height: 34px; }
}
@media (min-width: 1100px) and (min-height: 1000px) {
  .demo-setup { position: sticky; top: calc(var(--header-h) + 16px); }
}
.demo-setup legend, .arrives-k {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-weight: 700; font-size: 1rem;
}
.arrives-k { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.step-n {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  background: var(--orange);
  color: #170c02;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
}
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.pick-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "ic t" "ic s";
  column-gap: 12px;
  align-items: center;
  height: 100%;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.pick-card b { grid-area: t; font-size: .98rem; line-height: 1.2; }
.pick-card em { grid-area: s; font-style: normal; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.pick-ic { grid-area: ic; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(243, 240, 235, .06); color: var(--muted); transition: background-color .2s, color .2s; }
.pick-ic .ic { width: 20px; height: 20px; }
.pick:hover .pick-card { border-color: var(--line-3); }
.pick input:checked + .pick-card { border-color: var(--orange); background: #21180f; box-shadow: 0 0 0 3px rgba(240, 143, 47, .15); }
.pick input:checked + .pick-card .pick-ic { background: var(--orange); color: #170c02; }
.pick input:focus-visible + .pick-card { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 420px) {
  .pick-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ic" "t" "s"; row-gap: 6px; align-items: start; padding: 12px; }
  .pick-ic { width: 32px; height: 32px; }
}

.seg-stack { display: grid; grid-auto-flow: row; border-radius: 18px; width: 100%; }
.seg-stack span {
  display: grid; justify-content: start; justify-items: start; gap: 2px;
  min-height: 64px; padding: 10px 16px;
  border-radius: 14px;
  white-space: normal; text-align: left;
}
.seg-stack span em { font-style: normal; font-weight: 450; font-size: .82rem; line-height: 1.35; color: var(--dim); }
.seg-stack input:checked + span em { color: rgba(23, 12, 2, .78); }
.seg-k {
  display: inline-flex; align-items: center;
  margin-left: 8px; padding: 1px 7px;
  border-radius: 6px;
  font-family: var(--mono); font-style: normal; font-size: .64rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--orange-soft); color: var(--orange);
  vertical-align: .12em;
}
.seg-stack input:checked + span .seg-k { background: rgba(23, 12, 2, .14); color: #170c02; }
@media (min-width: 560px) and (max-width: 759px) { .seg-stack { grid-auto-flow: column; } }

.preview {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--dark);
  transition: transform .3s var(--ease);
}
.preview.is-flash { animation: flash-in .45s var(--ease); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.preview-where { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.preview-badge { padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-weight: 650; background: #dff3e6; color: #1d5c35; }
.preview-badge.is-bad { background: #fbe3df; color: #8f2a19; }
.preview-from { margin: 0 0 4px; font-size: .86rem; }
.preview-from b { font-weight: 500; color: var(--dark-muted); margin-right: 4px; }
.preview-subj { margin: 0 0 4px; font-weight: 700; font-size: .95rem; }
.preview-body { margin: 0; font-size: .86rem; color: var(--dark-muted); line-height: 1.45; }
.demo-go { display: flex; align-items: center; gap: 12px; }

.demo-run {
  grid-area: run;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.run-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px clamp(12px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: rgba(21, 19, 17, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.run-count { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.run-ctrl { display: flex; gap: 6px; margin-left: auto; }
.btn-icon {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--ink);
  font-size: .88rem; font-weight: 600;
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.btn-icon .ic { width: 16px; height: 16px; }
.btn-icon:hover:not([disabled]) { border-color: var(--text); }
.btn-icon[disabled] { opacity: .4; cursor: not-allowed; }
@media (max-width: 480px) {
  .btn-icon { padding: 0 12px; }
  .run-ctrl { margin-left: 0; width: 100%; }
  .run-ctrl .btn-icon { flex: 1; justify-content: center; }
}

.stage {
  position: relative;
  padding: 44px clamp(12px, 2vw, 22px) clamp(14px, 2vw, 22px);
  isolation: isolate;
  container-type: inline-size;
}
.stage-zones { position: relative; z-index: 1; display: grid; gap: 14px; pointer-events: none; }
.stage-tag {
  position: absolute; top: 12px; left: clamp(12px, 2vw, 22px); right: 12px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sky);
}
.stage-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.stage-wires .w { fill: none; stroke: rgba(243, 240, 235, .1); stroke-width: 1.5; stroke-dasharray: 3 5; }
.stage-wires .w-active { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(240, 143, 47, .7)); }
.stage-wires .w-active.is-out { stroke: var(--sky); filter: drop-shadow(0 0 6px rgba(141, 188, 255, .7)); }
.stage-wires .w-active.is-person { stroke: var(--paper); filter: drop-shadow(0 0 6px rgba(243, 240, 235, .5)); }

.zone {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column; gap: 10px;
  padding: 40px 12px 12px;
  border-radius: 18px;
  border: 1.5px dashed var(--line-2);
  pointer-events: none;
}
.zone > * { pointer-events: auto; }
.zone-server { border-color: rgba(240, 143, 47, .5); background: rgba(240, 143, 47, .035); }
.zone-out { border-color: rgba(141, 188, 255, .45); background: rgba(141, 188, 255, .035); }
.zone-label { position: absolute; top: 12px; left: 14px; right: 12px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.zone-label .ic { width: 15px; height: 15px; }
.zone-server .zone-label { color: var(--orange); }
.zone-out .zone-label { color: var(--sky); }
.zone-nodes { display: grid; gap: 10px; }
.zone-sys .zone-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zone-server .zone-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zone-out .zone-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zone-server .node[data-node="local"] { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; }
.node-core { grid-column: 1 / -1; }
/* Wide stage: three zones side by side. Placed after the base zone rules so it wins. */
@container (min-width: 760px) {
  .stage-zones { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; gap: 18px; }
  .zone-sys .zone-nodes, .zone-out .zone-nodes { grid-template-columns: minmax(0, 1fr); }
  .zone-nodes { flex: 1; align-content: space-around; }
}
.node {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--ink);
  transition: border-color .3s, box-shadow .3s, background-color .3s, opacity .3s;
}
.node-txt { display: grid; min-width: 0; line-height: 1.22; }
.node-txt b { font-size: .88rem; font-weight: 650; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.node-txt em { font-style: normal; font-size: .74rem; color: var(--dim); }
.node .node-ic { width: 32px; height: 32px; }
.node-out .node-ic { color: var(--sky); }
.node-person .node-ic { color: var(--paper); }
.zone-sys .node .node-ic { color: var(--muted); }
.node-core { flex-direction: row; align-items: center; gap: 14px; min-height: 76px; border-color: rgba(240, 143, 47, .55); background: #1d1610; }
.node-core .node-txt b { font-size: 1.05rem; }
.node-mark { width: 44px !important; height: 44px !important; background: transparent; }
.node-mark img { width: 44px; height: 44px; }
.node-model .node-ic { color: var(--orange); }
.node-api .node-ic { color: var(--sky); }
.node-sub .node-ic { color: var(--orange); }
.node-sub:not(.is-spawned) { border-style: dashed; opacity: .55; }
.node-sub.is-spawned { border-color: rgba(240, 143, 47, .45); }
@media (max-width: 560px) {
  .node { padding: 10px; }
  .node-txt b { font-size: .82rem; }
  .node-txt em { font-size: .7rem; }
}
/* Narrow stage: the boxes outside the server get a full-width row each,
   icon beside the text, so the longer labels are not squeezed into thirds. */
@container (max-width: 579px) {
  .zone-out .zone-nodes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .zone-out .node { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; }
  .zone-out .node-txt b { font-size: .88rem; }
  .zone-out .node-txt em { font-size: .74rem; }
}

.node.is-active { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240, 143, 47, .16), 0 10px 30px -12px rgba(240, 143, 47, .6); background: #221910; }
.node-out.is-active { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(141, 188, 255, .16), 0 10px 30px -12px rgba(141, 188, 255, .55); background: #141a22; }
.node-person.is-active, .zone-sys .node.is-active { border-color: var(--paper); box-shadow: 0 0 0 4px rgba(243, 240, 235, .1); background: #1f1d1a; }
.node.is-busy::after {
  content: "";
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 1.2s infinite;
}
.node-out.is-busy::after { background: var(--sky); }
.node-person.is-busy::after { background: var(--warn); }
.node.is-thinking { animation: think 1s var(--ease-io) infinite alternate; }
.node.is-locked { border-color: rgba(255, 148, 131, .6); }
.node.is-locked::before {
  content: "Not touched";
  position: absolute; right: 8px; bottom: -9px;
  padding: 1px 6px; border-radius: 5px;
  background: #3a1c17; color: var(--stop);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase;
}
.node.is-unused { opacity: .36; border-style: dashed; }
.stage.is-paused .node, .stage.is-paused .node::after { animation-play-state: paused; }
.ctx {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: repeating-linear-gradient(-45deg, rgba(240, 143, 47, .07) 0 8px, transparent 8px 16px);
  border: 1px solid rgba(240, 143, 47, .3);
  font-size: .8rem; font-weight: 600; color: var(--text);
}
.ctx .ic { width: 16px; height: 16px; color: var(--orange); }
.token {
  position: absolute; left: 0; top: 0;
  z-index: 3;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 4px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 143, 47, .22), 0 0 20px rgba(240, 143, 47, .95);
  opacity: 0;
  pointer-events: none;
}
.token.is-out { background: var(--sky); box-shadow: 0 0 0 4px rgba(141, 188, 255, .22), 0 0 20px rgba(141, 188, 255, .95); }
.token.is-person { background: var(--paper); box-shadow: 0 0 0 4px rgba(243, 240, 235, .2), 0 0 18px rgba(243, 240, 235, .8); }

.stage-caption {
  display: grid; gap: 4px;
  min-height: 96px;
  margin: 0;
  padding: 16px clamp(14px, 2vw, 22px) 20px;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.45;
}
.cap-who { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.cap-who.is-out { color: var(--sky); }
.cap-who.is-person { color: var(--paper); }
.cap-model { display: inline-flex; margin-left: 8px; vertical-align: .1em; }

.demo-side { grid-area: side; display: grid; gap: 16px; align-content: start; }
@media (min-width: 700px) { .demo-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.jobcard, .runlog {
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--ink-2);
}
.jobcard.is-open { border-color: rgba(240, 143, 47, .5); }
.jobcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-id { font-family: var(--mono); font-size: .8rem; color: var(--orange); letter-spacing: .06em; }
.job-title { margin: 10px 0 14px; font-size: 1.15rem; letter-spacing: -.015em; }
.job-parts { list-style: none; display: grid; gap: 8px; }
.job-parts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "what state" "who who";
  gap: 4px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink);
}
.job-parts li.is-flash { animation: flash-in .5s var(--ease); }
.job-parts .tp-what { font-size: .88rem; }
.job-parts .tp-who { font-size: .8rem; }
.job-parts li[data-state="work"] { border-color: rgba(240, 143, 47, .5); }
.job-parts li[data-state="work"] .tp-state { color: var(--orange); }
.job-parts li[data-state="done"] .tp-state { color: var(--ok); }
.job-parts li[data-state="wait"] .tp-state { color: var(--warn); }
.job-parts li[data-state="stop"] { border-color: rgba(255, 148, 131, .5); }
.job-parts li[data-state="stop"] .tp-state { color: var(--stop); }
.job-tally { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.job-tally div { padding: 10px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line); }
.job-tally dt { font-size: .7rem; color: var(--dim); line-height: 1.25; }
.job-tally dd { margin: 4px 0 0; font-family: var(--mono); font-size: 1.25rem; font-weight: 600; }
.job-tally dd.is-bump { animation: bump .4s var(--ease); }
.job-keep { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .84rem; color: var(--muted); }
.job-keep .ic { color: var(--orange); width: 16px; height: 16px; }
.job-done { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--orange-soft); border: 1px solid rgba(240, 143, 47, .45); }
.job-done[hidden] { display: none; }
.job-done-k { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange); margin-bottom: 6px; }
.job-done p { font-size: .92rem; }
.job-done-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.job-done-actions .btn { white-space: normal; }
.runlog-h { font-size: .74rem; font-family: var(--mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.log { list-style: none; display: grid; gap: 2px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.log li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); font-size: .84rem; line-height: 1.4; }
.log li:first-child { border-top: 0; }
.log time { font-family: var(--mono); font-size: .74rem; color: var(--dim); padding-top: .1em; }
.log .log-who { display: block; font-weight: 650; color: var(--text); }
.log .log-txt { color: var(--muted); }
.log .tag { margin-top: 4px; }
.log li.is-new { animation: flash-in .45s var(--ease); }
.log-empty { display: block !important; color: var(--dim); font-size: .86rem; }
.log li.log-note .log-txt { color: var(--warn); }

.legend { list-style: none; display: grid; gap: 14px; margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 860px) { .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legend li { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); }
.legend h3 { font-size: 1.1rem; margin-bottom: 6px; }
.legend p { color: var(--muted); font-size: .95rem; }
.legend-sw { width: 18px; height: 18px; border-radius: 5px; flex: none; margin-top: 4px; border: 2px dashed; }
.sw-in { border-color: var(--orange); background: rgba(240, 143, 47, .15); }
.sw-out { border-color: var(--sky); background: rgba(141, 188, 255, .15); }
.sw-sys { border-color: var(--line-3); }

/* ---------- legal / document pages ---------- */
.theme-paper { background: var(--paper); color: var(--dark); color-scheme: light; --focus: var(--orange-ink); }
.theme-paper .site-header::before { background: rgba(243, 240, 235, .88); }
.theme-paper .site-header.is-scrolled { box-shadow: 0 1px 0 var(--dark-line), 0 12px 32px -20px rgba(26, 26, 26, .35); }
.theme-paper .nav-link { color: var(--dark-muted); }
.theme-paper .nav-link:hover, .theme-paper .nav-link[aria-current="page"] { color: var(--dark); background: rgba(26, 26, 26, .05); }
.theme-paper .menu-btn { border-color: rgba(26, 26, 26, .25); }
.theme-paper p a, .theme-paper li a { color: var(--orange-ink); text-decoration-color: rgba(154, 74, 5, .45); }
.theme-paper .site-footer { --focus: var(--orange); }

.doc-head { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.doc-head-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 700px) { .doc-head-inner { grid-template-columns: auto minmax(0, 1fr); gap: 40px; } .doc-head-text { grid-template-columns: minmax(0, 1fr); } }
.oauth-mark { width: 120px; height: 120px; border-radius: 0; }
.doc-head .eyebrow { margin-bottom: 14px; }
.doc-head .h1 { color: var(--dark); }
.doc-lede { margin-top: 18px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--dark-muted); max-width: 52ch; }
.doc-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; color: var(--dark-muted); }
.doc-meta span:first-child { font-family: var(--mono); font-size: .85rem; padding: 4px 10px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--dark-line); color: var(--dark); }
.doc-body { display: grid; gap: 32px; padding-bottom: clamp(72px, 9vw, 120px); }
@media (min-width: 1000px) { .doc-body { grid-template-columns: 260px minmax(0, 1fr); gap: 72px; } .doc-aside { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; } }
.doc-toc { padding: 8px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--dark-line); }
.doc-toc[open] { padding-bottom: 18px; }
.doc-toc-k { margin: 0 0 8px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
summary.doc-toc-k {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; margin: 0;
  cursor: pointer;
  list-style: none;
}
summary.doc-toc-k::-webkit-details-marker { display: none; }
summary.doc-toc-k::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s var(--ease);
}
.doc-toc[open] summary.doc-toc-k::after { transform: rotate(-135deg) translate(-2px, -2px); }
@media (min-width: 1000px) { summary.doc-toc-k { pointer-events: none; } summary.doc-toc-k::after { display: none; } }
.doc-toc ul + .doc-toc-k, .doc-toc ol + .doc-toc-k { margin-top: 18px; }
.doc-toc ol, .doc-toc ul { list-style: none; display: grid; gap: 2px; }
.doc-toc ol { counter-reset: toc; }
.doc-toc a {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 4px 10px;
  border-radius: 10px;
  color: var(--dark) !important;
  text-decoration: none !important;
  font-size: .92rem; line-height: 1.3;
}
.doc-toc ol a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--orange-ink); }
.doc-toc a:hover { background: var(--paper-2); }
@media (max-width: 999px) {
  .doc-toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
.doc-text { max-width: 72ch; font-size: 1.06rem; line-height: 1.7; color: #2c2925; }
.doc-text section { padding: clamp(22px, 2.6vw, 32px) 0; }
.doc-text section:first-child { padding-top: 0; }
.doc-text h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.025em; color: var(--dark); margin-bottom: 16px; }
.doc-n {
  display: inline-grid; place-items: center;
  min-width: 2.1em; height: 2.1em; padding: 0 .4em;
  border-radius: 10px;
  background: var(--dark); color: var(--orange);
  font-family: var(--mono); font-size: .62em; font-weight: 600; letter-spacing: 0;
}
.doc-app .doc-text h2::before, .doc-text:not(.doc-numbered) h2::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--orange); flex: none;
}
.doc-text p + p, .doc-text ul + p, .doc-text p + ul { margin-top: 1em; }
.doc-text ul { margin-left: 0; list-style: none; display: grid; gap: 10px; }
.doc-text ul li { position: relative; padding-left: 26px; }
.doc-text ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.doc-callout { margin-top: 20px; padding: 20px 22px; border-radius: var(--r); background: var(--dark); color: var(--paper); }
.doc-callout p { color: var(--paper); }
.doc-key { padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid rgba(154, 74, 5, .35); color: var(--dark); }
.doc-caps { font-size: .95rem; letter-spacing: .01em; line-height: 1.65; padding: 18px 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--dark-line); }
.url { font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
.doc-logo { margin: 4px 0 16px; }
.doc-logo img { width: 200px; height: auto; }
.doc-text a { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--text);
  padding: clamp(56px, 7vw, 96px) 0 32px;
  background: #0b0a09;
  color-scheme: dark;
}
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }
.footer-brand img { height: 44px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--muted); max-width: 36ch; }
.footer-nav {
  display: grid;
  gap: 32px 64px;
  grid-template-columns: 1fr;
  justify-content: start;
  align-items: start;
}
@media (min-width: 640px) {
  .footer-nav { grid-template-columns: max-content max-content; }
}
@media (min-width: 900px) { .footer-nav { justify-content: end; } }
.footer-nav h2 { font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.footer-nav ul { list-style: none; display: grid; gap: 2px; }
.footer-nav a {
  display: inline-flex; align-items: center;
  min-height: 40px;
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: .98rem;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--orange) !important; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
  font-size: .86rem; color: var(--dim);
}
.footer-company { display: flex; align-items: center; gap: 12px; }
.footer-company img { width: 28px; height: 28px; flex: none; }
.footer-tds { margin-bottom: 14px !important; }
.footer-tds img { width: 172px; height: auto; padding: 10px 14px; border-radius: 12px; background: #fff; box-sizing: content-box; }

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 209, 160, .55); } 70% { box-shadow: 0 0 0 8px rgba(127, 209, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 160, 0); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-8vmax, 6vmax, 0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nudge { 0%, 70%, 100% { transform: rotate(-2.2deg) translateX(10px); } 76% { transform: rotate(-3.4deg) translateX(16px); } 82% { transform: rotate(-1.6deg) translateX(8px); } 88% { transform: rotate(-2.6deg) translateX(12px); } }
@keyframes travel-x { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes travel-y { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 10px); opacity: 0; } }
@keyframes flash-in { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); color: var(--orange); } 100% { transform: scale(1); } }
@keyframes think { from { box-shadow: 0 0 0 3px rgba(240, 143, 47, .1); } to { box-shadow: 0 0 0 9px rgba(240, 143, 47, .22); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .band-track { animation: none; width: auto; }
  .band-list { flex-wrap: wrap; row-gap: 6px; padding-inline: var(--gutter); }
  .band-list + .band-list { display: none; }
  .band { transform: none; margin: 0; }
  .hero-glow { animation: none; }
  .caret { animation: none; }
  .js .addon-bad { animation: none; }
  .js .bounds-link span::after { display: none; }
  .pill-live i { animation: none; }
  .node.is-busy::after { animation: none; }
  .node.is-thinking { animation: none; box-shadow: 0 0 0 6px rgba(240, 143, 47, .2); }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .band, .hero-bg, .doc-aside, .skip { display: none !important; }
  body, .theme-paper { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
