/* ------------------------------------------------------------------- tokens */
:root {
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --paper: #fbfaf6;
  --paper-2: #f4f1e9;
  --paper-3: #eae6db;
  --code: #f6f3eb;
  --ink: #171310;
  --ink-2: #4e463d;
  --ink-3: #7d746a;
  --rose: #b07a5a;
  --rose-2: #d2a184;
  --rose-3: #e9c9b4;
  --rose-ink: #8a5c43;
  --on-rose: #241309;
  --blue: #2f4a73;
  --blue-2: #4a6d9e;
  --blue-3: #dbe3ef;
  --mark-a: #a86f4f;
  --mark-b: #3a588a;
  --hair: color-mix(in srgb, var(--ink) 16%, transparent);
  --hair-2: color-mix(in srgb, var(--ink) 8%, transparent);
  --wash: color-mix(in srgb, var(--ink) 4%, transparent);
  --rose-wash: color-mix(in srgb, var(--rose) 10%, transparent);
  --blue-wash: color-mix(in srgb, var(--blue) 9%, transparent);
  --select: color-mix(in srgb, var(--rose) 22%, transparent);
  --sb-track: color-mix(in srgb, var(--ink) 4%, transparent);
  --sb-thumb: color-mix(in srgb, var(--ink) 30%, transparent);
  --sb-thumb-dim: color-mix(in srgb, var(--ink) 15%, transparent);
  --sb-thumb-in: color-mix(in srgb, var(--ink) 19%, transparent);
  --rail-ink: #d3ccbf;
  --node-ink: #b3aa9b;
  --wrap: 1128px;
  --gutter: clamp(1.25rem, 4.2vw, 3.25rem);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.07'/%3E%3C/svg%3E");
  --hatch: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 14%, transparent) 0 1px, transparent 1px 6px);
  --hatch-rose: repeating-linear-gradient(135deg, color-mix(in srgb, var(--rose) 34%, transparent) 0 1px, transparent 1px 5px);
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #12100d;
  --paper-2: #1a1713;
  --paper-3: #221e19;
  --code: #18150f;
  --ink: #f3ede4;
  --ink-2: #bcb3a6;
  --ink-3: #8b8275;
  --rose: #d9a284;
  --rose-2: #eec4ac;
  --rose-3: #f6ddcd;
  --rose-ink: #e3b096;
  --on-rose: #120b07;
  --blue: #9fb9dc;
  --blue-2: #b7cbe8;
  --blue-3: #23334b;
  --mark-a: #e0ab8e;
  --mark-b: #93aed2;
  --sb-track: color-mix(in srgb, var(--ink) 7%, transparent);
  --sb-thumb: color-mix(in srgb, var(--ink) 42%, transparent);
  --sb-thumb-dim: color-mix(in srgb, var(--ink) 26%, transparent);
  --sb-thumb-in: color-mix(in srgb, var(--ink) 34%, transparent);
  --rail-ink: #3f3a33;
  --node-ink: #6d6459;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12100d;
    --paper-2: #1a1713;
    --paper-3: #221e19;
    --code: #18150f;
    --ink: #f3ede4;
    --ink-2: #bcb3a6;
    --ink-3: #8b8275;
    --rose: #d9a284;
    --rose-2: #eec4ac;
    --rose-3: #f6ddcd;
    --rose-ink: #e3b096;
    --on-rose: #120b07;
    --blue: #9fb9dc;
    --blue-2: #b7cbe8;
    --blue-3: #23334b;
    --mark-a: #e0ab8e;
    --mark-b: #93aed2;
    --sb-track: color-mix(in srgb, var(--ink) 7%, transparent);
    --sb-thumb: color-mix(in srgb, var(--ink) 42%, transparent);
    --sb-thumb-dim: color-mix(in srgb, var(--ink) 26%, transparent);
    --sb-thumb-in: color-mix(in srgb, var(--ink) 34%, transparent);
    --rail-ink: #3f3a33;
    --node-ink: #6d6459;
    color-scheme: dark;
  }
}
/* --------------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  background-size: 160px 160px;
  background-blend-mode: multiply;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  letter-spacing: -0.004em;
  font-variant-ligatures: no-contextual;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--rose-ink);
}
[data-theme="dark"] body {
  background-blend-mode: screen;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background-blend-mode: screen;
  }
}
body,
body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
pre,
code,
kbd,
samp,
input,
textarea,
.pick {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
::selection {
  background: var(--select);
  color: var(--ink);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
p {
  margin: 0;
  color: var(--ink-2);
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input {
  font: inherit;
  color: inherit;
}
/* --------------------------------------------------- no browser defaults left */
::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
::marker {
  color: var(--ink-3);
}
button,
input,
select,
textarea,
summary,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}
input,
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  background: none;
  border: 0;
}
input::-webkit-search-decoration,
input::-webkit-search-cancel-button,
input::-webkit-search-results-button {
  -webkit-appearance: none;
  display: none;
}
textarea {
  resize: vertical;
}
select {
  cursor: pointer;
}
select:not([multiple]) {
  padding: 0.5rem 2rem 0.42rem 0.6rem;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background-color: var(--paper-2);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  font-family: var(--mono);
  font-size: 0.76rem;
}
input[type="checkbox"],
input[type="radio"] {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--ink-3);
  background: var(--paper);
  cursor: pointer;
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: var(--rose-ink);
  background: var(--rose);
}
input[type="radio"] {
  border-radius: 50%;
}
input[type="range"] {
  height: 18px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--hair);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--rose);
}
input[type="range"]::-moz-range-track {
  height: 2px;
  background: var(--hair);
}
input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: var(--rose);
}
progress {
  appearance: none;
  height: 2px;
  width: 100%;
  border: 0;
  background: var(--hair);
}
progress::-webkit-progress-bar {
  background: var(--hair);
}
progress::-webkit-progress-value {
  background: var(--rose);
}
progress::-moz-progress-bar {
  background: var(--rose);
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--rose);
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}
/* ------------------------------------------------------------------ tooltips */
.tip {
  position: relative;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 80;
  padding: 0.3rem 0.45rem 0.24rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -3px);
  pointer-events: none;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}
