@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fff;
  --surface: #fff;
  --muted-surface: #f1f1ef;
  --ink: #000;
  --muted: #5a5a5a;
  --border: #d2d2d0;
  --border-soft: #e8e8e6;
  --slate: #5d6470;
  --brown: #7a5a44;
  --red: #d4182c;
  --pink: #c4339a;
  --violet: #7b3fb5;
  --blue: #2c64d4;
  --teal: #0d8077;
  --green: #2f8a4a;
  --yellow: #d9a400;
  --orange: #e0631a;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--muted); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 730; letter-spacing: -.055em; line-height: .96; text-wrap: balance; }
h1 { font-size: clamp(58px, 8.1vw, 122px); }
h2 { font-size: clamp(42px, 5.1vw, 76px); }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.03; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 50; top: -100px; left: 16px; padding: 10px 14px; background: var(--ink); color: var(--surface); }
.skip-link:focus { top: 16px; }
.status-square { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; }
.slate { background: var(--slate); } .brown { background: var(--brown); } .red { background: var(--red); } .pink { background: var(--pink); }
.violet { background: var(--violet); } .blue { background: var(--blue); } .teal { background: var(--teal); } .green { background: var(--green); }
.yellow { background: var(--yellow); } .orange { background: var(--orange); }
.eyebrow, .section-label, .header-context, .stage-topline, .command-head, .command-foot, .agent-flow-head, .footer-col > span, .scroll-hint {
  color: var(--muted); font: 600 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.section-label { display: flex; align-items: center; gap: 8px; }

.site-header { position: sticky; z-index: 20; top: 0; min-height: 68px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--ink); backdrop-filter: blur(12px); }
.header-row { min-height: 68px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img, .footer-brand img { width: 106px; height: auto; }
.brand-rule { width: 1px; height: 28px; background: var(--border); }
.header-context { white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; font-size: 13px; font-weight: 650; }
.main-nav a { text-decoration: none; }
.main-nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { display: inline-flex; min-height: 37px; align-items: center; gap: 11px; padding: 0 12px; background: var(--ink); color: var(--surface); }
.nav-cta:hover { background: var(--teal); }
.nav-button, .mobile-nav { display: none; }

.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 69px - 60px); overflow: hidden; padding: clamp(56px, 7vw, 104px) 0; }
.hero-color-band { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(6, 1fr); height: 7px; }
.hero-color-band i { display: block; }
.hero > .wrap { width: min(calc(100% - 96px), 1480px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(620px, 1.14fr); gap: clamp(48px, 5vw, 88px); align-items: center; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero-copy h1 { max-width: 700px; margin-top: 22px; }
.hero-copy h1 em { position: relative; font-style: normal; white-space: nowrap; }
.hero-copy h1 em::after { content: ""; position: absolute; left: 4%; right: -3%; bottom: -3px; height: 8px; background: var(--yellow); z-index: -1; }
.hero-lede { max-width: 600px; margin-top: 28px; color: #3d3d3d; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; padding: 0 14px; border: 1px solid var(--ink); font-size: 12px; font-weight: 650; text-decoration: none; transition: background 130ms ease, color 130ms ease, border-color 130ms ease; }
.button.primary { background: var(--ink); color: var(--surface); }
.button.primary:hover { background: var(--teal); border-color: var(--teal); }
.button.secondary:hover { background: var(--muted-surface); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 13px 20px; margin-top: 38px; color: var(--muted); font-size: 11px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-stage { position: relative; width: min(100%, 760px); min-width: 0; margin-left: auto; padding: 11px 11px 0; border-top: 2px solid var(--ink); background: var(--muted-surface); }
.stage-topline { display: flex; justify-content: space-between; gap: 15px; padding: 0 0 10px; }
.stage-topline span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.stage-image { overflow: hidden; border: 1px solid var(--ink); background: var(--surface); }
.stage-image img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; object-position: center; }
.stage-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0 12px; font-size: 12px; font-weight: 650; }
.stage-arrow { font-size: 20px; line-height: 1; }

.signal-strip { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--surface); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-grid p { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-right: 1px solid #4b4b4b; font-size: 12px; font-weight: 650; }
.signal-grid p:first-child { border-left: 1px solid #4b4b4b; }
.signal-grid p:last-child { border-right: 1px solid #4b4b4b; }
.signal-grid span { color: #b5b5b5; font: 600 10px var(--mono); }

.how-it-works { min-height: calc(100vh - 68px + 64px); min-height: calc(100dvh - 68px + 64px); display: flex; align-items: center; padding: clamp(72px, 8vw, 118px) 0; color: var(--surface); background: var(--ink); }
.how-grid, .agents-grid, .local-grid, .start-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(48px, 9vw, 150px); }
.how-it-works .section-label { color: #bcbcbc; }
.how-it-works .section-intro h2 { max-width: 590px; margin-top: 20px; }
.how-it-works .section-intro > p:last-of-type { max-width: 470px; margin-top: 25px; color: #bcbcbc; line-height: 1.65; }
.how-result { max-width: 360px; margin-top: clamp(48px, 7vw, 94px); padding-top: 14px; border-top: 1px solid #555; }
.how-result span, .step-kicker { color: #8f8f8f; font: 600 10px/1.4 var(--mono); letter-spacing: .06em; }
.how-result strong { display: block; margin-top: 13px; font: 730 23px/.99 var(--display); letter-spacing: -.04em; }
.steps-list { border-top: 2px solid #f4f4f4; }
.steps-list-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #4d4d4d; color: #8f8f8f; font: 600 10px/1.4 var(--mono); letter-spacing: .06em; }
.step { display: grid; grid-template-columns: 42px 1fr 27px; gap: 16px; align-items: start; padding: 25px 0 27px; border-bottom: 1px solid #4d4d4d; }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; color: var(--surface); font: 600 10px var(--mono); }
.step--blue .step-number { background: var(--blue); } .step--yellow .step-number { background: var(--yellow); } .step--pink .step-number { background: var(--pink); }
.step h3 { margin-top: 8px; color: var(--surface); font-size: 27px; }
.step p:not(.step-kicker) { max-width: 500px; margin-top: 11px; color: #bcbcbc; font-size: 13px; line-height: 1.62; }
.step-detail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px 14px; margin-top: 20px; padding-top: 10px; border-top: 1px solid #444; }
.step-detail span { color: #858585; font-size: 11px; }
.step-detail strong { color: #f0f0f0; font-size: 11px; font-weight: 600; }
.step-mark { padding-top: 3px; color: #8f8f8f; font: 22px/1 var(--display); text-align: right; }

.views { min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); display: flex; align-items: center; overflow: hidden; padding: clamp(64px, 6vw, 96px) 0 clamp(56px, 6vw, 88px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(230px, .87fr); gap: 48px; align-items: end; }
.section-heading h2 { max-width: 720px; margin-top: 20px; }
.section-heading > p { max-width: 410px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.view-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 52px; border-bottom: 1px solid var(--ink); }
.view-tabs { display: flex; gap: 25px; overflow-x: auto; }
.view-tabs button { flex: 0 0 auto; padding: 0 0 11px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.view-tabs button:hover, .view-tabs button.is-current { border-bottom-color: var(--ink); color: var(--ink); }
.gallery-controls { display: flex; gap: 6px; padding-bottom: 7px; }
.gallery-controls button { width: 32px; height: 29px; border: 1px solid var(--ink); background: var(--surface); font-size: 16px; line-height: 1; }
.gallery-controls button:hover { background: var(--ink); color: var(--surface); }
.gallery-rail { display: flex; gap: 18px; margin-top: 20px; padding: 0 max(18px, calc(100% - min(760px, 70vw))) 18px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--ink) var(--muted-surface); scrollbar-width: thin; }
.gallery-card { flex: 0 0 min(760px, 70vw); scroll-snap-align: start; margin: 0; border-top: 5px solid var(--ink); background: var(--muted-surface); }
.gallery-card--teal { border-color: var(--teal); } .gallery-card--blue { border-color: var(--blue); } .gallery-card--orange { border-color: var(--orange); } .gallery-card--yellow { border-color: var(--yellow); } .gallery-card--violet { border-color: var(--violet); }
.gallery-image { padding: 11px 11px 0; }
.gallery-image img { width: 100%; aspect-ratio: 1.82 / 1; object-fit: contain; border: 1px solid var(--border); background: var(--surface); }
.gallery-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 13px 12px 16px; }
.gallery-card figcaption div { display: flex; align-items: baseline; gap: 13px; }
.gallery-card strong { font: 730 22px/.98 var(--display); letter-spacing: -.04em; }
.gallery-card figcaption span { color: var(--muted); font-size: 12px; }
.gallery-card figcaption small { color: var(--muted); font: 600 10px var(--mono); white-space: nowrap; }
.scroll-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.scroll-hint span:last-child { margin-left: 4px; font-size: 16px; }

.agents { min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); display: grid; align-content: center; gap: clamp(42px, 6vw, 72px); padding: clamp(72px, 7vw, 112px) 0; border-top: 1px solid var(--ink); color: var(--surface); background: var(--ink); }
.agents-heading { display: block; }
.agents .section-label { color: #bcbcbc; }
.agents-grid .section-intro > p:last-of-type { max-width: 450px; margin-top: 25px; color: #bcbcbc; line-height: 1.65; }
.text-link { display: inline-flex; gap: 12px; margin-top: 24px; font-size: 12px; font-weight: 650; text-decoration: none; }
.agents .text-link { color: var(--surface); }
.text-link:hover { text-decoration: underline; }
.agent-note { max-width: 500px; margin-top: 42px; padding-top: 14px; border-top: 1px solid #555; }
.agent-note > span { color: #8f8f8f; font: 600 10px/1.4 var(--mono); letter-spacing: .06em; }
.agent-entry { display: grid; grid-template-columns: minmax(112px, .52fr) 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid #3d3d3d; }
.agent-entry:first-of-type { margin-top: 8px; }
.agent-entry strong { color: var(--surface); font-size: 13px; font-weight: 700; }
.agent-entry p { color: #bcbcbc; font-size: 12px; line-height: 1.55; }
.agent-flow { border-top: 2px solid var(--surface); }
.agent-flow-head { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 10px; color: #8f8f8f; border-bottom: 1px solid #4d4d4d; }
.agent-flow-row { display: grid; grid-template-columns: 33px 1fr 145px; gap: 16px; align-items: center; min-height: 78px; padding: 13px 10px; border-bottom: 1px solid #4d4d4d; }
.flow-index { width: 25px; height: 25px; display: grid; place-items: center; color: var(--surface); font: 600 9px var(--mono); }
.agent-flow-row strong { display: block; font-size: 14px; }
.agent-flow-row strong { color: var(--surface); }
.agent-flow-row small { display: block; margin-top: 4px; color: #bcbcbc; font-size: 12px; }
.flow-state { display: inline-flex; align-items: center; gap: 8px; justify-self: end; color: #bcbcbc; font-size: 11px; white-space: nowrap; }

.local { min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); display: grid; align-items: center; padding: clamp(76px, 8vw, 112px) 0; background: var(--muted-surface); }
.local-copy h2 { max-width: 560px; margin-top: 20px; }
.local-copy > p:not(.section-label) { max-width: 470px; margin-top: 24px; color: var(--muted); line-height: 1.65; }
.local .text-link { display: inline-flex; margin-top: 24px; }
.local-pledge { max-width: 470px; margin-top: clamp(48px, 7vw, 82px); padding-top: 15px; border-top: 2px solid var(--ink); }
.local-pledge > span { color: var(--muted); font: 600 10px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.local-pledge strong { display: block; max-width: 400px; margin-top: 12px; font: 730 clamp(24px, 2.4vw, 34px)/.98 var(--display); letter-spacing: -.045em; }
.local-pledge p { max-width: 400px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.local-facts { border-top: 2px solid var(--ink); }
.local-facts > div { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; padding: 20px 8px 20px 24px; border-bottom: 1px solid var(--border); font-size: 13px; }
.local-facts > div::before { content: ""; position: absolute; top: 25px; left: 8px; width: 8px; height: 8px; background: var(--teal); }
.local-facts > div:nth-child(2)::before { background: var(--blue); }
.local-facts > div:nth-child(3)::before { background: var(--pink); }
.local-facts > div:nth-child(4)::before { background: var(--yellow); }
.local-facts > div:nth-child(5)::before { background: var(--orange); }
.local-facts > div:nth-child(6)::before { background: var(--violet); }
.local-facts strong { font-size: 15px; }
.local-facts span { color: var(--muted); line-height: 1.55; }

.start { min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); display: grid; align-items: center; padding: clamp(82px, 9vw, 128px) 0; color: var(--surface); background: var(--ink); }
.start h2 { max-width: 590px; margin-top: 20px; }
.start-copy > p:not(.section-label) { max-width: 440px; margin-top: 24px; color: #c7c7c7; line-height: 1.65; }
.start .section-label { color: #b7b7b7; }
.start .text-link { color: var(--surface); }
.install-command { align-self: start; margin-top: clamp(12px, 1.8vw, 24px); overflow: hidden; border: 1px solid #666; }
.command-head, .command-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 12px; color: #bcbcbc; }
.command-head { min-height: 39px; border-bottom: 1px solid #555; }
.command-source { color: var(--surface); font: 600 10px/1.4 var(--mono); letter-spacing: 0; text-transform: none; text-decoration: none; }
.command-source:hover { color: var(--yellow); }
.install-command pre { margin: 0; padding: 18px 12px; overflow: auto; color: var(--surface); font: 12px/1.7 var(--mono); }
.terminal-prompt, .terminal-output { display: block; }
.terminal-output { color: #8f8f8f; }
.command-foot { min-height: 43px; padding-block: 6px; border-top: 1px solid #555; font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.copy-code { min-height: 29px; padding: 0 9px; border: 1px solid #999; background: transparent; color: var(--surface); font-size: 10px; }
.copy-code:hover { background: var(--surface); color: var(--ink); }

.site-footer { padding: 46px 0 16px; }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; padding-bottom: 42px; }
.footer-brand p { max-width: 290px; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-col { display: grid; justify-items: start; align-content: start; gap: 8px; }
.footer-col a { font-size: 12px; text-decoration: none; }
.github-link { display: inline-flex; align-items: center; gap: 7px; }
.github-link svg { width: 14px; height: 14px; flex: 0 0 auto; }
.footer-col a:hover { color: var(--teal); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 18px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.js .step, .js .gallery-card, .js .agent-flow, .js .local-facts { transform: translateY(13px); transition: transform 420ms ease; }
.js .is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .header-context { display: none; }
  .main-nav { gap: 15px; }
  .hero { min-height: calc(100svh - 69px - 60px); }
  .hero > .wrap { width: min(calc(100% - 48px), var(--max)); }
  .hero-grid { grid-template-columns: 1fr; gap: 58px; }
  .hero-copy { max-width: 850px; }
  .hero-stage { width: min(100%, 760px); margin-left: auto; }
  .how-grid, .agents-grid, .local-grid, .start-grid { gap: 48px; }
  .gallery-card { flex-basis: min(700px, 82vw); }
}

@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 36px), var(--max)); }
  .site-header, .header-row { min-height: 60px; }
  .brand img { width: 103px; }
  .brand-rule, .main-nav { display: none; }
  .nav-button { display: inline-flex; align-items: center; min-height: 36px; margin-left: auto; padding: 0 10px; border: 1px solid var(--ink); background: var(--surface); font-size: 12px; font-weight: 650; }
  .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; padding: 5px 18px 13px; border-bottom: 1px solid var(--ink); background: var(--surface); }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { min-height: 42px; display: flex; align-items: center; border-top: 1px solid var(--border); font-size: 13px; font-weight: 650; text-decoration: none; }
  .hero { min-height: calc(100svh - 60px - 104px); padding: 62px 0 56px; }
  .hero-copy h1 { font-size: clamp(55px, 15vw, 77px); }
  .hero-lede { font-size: 17px; }
  .hero-proof { margin-top: 31px; }
  .hero-stage { margin-top: 0; padding: 9px 9px 0; }
  .stage-footer { padding-bottom: 4px; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal-grid p { min-height: 52px; padding: 0 8px; border-bottom: 1px solid #4b4b4b; font-size: 11px; }
  .signal-grid p:nth-child(odd) { border-left: 1px solid #4b4b4b; }
  .signal-grid p:nth-child(even) { border-right: 1px solid #4b4b4b; }
  .signal-grid p:last-child { border-right: 1px solid #4b4b4b; }
  .how-grid, .agents-grid, .local-grid, .start-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps-list-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .view-toolbar { align-items: stretch; display: block; margin-top: 40px; }
  .view-tabs { gap: 18px; }
  .gallery-controls { justify-content: flex-end; padding: 10px 0; }
  .gallery-card { flex-basis: 87vw; }
  .gallery-rail { gap: 14px; margin-right: -18px; padding-right: max(18px, calc(100% - 87vw)); }
  .gallery-card figcaption { display: grid; gap: 8px; }
  .gallery-card figcaption div { display: grid; gap: 4px; }
  .agent-entry { grid-template-columns: 1fr; gap: 4px; }
  .agent-flow-head { grid-template-columns: 1fr; gap: 5px; }
  .agent-flow-row { grid-template-columns: 29px 1fr; gap: 10px 13px; padding-inline: 0; }
  .flow-state { grid-column: 2; justify-self: start; }
  .local-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .install-command { margin-top: 0; }
  .command-foot { align-items: flex-start; flex-wrap: wrap; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 33px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; gap: 7px; }
}
