/* Cadre landing page. Dark only. Values are the app's own dark tokens
   (src/renderer/styles/tokens*.css, DESIGN.md §4–§7): one accent, role hues
   on glyphs, the mark as the app draws and moves it (Mark.module.css). */

@font-face {
  font-family: 'Geist Mono Variable';
  src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #060606;
  --shell: #0d0d0d;
  --side: #232325;
  --raised: #2c2c2f;
  --text: #e8e8ea;
  --muted: #a9a9ae;
  --faint: #85858a;
  --accent: #8b7cf6;
  --accent-wash: rgb(139 124 246 / 0.22);
  --success: #34d399;
  --danger: #f87171;
  --border: rgb(255 255 255 / 0.1);
  --border-strong: rgb(255 255 255 / 0.18);
  --ink-1: rgb(255 255 255 / 0.04);
  --ink-2: rgb(255 255 255 / 0.07);
  --edge-light: rgb(255 255 255 / 0.07);
  --solid: #ebebef;

  --r-chief: #8fbcbb;
  --r-analyst: #ebcb8b;
  --r-conductor: #b48ead;
  --r-principal: #81a1c1;
  --r-planner: #d08770;
  --r-researcher: #88c0d0;
  --r-implementer: #a3be8c;
  --r-reviewer: #bf616a;

  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-display:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;

  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --t-orbit: 1100ms;
  --t-tap: 520ms;
  --t-sweep: 3400ms;
  --t-stagger: 65ms;
  --t-hover: 150ms;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  --shadow-float:
    0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 64px -12px rgb(0 0 0 / 0.7),
    inset 0 1px 0 var(--edge-light);

  --gutter: 24px;
  --max: 1160px;
}

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

html {
  overflow-x: clip;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--ink-2);
  border-radius: 4px;
  padding: 1px 5px;
}

::selection {
  background: rgb(139 124 246 / 0.35);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ok {
  color: var(--success);
}

/* ── The mark (Mark.module.css) ──────────────────────────────────────── */

[data-mark] {
  display: inline-block;
  flex: none;
}

.mark {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.m-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 28;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark[data-motion='lively'] .m-line {
  stroke-width: 34;
}

.m-eye {
  fill: currentColor;
}

.m-arm-l,
.m-arm-r,
.m-loop-l,
.m-loop-r,
.m-eyes {
  transform-box: fill-box;
}

.m-arm-l {
  transform-origin: 100% 0;
}
.m-arm-r {
  transform-origin: 0 0;
}
.m-loop-l,
.m-loop-r {
  transform-origin: 50% 0;
}
.m-eyes {
  transform-origin: 50% 50%;
}

.mark[data-alive='1'] .m-arm-l {
  animation: sway-left var(--t-orbit) var(--ease-in-out) infinite alternate;
}
.mark[data-alive='1'] .m-arm-r {
  animation: sway-right var(--t-orbit) var(--ease-in-out) infinite alternate;
  animation-delay: var(--t-stagger);
}
.mark[data-alive='1'] .m-loop-l {
  animation: reach var(--t-orbit) var(--ease-in-out) infinite alternate;
  animation-delay: var(--t-stagger);
}
.mark[data-alive='1'] .m-loop-r {
  animation: reach var(--t-orbit) var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--t-stagger) * 3);
}
.mark[data-alive='1'] .m-eyes {
  animation: blink var(--t-sweep) var(--ease-in-out) infinite;
}

.mark[data-alive='1'][data-motion='lively'] .m-arm-l {
  animation: tap-left var(--t-tap) var(--ease-in-out) infinite;
}
.mark[data-alive='1'][data-motion='lively'] .m-arm-r {
  animation: tap-right var(--t-tap) var(--ease-in-out) infinite;
  animation-delay: calc(var(--t-tap) / 2);
}
.mark[data-alive='1'][data-motion='lively'] .m-loop-l {
  animation: fidget var(--t-orbit) var(--ease-in-out) infinite alternate;
}
.mark[data-alive='1'][data-motion='lively'] .m-loop-r {
  animation: fidget var(--t-orbit) var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--t-stagger) * 3);
}

/* The eyes blink with `scale`, so script can still move them with `translate`
   to follow the pointer. */
.mark[data-eyes='1'] .m-eyes {
  transition: translate 260ms var(--ease-out-quint);
}