.tip::before {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  z-index: 81;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: var(--ink);
  transform: rotate(45deg) scale(0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s var(--ease);
}
.tip:hover::after,
.tip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.tip:hover::before,
.tip:focus-visible::before {
  opacity: 1;
}
@media (hover: none) {
  .tip::after,
  .tip::before {
    display: none;
  }
}
code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
hr {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 0;
}
/* ---------------------------------------------------------------- scrollbar */
@supports selector(::-webkit-scrollbar) {
  html::-webkit-scrollbar {
    width: 11px;
    height: 11px;
  }
  html::-webkit-scrollbar-track {
    background-color: var(--sb-track);
  }
  html::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 99px;
    background-color: var(--sb-thumb);
    background-clip: content-box;
  }
  html::-webkit-scrollbar-thumb:hover {
    background-color: var(--rose-ink);
  }
  html.at-top::-webkit-scrollbar-thumb {
    background-color: var(--sb-thumb-dim);
  }
  :is(.scroll, pre, .toc, .api-nav)::-webkit-scrollbar {
    width: 9px;
    height: 9px;
  }
  :is(.scroll, pre, .toc, .api-nav)::-webkit-scrollbar-track {
    background-color: transparent;
  }
  :is(.scroll, pre, .toc, .api-nav)::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 99px;
    background-color: var(--sb-thumb-in);
    background-clip: content-box;
  }
  :is(.scroll, pre, .toc, .api-nav):hover::-webkit-scrollbar-thumb {
    background-color: var(--sb-thumb);
  }
}
@supports not selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb) var(--sb-track);
  }
  html.at-top {
    scrollbar-color: var(--sb-thumb-dim) var(--sb-track);
  }
  :is(.scroll, pre, .toc, .api-nav) {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-thumb-in) transparent;
  }
  :is(.scroll, pre, .toc, .api-nav):hover {
    scrollbar-color: var(--sb-thumb) transparent;
  }
}
/* ------------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-ink);
}
.lede {
  max-width: 54ch;
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.section {
  padding-block: clamp(3.6rem, 7vw, 5.6rem);
  border-top: 1px solid var(--hair);
}
.section-head {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1.02fr) minmax(0, 0.78fr);
  gap: 0 clamp(1.2rem, 3vw, 2.6rem);
  align-items: end;
  padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
}
.section-head .num {
  align-self: start;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 0.86;
  color: color-mix(in srgb, var(--rose) 72%, transparent);
  font-variant-numeric: lining-nums;
}
.section-head h2 {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.06;
}
.section-head p {
  justify-self: end;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.66;
}
/* a band of ink, where the page stops and the wire speaks */
.band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6.4vw, 4.8rem);
  margin-top: -1px;
}
.band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -6%;
  width: 62%;
  height: 180%;
  background-image: repeating-conic-gradient(from 184deg at 100% 50%, color-mix(in srgb, var(--paper) 38%, transparent) 0deg 0.3deg, transparent 0.3deg 3.4deg);
  mask-image: radial-gradient(62% 74% at 100% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(62% 74% at 100% 50%, #000, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper) 4%, transparent) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.band .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr);
  gap: 0 clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.band .band-side {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 1.2rem;
  border-left: 1px solid color-mix(in srgb, var(--paper) 20%, transparent);
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--paper) 44%, var(--rose));
  white-space: nowrap;
  overflow: hidden;
}
.band .band-side code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 1em;
}
.band .band-line {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--paper);
  max-width: 20ch;
}
.band .band-note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
}
.band .band-note code {
  color: var(--rose-ink);
  background: none;
  font-size: 1em;
}
/* --------------------------------------------------------------------- head */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid var(--hair);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: calc(var(--progress, 0) * 100%);
  height: 1px;
  background: var(--rose);
  transform-origin: left;
  pointer-events: none;
}
.bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  height: 58px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.014em;
}
.brand .mark {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke-width: 2.05;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand .mark .m-a {
  stroke: var(--mark-a);
}
.brand .mark .m-b {
  stroke: var(--mark-b);
}
.mainnav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  margin-left: auto;
}
.mainnav a {
  position: relative;
  padding-block: 0.35rem;
  font-size: 0.86rem;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.mainnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.mainnav a:hover {
  color: var(--ink);
}
.mainnav a[aria-current="page"] {
  color: var(--ink);
}
.mainnav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 2px;
  color: var(--ink-3);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
.icon-btn:hover {
  color: var(--ink);
  background: var(--wash);
}
.icon-btn:active {
  transform: translateY(1px);
}
.theme-toggle .sun {
  display: none;
}
.theme-toggle .moon {
  display: block;
}
[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .moon {
    display: none;
  }
}
/* ------------------------------------------------------------------ controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.15rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background-color: var(--rose);
  background-image: linear-gradient(168deg, color-mix(in srgb, var(--rose-3) 30%, var(--rose)) 0%, var(--rose) 58%, color-mix(in srgb, var(--ink) 7%, var(--rose)) 100%);
  color: var(--on-rose);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
  -webkit-user-drag: none;
}
.btn:hover {
  background-image: linear-gradient(168deg, color-mix(in srgb, var(--rose-3) 46%, var(--rose-2)) 0%, var(--rose-2) 62%, color-mix(in srgb, var(--ink) 5%, var(--rose-2)) 100%);
}
.btn:active {
  transform: translateY(1px);
}
.btn .arrow {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  transform: translateY(-0.04em);
  transition: transform 0.22s var(--ease);
}
.btn:hover .arrow {
  transform: translate(2px, -0.04em);
}
.docket {
  margin: auto 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--hair);
}
.docket .d-row {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.58rem 0 0.54rem;
  border-bottom: 1px solid var(--hair-2);
}
.docket .d-row dt {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.docket .d-row dd {
  margin: 0;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.docket .d-row .sep {
  color: var(--rose-ink);
}
.btn.ghost {
  background: transparent;
  border-color: var(--hair);
  color: var(--ink-2);
}
.btn.ghost:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}
.chip {
  display: inline-block;
  padding: 0.16rem 0.42rem 0.1rem;
  border: 1px solid color-mix(in srgb, var(--rose) 58%, transparent);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-ink);
  white-space: nowrap;
}
.chip.stream {
  border-color: color-mix(in srgb, var(--blue) 58%, transparent);
  color: var(--blue);
}
.chip.final {
  border-color: color-mix(in srgb, var(--ink) 32%, transparent);
  color: var(--ink-2);
}
/* --------------------------------------------------------------------- home */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-copy > * {
  animation: rise 0.72s var(--ease) both;
}
.hero-copy > *:nth-child(1) {
  animation-delay: 0.04s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.1s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.18s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.26s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.32s;
}
.hero-copy > *:nth-child(6) {
  animation-delay: 0.38s;
}
.transcript {
  animation: rise 0.8s var(--ease) 0.22s both;
}
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 3.6vw, 2.8rem);
  overflow: hidden;
}
.ara {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 76%;
  height: 136%;
  background-image: repeating-conic-gradient(from 176deg at 0% 54%, color-mix(in srgb, var(--ink) 26%, transparent) 0deg 0.18deg, transparent 0.18deg 2.4deg);
  mask-image: radial-gradient(58% 62% at 4% 54%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(58% 62% at 4% 54%, #000 0%, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}
[data-theme="dark"] .ara {
  opacity: 0.42;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 0;
  align-items: stretch;
  position: relative;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 0.4rem;
  padding-right: clamp(1rem, 2.6vw, 2.2rem);
  border-right: 1px solid var(--hair-2);
}
.hero-copy::after {
  content: "agent \2194  agent";
  position: absolute;
  right: 0.55rem;
  bottom: 9.2rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 26%, transparent);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
}
.hero-copy .lede {
  margin-top: 1.6rem;
  max-width: 38ch;
  font-size: 1.03rem;
  line-height: 1.66;
}
.hero-grid > .transcript {
  margin-left: clamp(1rem, 2.6vw, 2.2rem);
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-kicker .eyebrow {
  color: var(--rose-ink);
  letter-spacing: 0.16em;
}
.hero-kicker .eyebrow.dim {
  color: var(--ink-3);
}
.hero-kicker .k-rule {
  flex: 1;
  height: 1px;
  background: var(--hair);
}
.hero-kicker .folio {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1;
  color: var(--ink-3);
}
.hero-title {
  margin-top: 1.15rem;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 5.9vw, 4.75rem);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.02em;
  text-wrap: initial;
}
.hero-title .hl {
  display: block;
}
.hero-title .one {
  display: inline-block;
  margin-right: 0.15em;
  font-size: 0.42em;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--rose-ink);
  vertical-align: 0.66em;
}
.hero-title .word {
  position: relative;
  display: inline-block;
  font-style: italic;
}
.hero-title .strike {
  position: absolute;
  left: -0.02em;
  bottom: -0.07em;
  width: 104%;
  height: 0.12em;
  overflow: visible;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.7;
  stroke-linecap: round;
  opacity: 0.85;
}
.hero-title .stop {
  display: inline-block;
  width: 0.09em;
  height: 0.09em;
  margin-left: 0.07em;
  background: var(--rose);
  vertical-align: 0.02em;
  transform: rotate(45deg);
}
.hero-foot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 0.56fr)) minmax(0, 1.9fr);
  gap: 1px;
  margin-top: clamp(2.2rem, 4.4vw, 3.2rem);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--hatch);
  background-size: 6px 6px;
}
.hero-foot .hf-cell {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  padding: 0.9rem 0.2rem 0.8rem 1rem;
  background: var(--paper);
}
.hero-foot .hf-cell span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-foot .hf-cell b {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}
.hero-foot .hf-note {
  display: flex;
  align-items: center;
  padding: 0.9rem 0 0.8rem 1.4rem;
  background: var(--paper);
  font-size: 0.9rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-foot .hf-note em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12em;
  color: var(--ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
/* the transcript panel */
.transcript,
.map-panel,
.exchange {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper) 70%, transparent), 0 22px 44px -34px color-mix(in srgb, var(--ink) 55%, transparent);
}
[data-theme="dark"] .transcript,
[data-theme="dark"] .map-panel,
[data-theme="dark"] .exchange {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent), 0 22px 44px -30px #000;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .transcript,
  :root:not([data-theme="light"]) .map-panel,
  :root:not([data-theme="light"]) .exchange {
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 12%, transparent), 0 22px 44px -30px #000;
  }
}
.transcript {
  --rail-pad: 1.15rem;
  --rail: 6px;
  --node: 5px;
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--paper);
  overflow: hidden;
}
.t-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.85rem 0.62rem var(--rail-pad);
  border-bottom: 1px solid var(--hair-2);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.t-head .dot {
  position: absolute;
  left: calc(var(--rail) - var(--node) / 2);
  top: 50%;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}
