@font-face {
  font-family: Archivo;
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f3f3f1;
  --surface: #fff;
  --gray: #dedfdb;
  --ink: #000;
  --brand: #183e32;
  --muted: #555b57;
  --border: 2px solid var(--ink);
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: Archivo, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--brand);
  color: white;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.8rem, 5.7vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(2rem, 3.7vw, 3.25rem);
}
h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
img {
  max-width: 100%;
  height: auto;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: 32px;
}
.skip-link {
  position: absolute;
  top: -90px;
  left: 20px;
  z-index: 20;
  padding: 12px 20px;
  background: white;
  border: var(--border);
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  border-bottom: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font: 1.65rem var(--font-display);
  letter-spacing: -0.05em;
  text-decoration: none;
}
.brand img {
  display: block;
}
.header-inner nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 600;
}
.header-inner nav a {
  text-decoration: none;
}
.header-inner nav a:hover {
  text-decoration: underline;
}
.nav-repo {
  border-left: 1px solid var(--ink);
  padding-left: 28px;
}
.hero {
  background: var(--brand);
  color: white;
  padding-block: 28px 0;
}
.hero :focus-visible,
.closing :focus-visible {
  outline-color: white;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.88rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 55px;
  align-items: center;
  padding-block: 54px 64px;
}
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 48ch;
  margin-top: 25px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 23px;
  border: var(--border);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition:
    transform 140ms,
    box-shadow 140ms;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn--light {
  background: white;
  color: black;
}
.hero-install {
  font-weight: 600;
  font-size: 1rem;
}
.route-sheet {
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  border-radius: 8px;
  box-shadow: 8px 8px 0 #000;
  transform: rotate(1.5deg);
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 22px;
  border-bottom: var(--border);
  font-size: 0.91rem;
  font-weight: 700;
}
.route-list {
  list-style: none;
  margin: 0;
  padding: 24px 22px;
}
.route-list li {
  display: flex;
  gap: 15px;
  position: relative;
  padding-bottom: 30px;
}
.route-list li:last-child {
  padding-bottom: 0;
}
.route-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--brand);
}
.route-node {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--paper);
}
.route-list li > div {
  min-width: 0;
}
.route-list strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.87rem;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.route-list li div > span:last-child {
  display: block;
  color: var(--muted);
  font-size: 0.81rem;
  margin-top: 5px;
}
.route-layer {
  display: block;
  font-size: 0.76rem;
  margin-bottom: 3px;
  color: var(--brand);
  font-weight: 700;
}
.sheet-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 22px;
  border-top: var(--border);
  font-size: 0.78rem;
}
.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  border-top: 1px solid #ffffff55;
  padding-block: 18px;
  font-size: 0.85rem;
}
.hero-bottom span::before {
  content: "✓";
  margin-right: 10px;
}
.agent-strip {
  border-bottom: var(--border);
  background: var(--gray);
}
.agent-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
  font-size: 0.92rem;
}
.agent-strip p:first-child {
  font-weight: 700;
}
.agent-strip p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.agent-strip span {
  color: var(--muted);
}
.section {
  padding-block: 88px;
  border-bottom: var(--border);
}
.section--gray {
  background: var(--gray);
}
.section-head {
  margin-bottom: 38px;
  max-width: 850px;
}
.section-head > p:last-child:not(.section-kicker) {
  max-width: 64ch;
  margin-top: 22px;
  color: var(--muted);
}
.section-kicker {
  font-size: 0.89rem;
  font-weight: 650;
  margin-bottom: 17px;
  color: var(--brand);
}
.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: end;
  gap: 70px;
}
.split-head > p:last-child {
  margin: 0;
}
.explorer-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.explorer-controls button {
  min-height: 44px;
  padding: 9px 20px;
  border: var(--border);
  border-radius: 6px;
  background: transparent;
  font-size: 0.93rem;
  font-weight: 600;
}
.explorer-controls button[aria-pressed="true"] {
  background: var(--brand);
  color: white;
}
.explorer-controls button:hover {
  box-shadow: 3px 3px 0 black;
}
.atlas-preview {
  border: var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 7px 7px 0 black;
  background: white;
}
.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: var(--border);
  padding: 12px 20px;
  font-size: 0.83rem;
}
.preview-bar > span {
  display: flex;
  gap: 9px;
  align-items: center;
  font-family: var(--font-mono);
}
.file-dot {
  width: 9px;
  height: 9px;
  background: var(--brand);
  border-radius: 50%;
}
.atlas-preview > img {
  width: 100%;
  display: block;
  aspect-ratio: 1280/1040;
  object-fit: contain;
  background: var(--paper);
}
.atlas-preview figcaption {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 25px;
  padding: 24px;
  border-top: var(--border);
  font-size: 0.96rem;
}
.atlas-preview figcaption strong {
  font-size: 1.14rem;
  line-height: 1.4;
}
.atlas-preview figcaption span {
  color: var(--muted);
}
.demo-foot {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px 28px;
  margin-top: 26px;
  font-size: 0.86rem;
  color: var(--muted);
}
.demo-foot a {
  flex-shrink: 0;
  color: black;
}
.use-cases {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 88px;
  align-items: start;
}
.section-intro {
  margin-top: 23px;
  color: var(--muted);
  max-width: 48ch;
}
.mode-list article {
  padding: 26px 0;
  border-top: var(--border);
}
.mode-list article:first-child {
  padding-top: 0;
  border-top: 0;
}
.mode-list article:last-child {
  padding-bottom: 0;
}
.mode-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.mode-heading > span {
  font-size: 0.75rem;
  flex: none;
  color: var(--muted);
}
.mode-list p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 15px;
}
.mode-list code {
  display: block;
  border-left: 3px solid var(--brand);
  padding-left: 13px;
  font-size: 0.82rem;
}
.mode-list a {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.9rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
}
.steps li {
  border-top: var(--border);
  padding-top: 20px;
}
.step-num {
  display: block;
  color: var(--brand);
  font: 2.2rem var(--font-display);
  margin-bottom: 26px;
}
.steps h3 {
  margin-bottom: 13px;
}
.steps p {
  font-size: 0.99rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.steps code {
  font-size: 0.79rem;
}
.boundary {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  border: var(--border);
  border-left: 7px solid var(--brand);
  padding: 23px 26px;
  margin-top: 40px;
  background: white;
  font-size: 0.92rem;
}
.boundary p {
  color: var(--muted);
}
.install-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.small-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-block: 20px;
}
.install-grid > div > a {
  font-size: 0.94rem;
}
.install-step {
  margin-bottom: 28px;
}
.install-step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.install-step h3 > span {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  font: 600 1rem var(--font-body);
}
.install-step > p {
  font-size: 0.96rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.code-block {
  border: var(--border);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 13px;
  border-bottom: 1px solid black;
  font-size: 0.8rem;
  font-weight: 600;
}
.copy-btn {
  padding: 7px 11px;
  border: 1px solid black;
  border-radius: 4px;
  background: var(--paper);
  font-size: 0.8rem;
  min-height: 34px;
}
.copy-btn:hover {
  background: var(--gray);
}
.code-block pre {
  padding: 18px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.8;
}
.code-block pre code {
  font-size: inherit;
}
.copy-status:empty {
  display: none;
}
.copy-status {
  padding: 0 18px 14px;
  color: var(--brand);
  font-size: 0.82rem;
}
.install-options {
  font-size: 0.86rem;
  margin-top: 14px;
}
.install-options summary {
  padding-block: 5px;
}
.install-options p {
  margin-top: 12px;
  color: var(--muted);
}
summary {
  cursor: pointer;
}
summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.agent-picker {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  font-size: 0.87rem;
}
.agent-picker legend {
  margin-bottom: 8px;
  font-weight: 600;
}
.agent-picker label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  cursor: pointer;
}
.agent-picker input {
  accent-color: var(--brand);
  width: 17px;
  height: 17px;
  margin: 0;
}
.install-result {
  padding-top: 24px;
  border-top: var(--border);
  font-size: 0.94rem;
}
.install-result p {
  margin-top: 8px;
  color: var(--muted);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}