@keyframes sway-left {
  from {
    transform: rotate(5deg);
  }
  to {
    transform: rotate(-9deg);
  }
}
@keyframes sway-right {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(9deg);
  }
}
@keyframes reach {
  from {
    transform: scaleY(0.88);
  }
  to {
    transform: scaleY(1.1);
  }
}
@keyframes blink {
  0%,
  92%,
  100% {
    scale: 1 1;
  }
  96% {
    scale: 1 0.1;
  }
}
@keyframes tap-left {
  0%,
  55%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(-16deg);
  }
}
@keyframes tap-right {
  0%,
  55%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(16deg);
  }
}
@keyframes fidget {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(5deg);
  }
}

/* ── The node glyph (DESIGN.md §4.5) ─────────────────────────────────── */

.node {
  --hue-c: var(--hue, var(--faint));
  position: relative;
  flex: none;
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--hue-c) 55%, transparent) inset;
}

.node::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--hue-c);
  transition:
    inset 360ms var(--ease-out-quint),
    opacity 360ms ease;
}

.node-input {
  --hue-c: var(--accent);
  box-shadow:
    0 0 0 1.5px var(--accent) inset,
    0 0 0 4px rgb(139 124 246 / 0.16);
}

.is-working .node::after,
.node-orbit::after {
  inset: 4px;
  opacity: 0.35;
}

.is-working .node::before,
.node-orbit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--hue-c);
  animation: orbit var(--t-orbit) linear infinite;
}

.is-pending .node {
  box-shadow: 0 0 0 1.5px rgb(133 133 138 / 0.35) inset;
}

.is-pending .node::after {
  opacity: 0;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

/* ── Nav ─────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition:
    background-color 300ms ease,
    border-color 300ms ease;
}

.nav.is-scrolled {
  background: rgb(6 6 6 / 0.72);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 8px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  transition: color var(--t-hover) ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav .btn-small {
  margin-left: auto;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color var(--t-hover) ease,
    box-shadow var(--t-hover) ease,
    transform var(--t-hover) ease;
}

.btn-icon {
  width: 17px;
  height: 17px;
  margin-top: -2px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12) inset,
    0 8px 32px -8px rgb(139 124 246 / 0.6);
}

.btn-primary:hover {
  background: #9a8cf8;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.16) inset,
    0 10px 44px -8px rgb(139 124 246 / 0.8);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgb(6 6 6 / 0.4);
  box-shadow: 0 0 0 1px var(--border-strong) inset;
}

.btn-ghost {
  cursor: pointer;
  border: 0;
  font-family: inherit;
}

.btn-play {
  width: 12px;
  height: 12px;
  margin: 0 2px 0 -2px;
  fill: currentColor;
}

.tour-link {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.tour-link:hover {
  color: #a79bf8;
}

.btn-ghost:hover {
  background: var(--ink-2);
}

.btn-small {
  height: 34px;
  padding: 0 14px;
  font-size: 13.5px;
  background: var(--solid);
  color: #111114;
}

.btn-small:hover {
  background: #ffffff;
}

.btn-small .btn-icon {
  width: 14px;
  height: 14px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

/* The app's own intro map (intro/intro.js) behind the hero: quiet, and
   darkest under the headline so the words always read. */
.hero-world {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1600ms ease;
  -webkit-mask-image: radial-gradient(ellipse 46% 40% at 50% 44%, rgb(0 0 0 / 0.18), #000 100%);
  mask-image: radial-gradient(ellipse 46% 40% at 50% 44%, rgb(0 0 0 / 0.18), #000 100%);
}

.hero-world[data-ready='1'] {
  opacity: 0.42;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  text-align: center;
}

.hero-mark {
  display: block;
  margin: 0 auto;
  width: 84px;
  height: 84px;
  color: var(--text);
  filter: drop-shadow(0 0 28px rgb(139 124 246 / 0.4));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-top: 26px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgb(6 6 6 / 0.55);
  box-shadow: 0 0 0 1px var(--border) inset;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgb(52 211 153 / 0.18);
}

.eyebrow-sep {
  width: 1px;
  height: 12px;
  margin: 0 4px;
  background: var(--border-strong);
}

.hero h1 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}

/* Split headings: each word sits in a clip so it can rise into place. */
.w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.14em;
  vertical-align: top;
}

.w > span {
  display: inline-block;
}

.hero h1 .w > span {
  background: linear-gradient(180deg, #ffffff 35%, #b4b4bc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 650px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--faint);
}

.works {
  margin-top: 60px;
  text-align: center;
}

.works-label {
  font-size: 12.5px;
  color: var(--faint);
}

.works-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 40px;
}

.works-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgb(232 232 234 / 0.72);
  transition: color 200ms ease;
}