.t-head .t-method {
  color: var(--blue);
}
.t-head .t-status {
  margin-left: auto;
}
.t-body {
  padding: 0.95rem 0.9rem 1.05rem var(--rail-pad);
}
.t-frame {
  --pad: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 0 0 0.85rem 0;
  animation: frame-in 0.6s var(--ease) both;
}
.t-frame:nth-child(2) {
  animation-delay: 0.12s;
}
.t-frame:nth-child(3) {
  animation-delay: 0.24s;
}
.t-frame:nth-child(4) {
  animation-delay: 0.36s;
}
.t-frame:nth-child(5) {
  animation-delay: 0.48s;
}
.t-frame + .t-frame {
  --pad: 0.85rem;
  padding-top: var(--pad);
  border-top: 1px dashed var(--hair-2);
}
.t-frame::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) - var(--rail-pad));
  top: calc(var(--pad) + 0.36rem);
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--node-ink);
}
.t-frame:first-child::before {
  background: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
}
.t-frame pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.685rem;
  line-height: 1.62;
  color: var(--ink-2);
  white-space: pre;
  overflow-x: auto;
}
.t-frame .f-label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.t-frame .f-state {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--rose-ink);
}
.t-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem 0.55rem var(--rail-pad);
  border-top: 1px solid var(--hair-2);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.t-foot .dot {
  position: absolute;
  left: calc(var(--rail) - var(--node) / 2);
  top: 50%;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--rose);
  transform: translateY(-50%);
}
.t-body {
  position: relative;
}
.t-body::before {
  content: "";
  position: absolute;
  left: calc(var(--rail) - 0.5px);
  top: 0.95rem;
  bottom: 1.05rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--rail-ink) 0.9rem, var(--rail-ink) calc(100% - 0.9rem), transparent);
}
.t-body::after {
  content: "";
  position: absolute;
  left: calc(var(--rail) - 2.5px);
  top: 0.55rem;
  width: 5px;
  height: 16px;
  border-radius: 2.5px;
  background: radial-gradient(circle at 50% 13px, var(--rose) 0 2.5px, transparent 2.6px), linear-gradient(to bottom, transparent, color-mix(in srgb, var(--rose) 45%, transparent));
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--rose) 40%, transparent));
  animation: packet 6.5s linear infinite;
}
@keyframes packet {
  0% {
    top: 0.55rem;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 1.6rem);
    opacity: 0;
  }
}
/* section 01 — capabilities */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0.2rem;
  background: var(--hair-2);
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  overflow: hidden;
}
.card {
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  background: var(--paper);
  transition: background-color 0.25s var(--ease);
}
.card:hover {
  background: var(--paper-2);
}
.card .num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--rose-ink);
}
.card h3 {
  margin-top: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.card p {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
/* section 02 — methods */
.methods {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.methods thead th {
  padding: 0 0.75rem 0.6rem;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}
.methods thead th:first-child {
  padding-left: 0;
}
.methods tbody tr {
  transition: background-color 0.18s var(--ease);
}
.methods tbody tr:hover {
  background: var(--wash);
}
.methods td {
  padding: 0.62rem 0.75rem;
  border-bottom: 1px solid var(--hair-2);
  vertical-align: baseline;
  overflow-wrap: anywhere;
}
.methods td:first-child {
  padding-left: 0;
  font-family: var(--mono);
  font-size: 0.79rem;
  color: var(--ink);
  white-space: nowrap;
}
.methods td:nth-child(2) {
  width: 6.5rem;
}
.methods td:last-child {
  color: var(--ink-2);
}
/* section 03 — the task */
.cycle {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair-2);
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  overflow: hidden;
}
.state-cell {
  min-width: 0;
  padding: 0.95rem 0.85rem 1rem;
  background: var(--paper);
}
.state-cell code {
  display: block;
  font-size: 0.7rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.state-cell span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.state-cell.is-final {
  background: var(--paper-2);
}
.state-cell.is-final code {
  color: var(--rose-ink);
}
.cycle-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.67rem;
  color: var(--ink-3);
}
.cycle-key i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.4rem;
  border: 1px solid var(--hair);
  border-radius: 1px;
  vertical-align: -1px;
}
.cycle-key .open i {
  background: var(--paper);
}
.cycle-key .final i {
  background: var(--paper-2);
  border-color: color-mix(in srgb, var(--rose) 45%, transparent);
}
/* section 04 — two directions */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.4rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: 0.4rem;
}
.duo-side {
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--paper);
}
.duo-side h3 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-ink);
}
.duo-side.client h3 {
  color: var(--blue);
}
.duo-side.client .duo-stack li {
  border-left-color: color-mix(in srgb, var(--blue) 68%, transparent);
}
.duo-stack {
  margin-top: 1.1rem;
}
.duo-stack li {
  position: relative;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--hair-2);
  border-left: 2px solid color-mix(in srgb, var(--rose) 68%, transparent);
  border-radius: 2px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--ink-2);
}
.duo-stack li b {
  font-weight: 500;
  color: var(--ink);
}
.duo-stack li + li {
  margin-top: 1.15rem;
}
.duo-stack li + li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.15rem;
  height: 1.15rem;
  width: 1px;
  background: var(--hair);
}
.duo-mid {
  display: grid;
  place-items: center;
}
.duo-mid span {
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* section 05 — refusals */
.refusals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
}
.refusal {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.2rem 0.9rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid var(--hair-2);
}
.refusal .code {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--rose-ink);
  font-variant-numeric: tabular-nums;
}
.refusal .name {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.refusal .means {
  grid-column: 2;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-3);
}
/* section 06 — install */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}
.notes li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.notes li + li {
  margin-top: 0.75rem;
}
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--rose);
}
.notes li b {
  font-weight: 500;
  color: var(--ink);
}
.notes li a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hair);
  transition: text-decoration-color 0.2s var(--ease);
}
.notes li a:hover {
  text-decoration-color: var(--rose-ink);
}
/* -------------------------------------------------------------------- code */
.code-block {
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--code);
  overflow: hidden;
}
.code-block + .code-block {
  margin-top: 1rem;
}
.cap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.copy:hover {
  color: var(--rose-ink);
}
pre {
  margin: 0;
  padding: 0.85rem 0.95rem;
  font-family: var(--mono);
  font-size: 0.785rem;
  line-height: 1.58;
  color: var(--ink-2);
  overflow-x: auto;
  tab-size: 2;
}
.tok-key {
  color: var(--blue);
}
.tok-str {
  color: var(--ink);
}
.tok-num {
  color: var(--rose-ink);
}
.tok-bool {
  color: var(--rose-ink);
}
.tok-comment {
  color: var(--ink-3);
}
.tok-kw {
  color: var(--blue);
}
.tok-name {
  color: var(--ink);
}
/* --------------------------------------------------------------- inner pages */
.page-hero {
  padding-block: clamp(2.6rem, 5vw, 4rem) clamp(1.6rem, 3vw, 2.4rem);
}
.page-hero h1 {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  line-height: 1.04;
}
.page-hero .lede {
  margin-top: 1.15rem;
}
/* guide */
.guide-layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.toc {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-right: 0.6rem;
  border-left: 1px solid var(--hair-2);
  padding-left: 1rem;
}
.toc .toc-title {
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--ink-3);
  transition: color 0.18s var(--ease);
}
.toc a:hover {
  color: var(--ink);
}
.toc a[aria-current="true"] {
  color: var(--rose-ink);
}
.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair-2);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  line-height: 1.16;
}
.prose h2::before {
  content: "§";
  margin-right: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8em;
  color: var(--rose-ink);
  vertical-align: 0.06em;
}
.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.prose p {
  margin-top: 1rem;
  font-size: 0.97rem;
  line-height: 1.7;
}
.prose > .code-block,
.prose > .note {
  margin-top: 1.3rem;
}
.prose ul {
  margin-top: 1.1rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--ink-2);
}
.prose ul li + li {
  margin-top: 0.8rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 1px;
  background: var(--rose);
}
.prose b {
  font-weight: 500;
  color: var(--ink);
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hair);
}
.prose a:hover {
  text-decoration-color: var(--rose-ink);
}
.note {
  padding: 0.9rem 1rem;
  border: 1px solid var(--hair-2);
  border-left: 2px solid var(--rose);
  border-radius: 0 3px 3px 0;
  background: var(--paper-2);
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hair);
}
/* showcase */
.star-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.6rem, 3.4vw, 2.8rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 4.6rem);
}
.map-panel {
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--paper);
  overflow: hidden;
}
.map-figure {
  padding: 0.5rem 0.5rem 0;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hair-2);
}
.star-map {
  width: 100%;
  height: auto;
}
.star-map .orbit {
  fill: none;
  stroke: var(--hair-2);
  stroke-width: 1;
  stroke-dasharray: 2 5;
  transform-box: fill-box;
  transform-origin: center;
  animation: orbit-turn 90s linear infinite;
}
.star-map .outline {
  fill: none;
  stroke: var(--hair);
  stroke-width: 1;
  stroke-dasharray: 2 5;
  stroke-linejoin: round;
}
.star-map .marks path {
  fill: none;
  stroke: var(--hair);
  stroke-width: 1;
}
.star-map .label {
  font-family: var(--mono);
  font-size: 10.2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-2);
  transition: fill 0.2s var(--ease);
}
.star-map .leader {
  stroke: color-mix(in srgb, var(--ink) 26%, transparent);
  stroke-width: 1;
  transition: stroke 0.2s var(--ease);
}
.star-map .fig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.01em;
  fill: var(--ink-3);
}
.star-map .hit {
  fill: transparent;
}
.star-map .ref {
  font-size: 10px;
}
.star-map .core {
  fill: var(--rose);
}
.star-map .hub-node .ring {
  fill: var(--paper);
  stroke: var(--rose);
}
.star-map .hub-ring {
  fill: var(--rose-wash);
  stroke: color-mix(in srgb, var(--rose) 45%, transparent);
}
.star-map .edge {
  stroke: var(--rose);
  opacity: 0.38;
  transition: opacity 0.2s var(--ease), stroke 0.2s var(--ease);
}
.star-map .edge.lit {
  stroke: var(--rose);
  opacity: 0.78;
}
.star-map .flow {
  fill: var(--rose);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--rose) 55%, transparent));
}
.star-map .flow .tail {
  fill: none;
  stroke: url(#comet);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.star-map #comet stop {
  stop-color: var(--rose);
}
.star-map .node {
  cursor: pointer;
}
.star-map .node .ring {
  fill: var(--paper);
  stroke: color-mix(in srgb, var(--ink) 34%, transparent);
  stroke-width: 1;
  transition: stroke 0.2s var(--ease), fill 0.2s var(--ease);
}
.star-map .node .ref {
  font-family: var(--mono);
  font-size: 9.2px;
  fill: var(--ink-2);
  text-anchor: middle;
}
.star-map .node:hover .ring {
  stroke: var(--rose);
}
.star-map .node:hover .leader,
.star-map .node:focus-visible .leader {
  stroke: color-mix(in srgb, var(--rose) 60%, transparent);
}
.star-map .node:hover .label,
.star-map .node:focus-visible .label {
  fill: var(--ink-2);
}
.star-map .node:focus-visible {
  outline: none;
}
.star-map .node:focus-visible .ring {
  stroke: var(--rose);
  stroke-width: 1.6;
}
.star-map .node[aria-pressed="true"] .ring {
  fill: var(--rose);
  stroke: var(--rose);
}
.star-map .node.hub-node[aria-pressed="true"] .ring {
  fill: var(--paper);
  stroke: var(--rose);
  stroke-width: 1.4;
}
.star-map .node[aria-pressed="true"] .ref {
  fill: var(--paper);
}
.star-map .node[aria-pressed="true"] .label {
  fill: var(--ink);
}
.star-map .hub-ring {
  fill: var(--rose-wash);
  stroke: color-mix(in srgb, var(--rose) 55%, transparent);
  animation: hub-breathe 9s ease-in-out infinite;
}
@keyframes orbit-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hub-breathe {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.node-index {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.node-index th {
  padding: 0.55rem 1rem 0.4rem;
  border-bottom: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}
.node-index td {
  padding: 0.42rem 1rem;
  border-bottom: 1px solid var(--hair-2);
  color: var(--ink-2);
}
.node-index td:first-child {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  width: 3rem;
}
.node-index td:nth-child(2) {
  color: var(--ink);
}
.node-index td:last-child {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}
.node-index tbody tr {
  cursor: pointer;
  transition: background-color 0.18s var(--ease);
}
.node-index tbody tr:hover {
  background: var(--wash);
}
.node-index tbody tr.lit {
  background: var(--rose-wash);
}
.node-index tbody tr.lit td:first-child {
  color: var(--rose-ink);
}
.node-index tbody tr:last-child td {
  border-bottom: 0;
}
.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.exchange {
  border: 1px solid var(--hair);
  border-radius: 3px;
  background: var(--paper);
  overflow: hidden;
}
.ex-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem 0.2rem;
}
.ex-head h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
}
.role-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-ink);
}
.ex-desc {
  padding: 0.4rem 1.1rem 0;
  font-size: 0.88rem;
  color: var(--ink-3);
}
.composer {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0.9rem 1.1rem 0;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--hair-2);
}
.composer .field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: block;
  padding: 0.4rem 0.7rem 0.48rem;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: var(--paper-2);
  cursor: text;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.composer .field::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 2px;
  background: var(--rose);
  transform: scaleY(0.24);
  transform-origin: top;
  transition: transform 0.24s var(--ease);
}
.composer .field .field-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}
.composer .field input {
  display: block;
  width: 100%;
  padding: 0.1rem 0 0.02rem;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
}
.composer .field input:focus-visible {
  box-shadow: none;
}
.composer .field:focus-within {
  border-color: color-mix(in srgb, var(--rose) 52%, transparent);
  background: var(--paper);
}
.composer .field:focus-within::before {
  transform: scaleY(1);
}
.composer .field:focus-within .field-k {
  color: var(--rose-ink);
}
.composer button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem 0.45rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.composer button .arrow {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-0.04em);
  transition: transform 0.22s var(--ease);
}
.composer button:hover {
  background: var(--rose);
  color: var(--on-rose);
}
.composer button:hover .arrow {
  transform: translate(2px, -0.04em);
}
.composer button:active {
  transform: translateY(1px);
}
.frames {
  max-height: 27rem;
  overflow-y: auto;
  padding: 0.6rem 1.1rem 1rem;
}
.frame {
  padding: 0.7rem 0 0.75rem;
  border-bottom: 1px dashed var(--hair-2);
  animation: frame-in 0.5s var(--ease) both;
}
.frame:last-child {
  border-bottom: 0;
}
.frame .fhead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.frame .kind-tag {
  padding: 0.1rem 0.35rem 0.05rem;
  border: 1px solid var(--hair);
  border-radius: 2px;
  font-size: 0.56rem;
  color: var(--ink-2);
}
.frame.request .kind-tag {
  border-color: color-mix(in srgb, var(--blue) 45%, transparent);
  color: var(--blue);
}
.frame.event .kind-tag {
  border-color: color-mix(in srgb, var(--rose) 45%, transparent);
  color: var(--rose-ink);
}
.frame.error .kind-tag {
  color: var(--ink);
  border-color: var(--hair);
}
.frame pre {
  padding: 0;
  font-size: 0.72rem;
  line-height: 1.65;
  background: none;
}
@keyframes frame-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.card-panel {
  border-top: 1px solid var(--hair-2);
}
.card-panel summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.card-panel summary::-webkit-details-marker {
  display: none;
}
.card-panel summary::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: -2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.22s var(--ease);
}
.card-panel summary:hover {
  color: var(--rose-ink);
  background: var(--wash);
}
.card-panel[open] summary {
  color: var(--ink-2);
}
.card-panel[open] summary::before {
  transform: rotate(45deg);
}
.card-panel pre {
  max-height: 20rem;
  overflow: auto;
  font-size: 0.7rem;
}
.states {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair-2);
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  overflow: hidden;
}
.state {
  padding: 1rem;
  background: var(--paper);
}
.state code {
  display: block;
  font-size: 0.68rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.state p {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.load-note {
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}
/* api */
.api-layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.4rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.api-nav {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-right: 0.7rem;
  border-left: 1px solid var(--hair-2);
  padding-left: 1rem;
}
.api-nav .group + .group {
  margin-top: 1.4rem;
}
.api-nav .pkg {
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--rose-ink);
}
.api-nav a {
  display: block;
  padding: 0.16rem 0;
  font-family: var(--mono);
  font-size: 0.71rem;
  line-height: 1.45;
  color: var(--ink-3);
  overflow-wrap: anywhere;
  transition: color 0.16s var(--ease);
}
.api-nav a:hover {
  color: var(--ink);
}
.api-body {
  min-width: 0;
}
.api-pkg + .api-pkg {
  margin-top: 4rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--hair);
}
.api-pkg header {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hair);
}
.api-pkg header h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}
.api-pkg .imp {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}
.api-cat {
  margin-top: 2.6rem;
}
.api-cat h3 {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.api-type {
  padding-top: 1.9rem;
}
.api-type + .api-type {
  margin-top: 1.6rem;
  border-top: 1px solid var(--hair-2);
}
.api-type > .sig {
  margin-top: 0.5rem;
  padding: 0;
  border-left: 0;
  background: none;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.type-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.type-head h3 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.type-head .kind {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sig {
  margin-top: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-left: 2px solid var(--hair);
  background: var(--code);
  border-radius: 0 2px 2px 0;
  font-family: var(--mono);
  font-size: 0.73rem;
  line-height: 1.6;
  color: var(--ink-2);
  overflow-x: auto;
  overflow-wrap: anywhere;
}
.sig .kw {
  color: var(--rose-ink);
}
.sig .name {
  color: var(--ink);
}
.sig .pt {
  color: var(--blue);
}
.sig .d {
  color: var(--ink-3);
}
.doc {
  margin-top: 0.7rem;
}
.doc p {
  font-size: 0.9rem;
  line-height: 1.66;
}
.doc p + p {
  margin-top: 0.6rem;
}
.doc code {
  padding: 0.05em 0.3em;
  background: var(--wash);
  border-radius: 2px;
  font-size: 0.85em;
}
.doc pre {
  margin-top: 0.7rem;
  border: 1px solid var(--hair-2);
  border-radius: 2px;
  background: var(--code);
}
.doc table {
  width: 100%;
  margin-top: 0.7rem;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.doc table th,
.doc table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--hair-2);
  text-align: left;
  overflow-wrap: anywhere;
}
.doc table th {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc ul {
  margin-top: 0.6rem;
}
.doc ul li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 4px;
  height: 1px;
  background: var(--ink-3);
}
.members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.15rem 1.6rem;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
}
.members li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.3rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.members b {
  font-weight: 400;
  color: var(--ink-2);
}
.members .pt {
  color: var(--blue);
}
.method-list {
  margin-top: 1rem;
}
.mlabel {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.api-item {
  padding: 0.75rem 0 0.8rem;
  border-bottom: 1px solid var(--hair-2);
}
.api-item .sig {
  margin-top: 0;
  background: none;
  border-left: 0;
  padding: 0;
}
.api-item .doc {
  margin-top: 0.4rem;
}
.api-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.55rem;
}
.params .p {
  padding: 0.1rem 0.4rem 0.05rem;
  border: 1px solid var(--hair-2);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.params b {
  font-weight: 500;
  color: var(--ink-2);
}
.params .pt {
  color: var(--blue);
}
.params .d {
  color: var(--ink-3);
}
/* --------------------------------------------------------------------- foot */
.foot {
  border-top: 1px solid var(--hair);
  background: var(--paper-2);
  padding-block: clamp(2.4rem, 4vw, 3.2rem) 1.4rem;
}
.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 2.2rem;
}
.foot-brand .brand {
  margin-bottom: 0.7rem;
}
.foot-brand .tag {
  max-width: 30ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-3);
}
.foot-col h4 {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot-col a {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  transition: color 0.18s var(--ease);
}
.foot-col a:hover {
  color: var(--rose-ink);
}
.legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hair-2);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
/* ------------------------------------------------------------------- motion */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .frame,
  .t-frame {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
  }
}
/* --------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero-grid,
  .split,
  .star-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-grid {
    gap: 2.4rem;
  }
  .hero-copy {
    padding-right: 0;
    border-right: 0;
  }
  .hero-copy::after {
    display: none;
  }
  .hero-grid > .transcript {
    margin-left: 0;
  }
  .hero-foot {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hero-foot .hf-note {
    grid-column: 1 / -1;
    padding-left: 1rem;
    padding-top: 0.7rem;
  }
  .band .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .band-side {
    display: none;
  }
  .cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-head {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0 1rem;
  }
  .section-head p {
    grid-column: 2;
    margin-top: 0.9rem;
    max-width: 52ch;
  }
  .section-head .num {
    align-self: start;
    font-size: 1.7rem;
    padding-top: 0.1rem;
  }
  .guide-layout,
  .api-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc,
  .api-nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--hair-2);
    padding-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }
  .toc .toc-title,
  .api-nav .toc-title {
    width: 100%;
  }
  .toc a,
  .api-nav a {
    display: inline-block;
  }
  .api-nav .group + .group {
    margin-top: 1rem;
  }
  .api-nav a {
    padding: 0.12rem 0;
  }
  .states {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .bar {
    height: 54px;
    gap: 0.6rem;
  }
  .brand span {
    display: none;
  }
  .mainnav {
    gap: 0.85rem;
  }
  .mainnav a {
    font-size: 0.8rem;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .refusals {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .duo {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .duo-mid {
    display: none;
  }
  .methods thead {
    display: none;
  }
  .methods tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.15rem 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--hair-2);
  }
  .methods td {
    padding: 0;
    border: 0;
  }
  .methods td:first-child {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .methods td:nth-child(2) {
    width: auto;
    justify-self: end;
  }
  .methods td:last-child {
    grid-column: 1 / -1;
    font-size: 0.84rem;
  }
  .hero-foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-foot .hf-note {
    padding-top: 0.8rem;
  }
  .frames {
    max-height: 22rem;
    padding-inline: 0.9rem;
  }
  .ex-head,
  .ex-desc,
  .composer {
    padding-inline: 0.9rem;
  }
  .composer {
    margin-inline: 0.9rem;
  }
  .map-caption {
    flex-direction: column;
    gap: 0.2rem;
  }
  .states {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal {
    flex-direction: column;
    gap: 0.3rem;
  }
}
@media (max-width: 560px) {
  .t-frame pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .docket .d-row {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.5rem;
  }
  .hero-foot .hf-cell {
    padding-left: 0.8rem;
  }
}
@media (max-width: 420px) {
  .mainnav {
    gap: 0.6rem;
  }
  .mainnav a {
    font-size: 0.76rem;
  }
  .hero-copy h1 {
    font-size: 2.35rem;
  }
  .actions .btn {
    width: 100%;
  }
  .t-frame pre {
    font-size: 0.63rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