.faq-list details {
  border-top: var(--border);
  padding-block: 21px;
}
.faq-list details:last-child {
  border-bottom: var(--border);
}
.faq-list summary {
  font-size: 1.05rem;
  font-weight: 650;
  padding-right: 12px;
}
.faq-list details p {
  margin-top: 16px;
  font-size: 0.96rem;
  color: var(--muted);
}
.faq-list details a {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.94rem;
}
.closing {
  background: var(--brand);
  color: white;
}
.closing-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: center;
  gap: 60px;
}
.closing h2 {
  margin-block: 18px 23px;
}
.closing p {
  max-width: 63ch;
  font-size: 0.98rem;
}
.closing p:first-child {
  font-size: 0.86rem;
}
.closing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 23px;
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 30px;
  font-size: 0.83rem;
}
.site-footer p {
  color: var(--muted);
}
@media (min-width: 1450px) {
  .hero-grid {
    padding-block: 70px 80px;
  }
}
@media (max-width: 1020px) {
  .hero-grid {
    gap: 30px;
    grid-template-columns: 1.35fr 1fr;
  }
  h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  }
  .sheet-head,
  .sheet-foot {
    padding-inline: 16px;
  }
  .route-list {
    padding-inline: 16px;
  }
  .route-list li {
    gap: 10px;
  }
  .route-list strong {
    font-size: 0.77rem;
  }
  .use-cases,
  .install-grid,
  .faq-grid {
    gap: 40px;
  }
  .split-head {
    gap: 40px;
  }
  .agent-strip .wrap {
    flex-direction: column;
    gap: 7px;
  }
  .steps {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .wrap {
    padding-inline: 22px;
  }
  .header-inner {
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 16px;
  }
  .header-inner nav {
    gap: 18px;
    font-size: 0.84rem;
  }
  .nav-repo {
    padding-left: 18px;
  }
  .hero-top {
    font-size: 0.78rem;
  }
  .hero-top > p:last-child {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 32px 40px;
    gap: 38px;
  }
  h1 {
    font-size: clamp(2.6rem, 8.1vw, 4.2rem);
  }
  .hero-lead {
    font-size: 1.07rem;
    max-width: 47ch;
  }
  .route-sheet {
    transform: none;
    max-width: 480px;
    width: 100%;
  }
  .route-list {
    padding: 20px;
  }
  .route-list strong {
    font-size: 0.87rem;
  }
  .route-list li {
    padding-bottom: 22px;
  }
  .hero-bottom {
    justify-content: start;
    gap: 9px 25px;
    font-size: 0.78rem;
  }
  .hero-bottom span::before {
    margin-right: 6px;
  }
  .agent-strip .wrap {
    font-size: 0.81rem;
  }
  .agent-strip p:last-child {
    gap: 8px 12px;
  }
  .section {
    padding-block: 56px;
  }
  .split-head,
  .use-cases,
  .install-grid,
  .faq-grid,
  .closing-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .section-head {
    margin-bottom: 28px;
  }
  .section-kicker {
    margin-bottom: 13px;
  }
  .split-head > p:last-child {
    font-size: 0.98rem;
  }
  .explorer-controls {
    gap: 7px;
  }
  .explorer-controls button {
    padding: 8px 13px;
    font-size: 0.84rem;
  }
  .atlas-preview {
    box-shadow: 4px 4px 0 black;
  }
  .preview-bar {
    font-size: 0.73rem;
    padding: 10px 12px;
  }
  .atlas-preview figcaption {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
    font-size: 0.9rem;
  }
  .atlas-preview figcaption strong {
    font-size: 1.04rem;
  }
  .demo-foot {
    flex-direction: column;
  }
  .mode-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mode-list article:first-child {
    padding-top: 23px;
    border-top: var(--border);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }
  .step-num {
    margin-bottom: 12px;
    font-size: 1.8rem;
  }
  .steps p {
    max-width: 60ch;
  }
  .boundary {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    margin-top: 30px;
  }
  .install-grid,
  .faq-grid {
    gap: 34px;
  }
  .closing-actions {
    align-items: start;
  }
  .site-footer .wrap {
    justify-content: start;
    gap: 20px 25px;
  }
  .site-footer p {
    flex-basis: 100%;
  }
  .site-footer .brand {
    flex-basis: 100%;
  }
}
@media (max-width: 380px) {
  .wrap {
    padding-inline: 20px;
  }
  .header-inner nav {
    gap: 13px;
    font-size: 0.8rem;
  }
  .nav-repo {
    padding-left: 13px;
  }
  .actions {
    gap: 22px;
  }
  .hero-install {
    font-size: 0.93rem;
  }
  .route-list strong {
    font-size: 0.79rem;
  }
  .route-list {
    padding-inline: 15px;
  }
  .preview-bar {
    font-size: 0.68rem;
  }
  .explorer-controls button {
    font-size: 0.8rem;
    padding-inline: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
/* Let navigation wrap when visitors enlarge text, including on narrow screens. */
.header-inner nav {
  flex-wrap: wrap;
}
/* Long display words must reflow rather than clip when text is enlarged. */
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

/* A single persistent canvas: four atlas chapters advance with native scroll. */
.scroll-story {
  padding-block: 0;
  border-bottom: 0;
}
.scroll-story .scroll-stage {
  height: 100svh;
  padding-block: 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
  grid-template-rows: 1fr auto auto;
  gap: 20px 36px;
  align-items: center;
  position: relative;
}
.scroll-story .scroll-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(var(--story-progress, 0));
  transform-origin: left;
}
.scroll-story .section-head {
  display: block;
  margin: 0;
  align-self: end;
}
.scroll-story .section-head h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}
.scroll-story .section-head > p:last-child {
  margin-top: 24px;
  font-size: 0.94rem;
}
.scroll-story .explorer-controls {
  grid-column: 1;
  margin: 0;
  align-self: start;
}
.scroll-story .atlas-preview {
  grid-column: 2;
  grid-row: 1 / 4;
  min-width: 0;
}
.scroll-story .atlas-preview > img {
  max-height: calc(100svh - 240px);
  object-fit: contain;
}
.scroll-story .atlas-preview figcaption {
  display: block;
  padding: 18px;
}
.scroll-story .atlas-preview figcaption span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
}
.scroll-story .demo-foot {
  display: block;
  grid-column: 1;
  font-size: 0.78rem;
}
.scroll-story .demo-foot a {
  display: inline-block;
  margin-top: 10px;
}
/* Softer continuity between chapters, without motion on every paragraph. */
.section {
  border-bottom-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-stage {
    transform: none !important;
  }
}