.works-list li:hover {
  color: var(--text);
}

.works-list .works-more {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--faint);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 1px var(--border) inset;
}

.logo {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

/* ── Stage: the app window ───────────────────────────────────────────── */

.stage {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px var(--gutter) 40px;
  perspective: 1800px;
}

.stage-glow {
  position: absolute;
  inset: -60px 8% auto;
  height: 70%;
  background:
    radial-gradient(50% 60% at 50% 30%, rgb(139 124 246 / 0.2), transparent 70%),
    radial-gradient(40% 50% at 20% 60%, rgb(136 192 208 / 0.08), transparent 70%),
    radial-gradient(40% 50% at 80% 60%, rgb(163 190 140 / 0.07), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.window {
  position: relative;
  border-radius: 12px;
  background: #0a0a0a;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 50px 140px -30px rgb(0 0 0 / 0.95),
    inset 0 1px 0 var(--edge-light);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  transform-origin: 50% 0;
}

.titlebar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: #1d1d1f;
  border-bottom: 1px solid rgb(0 0 0 / 0.5);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.lights {
  display: inline-flex;
  gap: 8px;
  margin-right: 4px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.lights i:nth-child(1) {
  background: #ff5f57;
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}

.tb-icons {
  display: inline-flex;
  gap: 12px;
  margin-right: 6px;
}

.titlebar svg,
.w-side svg,
.c-clip {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tb-icons .dim {
  opacity: 0.4;
}

.tb-title {
  color: var(--text);
  font-weight: 500;
}

.tb-where {
  color: var(--faint);
}

.tb-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--faint);
  font-size: 11.5px;
}

.tb-usage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.usage {
  display: inline-block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.12);
  overflow: hidden;
}

.usage b {
  display: block;
  height: 100%;
  background: var(--text);
}

.tb-auto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.switch {
  position: relative;
  width: 26px;
  height: 15px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.18);
  transition: background-color 300ms ease;
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  transition: transform 300ms var(--ease-out-quint);
}

.switch.is-on {
  background: var(--solid);
}

.switch.is-on::after {
  background: #1d1d1f;
  transform: translateX(11px);
}

.win-body {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 300px;
  grid-template-rows: minmax(0, 1fr);
  height: 660px;
}

/* Sidebar */

.w-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px;
  background: var(--side);
  border-right: 1px solid rgb(0 0 0 / 0.4);
  font-size: 12.5px;
  overflow: hidden;
}

.s-row {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-s);
  white-space: nowrap;
}

.s-row svg {
  color: var(--muted);
}

.s-search {
  color: var(--faint);
  margin-bottom: 6px;
}

.s-more {
  margin-left: auto;
  letter-spacing: 1px;
}

.s-plus {
  width: 15px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.s-row kbd {
  margin-left: auto;
  font: inherit;
  font-size: 10.5px;
  color: var(--faint);
}

.s-project {
  margin-top: 8px;
  color: var(--muted);
}

.s-count {
  color: var(--faint);
  font-size: 11px;
}

.s-chev {
  color: var(--faint);
}

.s-add {
  margin-left: auto;
  color: var(--faint);
  font-size: 14px;
}

.s-card {
  margin: 2px 0 4px;
  padding: 6px 0 4px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1) inset;
}

.s-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 10px;
  font-weight: 500;
}

.s-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}

.s-card-sub {
  padding: 2px 24px 4px;
  font-size: 11px;
  color: var(--faint);
}

.s-roles {
  list-style: none;
  margin: 0;
  padding: 0 6px;
}

.s-roles li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  transition: opacity 300ms ease;
}

.s-roles li.is-pending {
  display: none;
}

.s-roles em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}

.s-run {
  color: var(--muted);
}

.s-check {
  width: 15px;
  text-align: center;
  color: var(--success);
  font-size: 11px;
}

