@font-face {
  font-family: Instrument Serif;
  src: url("./assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("./assets/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: DM Mono;
  src: url("./assets/dm-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f6f5f0;
  --ink: #272c26;
  --rust: #bd522c;
  --line: #dddfd4;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --stage-top: 102px;
  --stage-height: 640px;
  color-scheme: light;
}
.viewport-probe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
  contain: strict;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23737565' opacity='.2' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.has-js.manual-story .walkthrough {
  height: auto;
}
.has-js.manual-story .story-stage {
  position: static;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}
a:hover {
  color: var(--rust);
}
button[hidden],
[hidden] {
  display: none !important;
}
::selection {
  background: #ecd2ba;
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
em {
  font-weight: 400;
  color: var(--rust);
}
code,
kbd {
  font-family: var(--mono);
}
.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(246 245 240 / 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(1320px, calc(100% - 80px));
  margin: auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.wordmark img {
  object-fit: contain;
}
.wordmark-dot,
.footer-wordmark span {
  color: var(--rust);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 12px;
}
.nav-links a {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links .github-link {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.hero {
  text-align: center;
  padding-top: 78px;
  padding-bottom: 66px;
}
.hero .eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #686f5e;
}
.status-dot,
.caption-dot {
  width: 6px;
  height: 6px;
  background: #7e9566;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot {
  box-shadow: 0 0 0 4px #e7ebdf;
}
.hero h1 {
  font-size: clamp(64px, 6.6vw, 96px);
  margin-top: 22px;
  letter-spacing: -0.035em;
}
.hero-description {
  margin-top: 25px;
  font-size: 15px;
  line-height: 1.8;
  color: #74776d;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 29px;
}
.install-command {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #eeeee7;
  border: 1px solid #dedfd5;
  border-radius: 6px;
  padding: 12px 12px 12px 18px;
  font-size: 12px;
  box-shadow: 0 2px 2px #33330803;
}
.prompt {
  font-family: var(--mono);
  color: #939587;
}
.copy-button {
  border: 0;
  border-left: 1px solid #d5d7cc;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 25px;
  padding: 0 3px 0 12px;
  margin-left: 15px;
  font-size: 10px;
  color: #6c7065;
}
.copy-button:hover {
  color: var(--rust);
}
.hero .copy-label {
  min-width: 34px;
}
.text-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.text-link > span {
  transition: transform 0.2s;
}
.text-link:hover > span {
  transform: translate(2px, 2px);
}
.agent-compatibility {
  margin-top: 43px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}
.compatibility-label {
  font: 8px var(--mono);
  letter-spacing: 0.08em;
  color: #8b8e81;
}
.agent-names {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #73776d;
}
.agent-names > span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}
.agent-symbol {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}
.claude-symbol {
  color: #b26d4c;
}
.omp-symbol {
  font: 13px var(--mono);
  letter-spacing: -2px;
  margin-right: 3px;
}
.opencode-symbol {
  font-size: 16px;
}
.walkthrough {
  position: relative;
}
.has-js .walkthrough {
  height: calc(400svh + var(--stage-height));
}
.story-stage {
  padding-bottom: 20px;
}
.has-js .story-stage {
  position: sticky;
  top: var(--stage-top);
}
.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px var(--mono);
  letter-spacing: 0.12em;
  margin-bottom: 23px;
  color: #73796c;
}
.section-kicker > span:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.small-cross {
  font-size: 18px;
  color: var(--rust);
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 13px;
}
.scroll-hint > span {
  font-size: 16px;
  color: var(--rust);
}
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 262px;
  gap: 42px;
  align-items: center;
}
.terminal-shell {
  min-width: 0;
  background: #20251f;
  color: #c9cfc0;
  border: 1px solid #343a30;
  border-radius: 9px;
  box-shadow:
    0 25px 50px -25px #222a284d,
    0 6px 12px -6px #20251026;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: #282d25;
  border-bottom: 1px solid #353b30;
  min-height: 43px;
  padding: 0 17px;
  color: #9ba48f;
  font-size: 10px;
}
.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.window-dots i {
  width: 8px;
  height: 8px;
  background: #a76854;
  border-radius: 50%;
}
.window-dots i:nth-child(2) {
  background: #ae9c60;
}
.window-dots i:nth-child(3) {
  background: #799366;
}
.terminal-bar > span:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.terminal-badge {
  font-size: 7px;
  letter-spacing: 0.09em;
  color: #a1ab94;
}
.terminal-command {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 17px 18px 13px;
  color: #e2e6d8;
  font-size: 12px;
}
.terminal-path {
  color: #949f85;
  font-size: 10px;
  margin-right: 3px;
}
.terminal-prompt {
  color: #d69d73;
}
.cursor {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: #cad1ba;
  animation: blink 1.4s step-end infinite;
}
.terminal-screen {
  padding: 10px 12px 12px;
  overflow: hidden;
}
.tui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 360px;
}
.tui-pane {
  position: relative;
  border: 1px solid #535d46;
  padding: 16px 9px 8px;
  min-width: 0;
  min-height: 0;
}
.pane-title {
  position: absolute;
  top: -10px;
  left: 8px;
  max-width: calc(100% - 16px);
  background: #20251f;
  padding: 0 4px;
  color: #b4bda6;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-pane {
  padding-inline: 0;
}
.task-rows {
  overflow: hidden;
}
.tui-row {
  display: flex;
  gap: 5px;
  white-space: nowrap;
  padding: 4px 6px;
  overflow: hidden;
  line-height: 1.75;
  font-size: 11px;
  position: relative;
}
.tui-row > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tui-row .row-pointer {
  color: #d5dcca;
  width: 6px;
  flex-shrink: 0;
}
.tui-row.selected {
  background: #3d4832;
  color: #e4ead8;
}
.tui-row.selected::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #a4b98a;
}
.tui-detail {
  display: grid;
  grid-template-rows: 123px 1fr;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}