.s-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  color: var(--muted);
}

.s-foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.s-foot-mark {
  width: 15px;
  height: 15px;
}

/* Canvas */

.w-canvas {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #070707;
}

.c-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 40px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
}

.c-tabs > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity 300ms ease;
}

.c-tabs > span.is-pending {
  display: none;
}

.c-tabs .c-agents {
  margin-left: auto;
  color: var(--text);
  gap: 6px;
}

.c-agents i {
  font-style: normal;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.c-agents-mark {
  width: 16px;
  height: 16px;
}

.c-column {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 20px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0, #000 60px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 60px);
}

.c-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  background: #1f1f21;
}

.c-msg {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
}

.c-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1f1f21;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.c-avatar .node {
  position: absolute;
  right: -3px;
  bottom: -3px;
  background: #070707;
}

.c-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.c-head b {
  font-weight: 600;
}

.c-head span {
  font-size: 11.5px;
  color: var(--faint);
}

.c-body p {
  color: rgb(232 232 234 / 0.9);
}

.c-tools {
  color: var(--faint);
  font-size: 12.5px;
  margin-bottom: 3px;
}

.c-handoff,
.c-consult {
  margin-top: 6px;
  padding: 2px 0 2px 10px;
  border-left: 2px solid var(--hue);
  color: var(--faint);
  font-size: 12px;
}

.c-handoff b,
.c-consult b {
  color: var(--muted);
  font-weight: 500;
  margin-right: 4px;
}

.c-consult {
  margin: 0 0 6px;
  border-left: 2px dotted var(--r-principal);
}

.c-consult span {
  display: block;
  color: var(--muted);
}

.c-ask {
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: rgb(139 124 246 / 0.06);
  box-shadow: 0 0 0 1px rgb(139 124 246 / 0.3) inset;
}

.c-ask-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.c-ask-q {
  margin-top: 6px;
  font-weight: 500;
}

.c-ask-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.opt {
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 1px var(--border-strong) inset;
  color: var(--muted);
  font-size: 12px;
  transition:
    background-color 360ms ease,
    color 360ms ease,
    box-shadow 360ms ease;
}

.opt.is-picked {
  background: var(--accent-wash);
  box-shadow: 0 0 0 1px rgb(139 124 246 / 0.65) inset;
  color: var(--text);
}

.c-pr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-m);
  background: rgb(52 211 153 / 0.05);
  box-shadow: 0 0 0 1px rgb(52 211 153 / 0.22) inset;
}

.c-pr b {
  font-weight: 500;
}

.c-pr span:last-child {
  color: var(--faint);
  font-size: 12px;
}

.pr-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: 5px;
  color: var(--success);
  background: rgb(52 211 153 / 0.12);
}

.c-composer {
  width: calc(100% - 40px);
  max-width: 640px;
  margin: 4px auto 0;
  padding: 12px 10px 8px 14px;
  border-radius: 16px;
  background: var(--raised);
  box-shadow: var(--shadow-float);
}

.c-input {
  color: var(--faint);
  font-size: 13.5px;
  height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-tools-row {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.c-model {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}

.bars b {
  width: 2px;
  background: var(--muted);
  border-radius: 1px;
}
.bars b:nth-child(1) {
  height: 4px;
}
.bars b:nth-child(2) {
  height: 6px;
}
.bars b:nth-child(3) {
  height: 8px;
  opacity: 0.35;
}
.bars b:nth-child(4) {
  height: 10px;
  opacity: 0.35;
}

.c-to {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
}

.c-to b {
  color: var(--text);
  font-weight: 500;
}

.c-send {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: var(--muted);
}

.c-status {
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% - 40px);
  max-width: 640px;
  margin: 8px auto 14px;
  padding: 0 12px;
  color: var(--faint);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
}

.c-where {
  margin-right: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pill-cost {
  color: var(--success);
  background: rgb(52 211 153 / 0.1);
}

.pill-time {
  color: var(--muted);
  background: rgb(255 255 255 / 0.06);
}

.pill-cache {
  color: #22d3ee;
  background: rgb(34 211 238 / 0.08);
}

/* Agents panel */

.w-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 12px;
  background: #090909;
  border-left: 1px solid rgb(255 255 255 / 0.06);
  overflow: hidden;
}

.p-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}

.p-head b {
  font-size: 14px;
  font-weight: 600;
}

.p-state {
  display: grid;
  font-size: 11px;
}

.p-state > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 7px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted);
  transition: opacity 400ms ease;
}

.p-state .p-done {
  opacity: 0;
  color: var(--success);
}

.p-done i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.window.is-done .p-working {
  opacity: 0;
}
.window.is-done .p-state .p-done {
  opacity: 1;
}

.node-orbit {
  --hue-c: var(--accent);
  width: 9px;
  height: 9px;
}

.window.is-done .node-orbit::before {
  animation: none;
}

.p-x {
  margin-left: auto;
  color: var(--faint);
}

.p-cost {
  padding: 14px;
  border-radius: 12px;
  background: #121214;
}

.p-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.p-big {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--success);
  font-variant-numeric: tabular-nums;
}

.p-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.p-tiles div {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.04);
}

.p-tiles span {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
}

.p-tiles b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.p-where {
  padding: 0 4px;
}

.p-where-head,
.p-roles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.p-where-head b,
.p-roles-head b {
  font-weight: 500;
  color: var(--muted);
}

.p-where-head span {
  font-size: 11px;
  color: var(--faint);
}

.p-roles-head {
  justify-content: flex-start;
  gap: 8px;
  padding: 0 4px;
}

.p-roles-head span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  padding: 0 5px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.06);
}

.p-bar {
  display: flex;
  gap: 2px;
  height: 6px;
  margin: 8px 0 6px;
}

.p-bar i {
  width: var(--w);
  border-radius: 3px;
  background: var(--c);
  transform-origin: 0 50%;
}

.p-where-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}

.p-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-roles li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #121214;
}

.p-av {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue) 14%, #1a1a1c);
  color: var(--hue);
}

.p-role > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.p-role b {
  font-weight: 600;
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.06);
  color: var(--muted);
}

.chip.is-working {
  color: var(--hue);
  background: color-mix(in srgb, var(--hue) 14%, transparent);
}

.p-chips {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.p-chips span {
  font-size: 10px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.05);
  color: var(--muted);
  white-space: nowrap;
}

.p-io {
  display: flex;
  gap: 8px;
  margin-top: 3px;
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}

.p-io i {
  font-style: normal;
}

.p-io i::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  vertical-align: 1px;
  background: #60a5fa;
}
.p-io i:nth-child(2)::before {
  background: #f472b6;
}
.p-io i:nth-child(3)::before {
  background: #22d3ee;
}

.p-cost-role {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

/* ── How it works ────────────────────────────────────────────────────── */

.how {
  position: relative;
  padding: 80px var(--gutter) 0;
}

.how-pin {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  min-height: 100vh;
  padding: 72px 0 24px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.section-lede {
  max-width: 600px;
  margin-top: 18px;
  font-size: 17px;
  color: var(--muted);
}

.routes {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.routes button {
  position: relative;
  display: block;
  width: 100%;
  padding: 11px 16px 11px 18px;
  border: 0;
  border-radius: var(--radius-m);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 300ms ease;
}

.routes button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 1px;
  background: var(--border);
  transition: background-color 300ms ease;
}

.routes button b {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  transition: color 300ms ease;
}

.routes button span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--faint);
}

.routes button:hover b {
  color: var(--text);
}

.routes button[aria-selected='true'] {
  background: var(--ink-1);
}

.routes button[aria-selected='true']::before {
  background: var(--accent);
}

.routes button[aria-selected='true'] b {
  color: var(--text);
}

.graph {
  position: relative;
  aspect-ratio: 1000 / 620;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    #08080a;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07) inset;
}

.graph-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.edge {
  fill: none;
  stroke: rgb(255 255 255 / 0.07);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.edge-ask {
  stroke-dasharray: 1 6;
}

.edge-live {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.edge-live.edge-ask {
  stroke-width: 2.4;
}

.pulse {
  filter: drop-shadow(0 0 6px currentColor);
}

.g-node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 10px;
  background: #121214;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset;
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--faint);
  transition:
    color 400ms ease,
    box-shadow 400ms ease,
    background-color 400ms ease;
}

.g-node b {
  font-weight: 600;
}

.g-node > * {
  transition: opacity 400ms ease;
}

.g-node:not(.is-on) > * {
  opacity: 0.4;
}