.meta-pane {
  font-size: 10.5px;
  line-height: 1.85;
  padding-top: 9px;
  overflow: visible;
}
#meta-content {
  overflow: hidden;
  white-space: nowrap;
}
#meta-content strong {
  font-weight: 400;
  color: #dee5d2;
}
.preview-pane {
  padding-top: 10px;
  font-size: 10.5px;
  line-height: 1.8;
  overflow: visible;
}
#preview-content {
  overflow: hidden;
  height: 100%;
}
#preview-content p {
  margin: 3px 0 12px;
}
.t-muted {
  color: #949f8c;
}
.t-green {
  color: #a0c283;
}
.t-yellow {
  color: #d0be80;
}
.t-blue {
  color: #93b4c5;
}
.t-heading {
  color: #abc7bc;
}
.spaced {
  margin-top: 11px;
}
.terminal-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 13px;
  white-space: nowrap;
  min-height: 31px;
  color: #a6ae9b;
  font-size: 9px;
}
.terminal-shortcuts b {
  color: #d3c38c;
  font-weight: 400;
}
.terminal-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 8px 15px;
  background: #282e24;
  border-top: 1px solid #363e2f;
  font-size: 9px;
  color: #b4bea6;
}
.caption-dot {
  width: 5px;
  height: 5px;
  background: #99b579;
}
.demo-label {
  font-size: 7px;
  color: #99a28d;
  letter-spacing: 0.07em;
  margin-left: auto;
  white-space: nowrap;
}
.story-sidebar {
  min-width: 0;
}
.chapter-count {
  font: 10px var(--mono);
  display: flex;
  align-items: center;
  gap: 9px;
  color: #929787;
  margin-bottom: 31px;
}
.chapter-count > span:first-child {
  color: var(--rust);
}
.chapter-rule {
  height: 1px;
  background: var(--line);
  width: 38px;
}
.story-copy + .story-copy {
  margin-top: 32px;
}
.has-js .story-copy + .story-copy {
  margin-top: 0;
}
.story-copy .eyebrow {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #808773;
  margin-bottom: 13px;
}
.story-copy h2 {
  font-size: 39px;
  line-height: 1.07;
  letter-spacing: -0.025em;
}
.story-copy > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.85;
  color: #72796a;
  margin-top: 18px;
}
.key-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-height: 45px;
  margin-top: 19px;
  font-size: 8px;
  color: #7a8070;
}
.key-sequence span {
  margin-right: 5px;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid #d8dccd;
  box-shadow: 0 2px 0 #e3e5db;
  border-radius: 3px;
  background: #eeefe6;
  color: #636e55;
  font-size: 9px;
}
.story-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.story-controls button {
  width: 30px;
  height: 28px;
  background: none;
  border: 1px solid #d7dbcc;
  border-radius: 3px;
  font-size: 15px;
  line-height: 1;
}
.story-controls button:hover:not(:disabled) {
  background: #e9ecdf;
  border-color: #a9b398;
}
.story-controls button:disabled {
  opacity: 0.3;
}
.story-controls > span {
  font-size: 8px;
  color: #7b8171;
  flex: 1;
  text-align: center;
}
.chapter-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 27px;
}
.chapter-nav button {
  border: 0;
  background: none;
  padding: 10px 0 0;
  text-align: left;
  font-size: 10px;
  color: #757b6c;
  position: relative;
}
.step-number {
  font: 8px var(--mono);
  margin-right: 8px;
  color: #949b88;
}
.step-track {
  display: block;
  height: 2px;
  background: #dfe3d5;
  margin-top: 12px;
  overflow: hidden;
}
.step-track i {
  display: block;
  height: 100%;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
}
.chapter-nav button[aria-current] {
  color: var(--ink);
}
.chapter-nav button[aria-current] .step-number {
  color: var(--rust);
}
.chapter-nav button:hover {
  color: var(--rust);
}
.walkthrough-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #858b7a;
  margin-top: 16px;
}
.walkthrough-note a {
  white-space: nowrap;
}
.running {
  animation: breathe 2.2s ease-in-out infinite;
}
.tui-row.running > span:last-child {
  color: #a0c283;
}
.run-indicator {
  display: inline-block;
  color: #a5c786;
}
.log-line {
  margin-top: 7px;
}
.log-line > span {
  color: #91a080;
}
.log-complete {
  border-top: 1px dashed #48523d;
  padding-top: 8px;
  margin-top: 9px;
  color: #a2c684;
}
.tui-row .branch-name {
  color: #a1c1c0;
}
.worktree-tag {
  color: #c4aed5;
}
.principles {
  padding-top: 140px;
  padding-bottom: 115px;
}
.principles-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  align-items: end;
}
.principles-heading .eyebrow {
  grid-column: 1/-1;
  color: #818773;
  font-size: 9px;
  margin-bottom: 20px;
}
.principles-heading h2 {
  font-size: 61px;
  line-height: 1.06;
}
.principles-heading > p:last-child {
  font-size: 14px;
  color: #787e6e;
  padding-left: 30px;
  padding-bottom: 3px;
  line-height: 1.85;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--line);
}
.principles-grid article {
  padding: 35px 36px 0 0;
}
.principles-grid article + article {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}
.principles-grid article:last-child {
  padding-right: 0;
}
.principle-icon {
  font: 22px var(--mono);
  color: #9caa8b;
  letter-spacing: 3px;
  height: 40px;
}
.principle-icon span {
  color: #b96543;
  letter-spacing: 0;
}
.principles-grid h3 {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.025em;
  margin-top: 13px;
}
.principles-grid p {
  font-size: 12px;
  line-height: 1.9;
  color: #787e6f;
  margin-top: 12px;
  max-width: 290px;
}
.principle-footnote {
  display: inline-block;
  font: 8px var(--mono);
  letter-spacing: 0.055em;
  color: #7c866f;
  margin-top: 24px;
  line-height: 1.8;
}
.getting-started {
  border-top: 1px solid var(--line);
  padding-top: 72px;
  padding-bottom: 84px;
  text-align: center;
}
.install-heading img {
  object-fit: contain;
  margin-bottom: 17px;
  filter: drop-shadow(0 7px 6px #3f4f2410);
}
.install-heading .eyebrow {
  font-size: 9px;
  color: #818773;
  margin-bottom: 17px;
}
.install-heading h2 {
  font-size: 74px;
}
.install-heading > p:last-child {
  margin-top: 20px;
  font-size: 13px;
  color: #7a806f;
}
.quickstart {
  max-width: 510px;
  margin: 32px auto 0;
  background: #eeefe7;
  border: 1px solid #dce0d2;
  border-radius: 6px;
  text-align: left;
  overflow: hidden;
}
.quickstart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dce0d2;
  min-height: 43px;
  padding: 8px 20px;
  font: 8px var(--mono);
  letter-spacing: 0.055em;
  color: #777f6b;
}
.quickstart-header .copy-button {
  border: 0;
  font-size: 9px;
  margin: 0;
}
.quickstart-lines {
  padding: 21px 24px;
  font-size: 12px;
}
.quickstart-lines > div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  line-height: 2.4;
}
.quickstart-lines > div > span:first-child {
  color: #929b85;
  font-family: var(--mono);
}
.quickstart-lines > div > span {
  user-select: none;
}
.code-comment {
  font: 10px var(--mono);
  color: #929986;
}
.install-requirements {
  font-size: 10px;
  color: #838976;
  margin-top: 19px;
  line-height: 1.9;
}
.install-requirements code {
  font-size: 9px;
}
.getting-started > .text-link {
  margin-top: 26px;
  font-size: 11px;
}
.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 21px;
  padding-block: 27px 35px;
  position: relative;
  font-size: 10px;
  color: #818775;
}
.footer-wordmark {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
}
.site-footer > div {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.footer-note {
  font: 7px var(--mono);
  letter-spacing: 0.04em;
  margin-left: 25px;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 83px;
  }
  .hero h1 {
    font-size: 104px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .demo-layout {
    grid-template-columns: minmax(0, 1fr) 225px;
    gap: 28px;
  }
  .story-copy h2 {
    font-size: 34px;
  }
  .terminal-badge {
    display: none;
  }
  .tui-row {
    font-size: 8px;
  }
  .terminal-path {
    font-size: 9px;
  }
  .demo-label {
    display: none;
  }
  .footer-note {
    display: none;
  }
  .principles-heading h2 {
    font-size: 53px;
  }
  .principles-heading {
    column-gap: 40px;
  }
}
@media (max-width: 820px) {
  :root {
    --stage-top: 83px;
  }
  .nav-wrap {
    height: 65px;
    width: calc(100% - 40px);
  }
  .nav-links {
    gap: 22px;
  }
  .hero {
    padding-top: 58px;
    padding-bottom: 50px;
  }
  .hero h1 {
    font-size: 76px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .agent-compatibility {
    flex-direction: column;
    gap: 14px;
    margin-top: 33px;
  }
  .agent-names {
    gap: 26px;
  }
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .terminal-shell {
    font-size: 11px;
  }
  .terminal-badge {
    display: block;
  }
  .tui-grid {
    height: 290px;
  }
  .tui-detail {
    grid-template-rows: 108px 1fr;
  }
  .tui-row {
    font-size: 10px;
  }
  .pane-title {
    font-size: 9px;
  }
  .meta-pane,
  .preview-pane {
    font-size: 9px;
  }
  .story-sidebar {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 16px;
  }
  .chapter-count {
    flex-direction: column;
    gap: 7px;
    margin-top: 3px;
    margin-bottom: 0;
  }
  .chapter-rule {
    width: 1px;
    height: 20px;
  }
  .story-copy .eyebrow {
    font-size: 8px;
    margin-bottom: 7px;
  }
  .story-copy h2 {
    font-size: 32px;
    line-height: 1;
  }
  .story-copy h2 br {
    display: none;
  }
  .story-copy > p:not(.eyebrow) {
    font-size: 11px;
    line-height: 1.7;
    margin-top: 10px;
    max-width: 520px;
  }
  .story-copy {
    min-height: 147px;
    grid-column: 2;
  }
  .key-sequence {
    margin-top: 10px;
    min-height: 24px;
  }
  .story-controls {
    grid-column: 2;
    display: none;
  }
  .chapter-nav {
    gap: 12px;
    margin-top: 18px;
  }
  .chapter-nav button {
    font-size: 9px;
  }
  .step-number {
    margin-right: 4px;
    font-size: 7px;
  }
  .section-kicker {
    margin-bottom: 16px;
  }
  .walkthrough-note {
    font-size: 8px;
  }
  .principles {
    padding-top: 100px;
    padding-bottom: 80px;
  }
  .principles-heading {
    column-gap: 20px;
  }
  .principles-heading h2 {
    font-size: 47px;
  }
  .principles-heading > p:last-child {
    font-size: 12px;
    padding-left: 0;
  }
  .principles-grid article {
    padding-right: 20px;
  }
  .principles-grid article + article {
    padding-left: 20px;
  }
  .principles-grid h3 {
    font-size: 14px;
  }
  .principles-grid p {
    font-size: 11px;
  }
  .principle-footnote {
    font-size: 7px;
  }
  .getting-started {
    padding-top: 55px;
  }
  .site-footer {
    gap: 14px;
    font-size: 9px;
  }
}
@media (max-width: 540px) {
  :root {
    --stage-top: 75px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .nav-wrap {
    width: calc(100% - 32px);
    height: 60px;
  }
  .wordmark {
    font-size: 26px;
    gap: 7px;
  }
  .wordmark img {
    width: 31px;
    height: 31px;
  }
  .nav-links {
    gap: 17px;
    font-size: 10px;
  }
  .nav-links .github-link {
    padding-left: 15px;
    gap: 6px;
  }
  .github-link > span {
    display: none;
  }
  .hero {
    padding-top: 48px;
    padding-bottom: 43px;
  }
  .hero .eyebrow {
    font-size: 6.8px;
    letter-spacing: 0.065em;
    gap: 8px;
  }
  .status-dot {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 0 3px #e7ebdf;
  }
  .hero h1 {
    font-size: 56px;
    margin-top: 23px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 21px;
  }
  .hero-description br {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    gap: 18px;
    margin-top: 23px;
  }
  .install-command {
    font-size: 11px;
    gap: 13px;
  }
  .text-link {
    font-size: 11px;
  }
  .agent-compatibility {
    margin-top: 30px;
    gap: 12px;
  }
  .compatibility-label {
    font-size: 7px;
  }
  .agent-names {
    gap: 17px;
  }
  .agent-names > span {
    font-size: 9px;
    gap: 5px;
  }
  .agent-symbol {
    font-size: 16px;
  }
  .omp-symbol {
    font-size: 11px;
  }
  .section-kicker {
    font-size: 7px;
    letter-spacing: 0.07em;
    margin-bottom: 13px;
  }
  .section-kicker > span:first-child {
    gap: 7px;
  }
  .small-cross {
    font-size: 15px;
  }
  .scroll-hint {
    gap: 7px;
    font-size: 6px;
  }
  .scroll-hint > span {
    font-size: 13px;
  }
  .terminal-shell {
    border-radius: 6px;
  }
  .terminal-bar {
    min-height: 32px;
    padding: 0 10px;
    font-size: 8px;
  }
  .window-dots {
    gap: 4px;
  }
  .window-dots i {
    width: 6px;
    height: 6px;
  }
  .terminal-badge {
    display: none;
  }
  .terminal-command {
    font-size: 10px;
    padding: 12px 10px 15px;
    gap: 6px;
  }
  .terminal-path {
    font-size: 8px;
  }
  .cursor {
    width: 5px;
    height: 11px;
  }
  .terminal-screen {
    padding: 7px 7px 7px;
  }
  .tui-grid {
    height: 241px;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }
  .tui-pane {
    padding-inline: 5px;
  }
  .task-pane {
    padding-inline: 0;
  }
  .tui-row {
    font-size: 7px;
    padding: 5px 3px;
    gap: 3px;
  }
  .tui-row .row-pointer {
    width: 4px;
  }
  .pane-title {
    font-size: 6px;
    top: -7px;
    left: 3px;
    padding-inline: 3px;
    max-width: calc(100% - 6px);
  }
  .tui-detail {
    grid-template-rows: 87px 1fr;
    gap: 9px;
  }
  .meta-pane,
  .preview-pane {
    font-size: 7px;
    line-height: 1.9;
    padding-top: 6px;
  }
  .tui-pane.task-pane {
    padding-top: 9px;
  }
  .preview-pane {
    font-size: 7px;
  }
  .preview-pane p {
    margin-bottom: 7px !important;
  }
  .spaced {
    margin-top: 7px;
  }
  .terminal-shortcuts {
    font-size: 6px;
    gap: 9px;
    min-height: 28px;
    padding-top: 8px;
  }
  .terminal-caption {
    font-size: 7px;
    padding: 7px 10px;
    min-height: 31px;
    gap: 6px;
  }
  .demo-layout {
    gap: 20px;
  }
  .story-sidebar {
    grid-template-columns: 26px 1fr;
    gap: 13px;
  }
  .chapter-count {
    font-size: 8px;
    gap: 6px;
  }
  .chapter-rule {
    height: 17px;
  }
  .story-copy {
    min-height: 155px;
  }
  .story-copy h2 {
    font-size: 29px;
    line-height: 1.08;
  }
  .story-copy > p:not(.eyebrow) {
    font-size: 10px;
    margin-top: 9px;
    line-height: 1.75;
  }
  .story-copy .eyebrow {
    font-size: 6px;
  }
  .key-sequence {
    font-size: 7px;
    gap: 4px;
    margin-top: 11px;
  }
  kbd {
    font-size: 8px;
    min-width: 18px;
    height: 20px;
  }
  .chapter-nav {
    gap: 8px;
    margin-top: 8px;
  }
  .chapter-nav button {
    font-size: 8px;
    line-height: 1.6;
    min-height: 51px;
  }
  .step-number {
    display: block;
    font-size: 7px;
    margin-bottom: 2px;
  }
  .step-track {
    margin-top: 8px;
  }
  .walkthrough-note {
    font-size: 7px;
    gap: 9px;
    margin-top: 12px;
  }
  .walkthrough-note > span {
    max-width: 205px;
  }
  .walkthrough-note > a {
    font-size: 7px;
  }
  .log-line {
    margin-top: 5px;
  }
  .log-complete {
    margin-top: 5px;
    padding-top: 5px;
  }
  .principles {
    padding-top: 83px;
    padding-bottom: 61px;
  }
  .principles-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .principles-heading .eyebrow {
    font-size: 7px;
    margin-bottom: 19px;
  }
  .principles-heading h2 {
    font-size: 48px;
  }
  .principles-heading > p:last-child {
    font-size: 12px;
    padding-top: 22px;
  }
  .principles-heading > p:last-child br {
    display: none;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .principles-grid article,
  .principles-grid article + article {
    padding: 26px 0;
    border: 0;
    position: relative;
  }
  .principles-grid article + article {
    border-top: 1px solid var(--line);
  }
  .principle-icon {
    position: absolute;
    top: 25px;
    right: 4px;
    font-size: 19px;
  }
  .principles-grid h3 {
    font-size: 16px;
    margin-top: 0;
    padding-right: 45px;
  }
  .principles-grid p {
    font-size: 12px;
    max-width: none;
    padding-right: 16px;
    margin-top: 10px;
  }
  .principle-footnote {
    font-size: 7px;
    margin-top: 16px;
  }
  .getting-started {
    padding-top: 39px;
    padding-bottom: 55px;
  }
  .install-heading img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .install-heading h2 {
    font-size: 58px;
  }
  .install-heading .eyebrow {
    font-size: 7px;
  }
  .install-heading > p:last-child {
    font-size: 11px;
    margin-top: 17px;
    max-width: 280px;
    margin-inline: auto;
  }
  .quickstart {
    margin-top: 25px;
  }
  .quickstart-header {
    padding: 7px 13px;
    font-size: 6px;
  }
  .quickstart-header .copy-button {
    font-size: 7px;
    padding: 0;
    min-height: 30px;
  }
  .quickstart-lines {
    padding: 15px 14px;
    font-size: 10px;
  }
  .quickstart-lines > div {
    grid-template-columns: 9px 1fr auto;
    gap: 7px;
  }
  .code-comment {
    font-size: 7px;
  }
  .install-requirements {
    font-size: 8px;
  }
  .install-requirements code {
    font-size: 8px;
  }
  .getting-started > .text-link {
    font-size: 10px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 6px 13px;
    padding-block: 20px;
  }
  .site-footer > div {
    gap: 16px;
    font-size: 8px;
  }
  .site-footer > p {
    font-size: 8px;
  }
  .footer-wordmark {
    font-size: 22px;
  }
}
@media (max-width: 359px) {
  .hero h1 {
    font-size: 46px;
  }
  .agent-names {
    gap: 11px;
  }
  .agent-names > span {
    font-size: 8px;
  }
  .terminal-shortcuts {
    gap: 6px;
  }
  .tui-row,
  .meta-pane,
  .preview-pane {
    font-size: 6px;
  }
  .story-copy h2 {
    font-size: 26px;
  }
  .chapter-nav button {
    font-size: 7px;
  }
  .site-footer > div {
    margin-left: 0;
    width: 100%;
    padding-top: 6px;
  }
}
@media (max-height: 850px) and (min-width: 821px) {
  :root {
    --stage-top: 86px;
  }
  .tui-grid {
    height: clamp(210px, calc(100svh - 428px), 280px);
  }
  .tui-detail {
    grid-template-rows: 96px minmax(0, 1fr);
  }
  .meta-pane,
  .preview-pane {
    font-size: 9px;
    line-height: 1.7;
  }
  .story-stage {
    padding-bottom: 8px;
  }
  .walkthrough-note {
    margin-top: 10px;
  }
  .terminal-command {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .chapter-count {
    margin-bottom: 20px;
  }
  .chapter-nav {
    margin-top: 16px;
  }
  .section-kicker {
    margin-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .cursor {
    opacity: 1;
  }
}
@media print {
  .site-header,
  .hero-actions,
  .story-controls,
  .chapter-nav,
  .scroll-hint,
  .copy-button {
    display: none !important;
  }
  .has-js .walkthrough {
    height: auto !important;
  }
  .has-js .story-stage {
    position: static;
  }
  .story-copy[hidden] {
    display: block !important;
    margin-top: 20px !important;
  }
  .demo-layout {
    display: block;
  }
  .story-sidebar {
    display: block;
  }
  .terminal-shell {
    margin-bottom: 25px;
    break-inside: avoid;
  }
  .hero,
  .principles,
  .getting-started {
    padding-block: 25px;
  }
  .wrap {
    width: 100%;
  }
  body {
    background: white;
  }
  .site-footer {
    break-inside: avoid;
  }
}