.g-node.is-on {
  color: var(--text);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--hue) 45%, transparent) inset,
    0 10px 30px -10px color-mix(in srgb, var(--hue) 45%, transparent);
}

.g-node.is-hot {
  background: color-mix(in srgb, var(--hue) 14%, #121214);
}

.g-mark {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue) 14%, #1a1a1c);
  color: var(--hue);
}

.g-glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue) 18%, #1a1a1c);
  color: var(--hue);
  font-weight: 700;
}

.g-legend {
  position: absolute;
  left: 18px;
  bottom: 14px;
  display: flex;
  gap: 18px;
  font-size: 11.5px;
  color: var(--faint);
}

.g-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.g-legend i {
  width: 18px;
  border-top: 2px solid var(--muted);
}

.g-legend .lg-ask {
  border-top-style: dotted;
}

.g-legend .lg-back {
  border-top-color: var(--r-reviewer);
}

/* ── Sections ────────────────────────────────────────────────────────── */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--gutter) 0;
}

.beat {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 72px;
  margin-top: 96px;
}

.beat-flip .beat-copy {
  order: 2;
}

.beat-copy h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.beat-copy p {
  margin-top: 14px;
  max-width: 440px;
  font-size: 16px;
  color: var(--muted);
}

.beat-demo {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 80% at 50% 0%, rgb(255 255 255 / 0.035), transparent 70%), var(--shell);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07) inset;
  font-size: 13.5px;
  overflow: hidden;
}

.c-ask-large {
  padding: 18px 20px;
}

.c-ask-large .c-ask-q {
  font-size: 16px;
}

.c-ask-why {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.c-ask-col {
  flex-direction: column;
  align-items: stretch;
}

.c-ask-col .opt {
  padding: 9px 14px;
  border-radius: var(--radius-m);
  font-size: 13px;
}

.opt-write {
  color: var(--faint);
  box-shadow: none;
  border: 1px dashed var(--border-strong);
}

/* Conversation between agents */

.convo {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cv-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
}

.cv-reply {
  margin-left: 42px;
  padding-left: 14px;
  border-left: 2px dotted color-mix(in srgb, var(--r-principal) 60%, transparent);
}

.cv-mark {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue) 14%, #1a1a1c);
  color: var(--hue);
}

.cv-who {
  font-size: 12px;
  color: var(--faint);
}

.cv-who b {
  color: var(--text);
  font-weight: 600;
}

.cv-who .cv-to {
  color: var(--r-principal);
}

.cv-line p {
  margin-top: 2px;
}

/* Review rounds */

.rounds {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.rounds::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: rgb(255 255 255 / 0.1);
}

.rounds li {
  position: relative;
  display: grid;
  grid-template-columns: 11px 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}

.rounds b {
  font-weight: 600;
}

.rounds span:not(.node) {
  color: var(--muted);
}

.rounds em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

.rounds .is-back em {
  color: var(--danger);
}

.rounds .is-pass em {
  color: var(--success);
}

/* Cost */

.cost .p-big {
  font-size: 44px;
}

.cost-roles {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cost-roles li {
  display: grid;
  grid-template-columns: 8px 92px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.cost-roles i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
}

.cost-roles b {
  height: 6px;
  width: var(--w);
  border-radius: 3px;
  background: color-mix(in srgb, var(--hue) 70%, transparent);
  transform-origin: 0 50%;
}

.cost-roles em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  text-align: right;
}

/* Grid */

.grid {
  list-style: none;
  margin: 120px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgb(255 255 255 / 0.07);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07);
}

.grid li {
  padding: 28px;
  background: var(--bg);
  transition: background-color 300ms ease;
}

.grid li:hover {
  background: #0c0c0e;
}

.grid h3 {
  font-size: 15px;
  font-weight: 600;
}

.grid p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Download */

.download {
  text-align: center;
  padding-top: 170px;
}

.download-mark {
  display: block;
  margin: 0 auto;
  width: 96px;
  height: 96px;
  color: var(--text);
  filter: drop-shadow(0 0 30px rgb(139 124 246 / 0.4));
}

.download h2 {
  margin-top: 22px;
}

.download .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 48px auto 0;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 20px 26px;
  border-radius: var(--radius-xl);
  background: var(--shell);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07) inset;
  color: var(--muted);
}

.platform.is-live {
  background:
    radial-gradient(80% 90% at 50% 0%, rgb(139 124 246 / 0.14), transparent 70%), var(--shell);
  box-shadow: 0 0 0 1px rgb(139 124 246 / 0.32) inset;
  color: var(--text);
}

.platform-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
}

.platform b {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.platform span {
  font-size: 13px;
  color: var(--faint);
}

.platform .btn {
  margin-top: 14px;
  height: 40px;
  font-size: 14px;
}

.soon {
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  box-shadow: 0 0 0 1px var(--border-strong) inset;
}

.reqs {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--faint);
  font-size: 13px;
}

.reqs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reqs li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

/* FAQ */

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--faint);
  font-size: 20px;
  font-weight: 300;
  transition: transform 200ms var(--ease-out-quint);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 720px;
  padding: 0 0 24px;
  color: var(--muted);
}

/* Footer */

.footer {
  margin-top: 140px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  color: var(--faint);
  font-size: 13px;
}

.footer .brand {
  color: var(--text);
}

.footer-copy {
  margin-left: auto;
}

/* ── Smaller screens ─────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .win-body {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .w-panel {
    display: none;
  }
}

@media (max-width: 960px) {
  .win-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .w-side,
  .tb-usage,
  .tb-icons {
    display: none;
  }

  .how-pin {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
  }

  .beat,
  .beat-flip {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 72px;
  }

  .beat-flip .beat-copy {
    order: 0;
  }

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

  .platforms {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-top: 104px;
  }

  .hero-mark {
    width: 64px;
    height: 64px;
  }

  .lede {
    font-size: 16px;
  }

  h1 br,
  h2 br {
    display: none;
  }

  .works-list {
    gap: 12px 22px;
  }

  .win-body {
    height: 560px;
  }

  .tb-where,
  .tb-auto,
  .c-tabs > span:not(.c-agents),
  .c-model,
  .c-where,
  .pill-cache {
    display: none;
  }

  .c-column {
    padding: 8px 12px 10px;
  }

  .c-composer,
  .c-status {
    width: calc(100% - 24px);
  }

  .how {
    padding-top: 40px;
  }

  .graph {
    aspect-ratio: 4 / 5;
  }

  /* A portrait layout: the task flows top to bottom. */
  .g-node {
    left: calc(var(--mx) * 1%);
    top: calc(var(--my) * 1%);
  }
  .g-node[data-node='you'] {
    --mx: 50;
    --my: 6;
  }
  .g-node[data-node='chief'] {
    --mx: 50;
    --my: 19;
  }
  .g-node[data-node='researcher'] {
    --mx: 24;
    --my: 32;
  }
  .g-node[data-node='conductor'] {
    --mx: 78;
    --my: 32;
  }
  .g-node[data-node='planner'] {
    --mx: 20;
    --my: 47;
  }
  .g-node[data-node='principal'] {
    --mx: 66;
    --my: 45;
  }
  .g-node[data-node='analyst'] {
    --mx: 80;
    --my: 56;
  }
  .g-node[data-node='implementer'] {
    --mx: 50;
    --my: 63;
  }
  .g-node[data-node='reviewer'] {
    --mx: 30;
    --my: 78;
  }
  .g-node[data-node='pr'] {
    --mx: 72;
    --my: 84;
  }

  .g-node {
    padding: 5px 8px 5px 5px;
    font-size: 11px;
    gap: 6px;
  }

  .g-mark,
  .g-glyph {
    width: 20px;
    height: 20px;
    padding: 3px;
  }

  .g-legend {
    left: 12px;
    right: 12px;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .section {
    padding-top: 96px;
  }

  .beat-demo {
    padding: 18px;
  }

  .rounds li {
    grid-template-columns: 11px minmax(0, 1fr) auto;
    row-gap: 2px;
  }

  .rounds li > span:not(.node) {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .cost-roles li {
    grid-template-columns: 8px 84px minmax(0, 1fr) 46px;
  }

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

  .footer-copy {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark .m-arm-l,
  .mark .m-arm-r,
  .mark .m-loop-l,
  .mark .m-loop-r,
  .mark .m-eyes,
  .is-working .node::before,
  .node-orbit::before {
    animation: none !important;
  }
}
