/* =====================================================================
   BAD MONKEY · LOOK AND FEEL
   One stylesheet for every Bad Monkey page. Brutalist cubicle wall:
   cream paper, ink borders, hard offset shadows, graph paper in four
   colours, mono kickers, and yellow post-it notes.

   CONTENTS
     0. Design tokens (colours, fonts, shadows)          -> :root
     1. Core: layout, header, hero, buttons, rooms,
        approach band, use cases, CTA, footer             (from the original homepage)
     2. Platform components: page hero, bands, boxes,
        platform stack, terminal, console mock, stats,
        tables, timeline, people, docs links
     3. Cubicle wall: graph paper + post-it notes
     4. Diagrams: 3-layer platform, Agents Everywhere, P2P mesh

   Fonts (load in <head>): DM Mono, DM Sans, Space Grotesk (Google Fonts)
   ===================================================================== */

/* ---------- 0. Design tokens ---------- */
:root {
  /* ink + paper */
  --ink: #22242b;
  --ink-2: #282833;
  --paper: #f5f3ec;
  --card: #fcfbf7;
  --muted: #60616b;
  /* brand accents */
  --purple: #80738f;
  --lav: #d8d0e6;
  --lav2: #eae5f1;
  --mint: #82dbb5;
  --green: #53765c;
  --postit: #f2e9b8;
  /* graph paper: background / grid line */
  --paper-lav-bg: #ece7f1;    --paper-lav-line: #ddd5e6;
  --paper-green-bg: #e8ede3;  --paper-green-line: #d6dfd1;
  --paper-slate-bg: #e4e7ea;  --paper-slate-line: #d3d8dd;
  --paper-yellow-bg: #f6f1da; --paper-yellow-line: #e9e0b9;
  --grid: 26px;
  /* shadow */
  --shadow: 6px 7px 0 #292832;
  /* type */
  --mono: 'DM Mono', 'Courier New', monospace;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Space Grotesk', Arial, sans-serif;
}

/* =====================================================================
   1. CORE
   ===================================================================== */
:root {
  --ink: #22242b;
  --muted: #60616b;
  --paper: #f5f3ec;
  --lav: #d8d0e6;
  --lav2: #eae5f1;
  --line: #b7afc1;
  --lime: #d7eac1;
  --green: #53765c;
  --mint: #adf2dc;
  --shadow: 6px 7px 0 #292832;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Space Grotesk', Arial, sans-serif
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased
}

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

button {
  font: inherit
}

.wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding-left: max(54px, env(safe-area-inset-left, 0px));
  padding-right: max(54px, env(safe-area-inset-right, 0px))
}

.topbar {
  border-bottom: 1px solid #d9d4da;
  background: #faf9f5;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap
}

.mark {
  width: 46px;
  height: 46px;
  flex: none
}

.brand-text {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1.2px
}

.brand-text span {
  font-size: 9px;
  display: block;
  letter-spacing: 2px;
  font-family: var(--mono);
  font-weight: 400;
  margin-top: -3px;
  color: #62606b;
  text-transform: uppercase
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 700
}

.navlinks a:hover {
  color: #557d65
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 14px 20px;
  box-shadow: 3px 3px 0 #a8a0b4;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .035em;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  white-space: nowrap
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #a8a0b4
}

.button.light {
  background: #faf8f3;
  color: var(--ink);
  box-shadow: 3px 3px 0 #a8a0b4
}

.button.small {
  padding: 11px 15px
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid #24252a;
  background: #82dbb5;
  display: inline-block
}

.hero {
  padding-top: 63px
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: end;
  gap: 70px;
  padding-bottom: 44px
}

.hero h1 {
  font: 700 clamp(52px, 5.4vw, 89px)/.98 var(--display);
  letter-spacing: -.073em;
  margin: 19px 0 23px;
  max-width: 900px
}

.hero h1 em {
  font-style: normal;
  color: #80738f
}

.hero-copy {
  font-size: 18px;
  line-height: 1.65;
  max-width: 480px;
  color: #52515b;
  padding-bottom: 6px
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 27px
}

.hero-art {
  position: relative;
  border-top: 2px solid #292832;
  border-bottom: 2px solid #292832;
  background: #d8d0e6;
  overflow: hidden
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto
}

.hero-art::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 244, 238, .13), transparent 18%, transparent 82%, rgba(246, 244, 238, .1))
}

.art-label {
  position: absolute;
  bottom: 17px;
  right: 25px;
  z-index: 1;
  font: 10px var(--mono);
  background: #f9f7f1d9;
  padding: 8px 11px;
  border: 1px solid #90879d
}

.strip {
  border-bottom: 1px solid #bfb9c7;
  background: #e6e2e9
}

.strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px
}

.strip strong {
  font: 600 11px var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase
}

.strip small {
  font: 11px var(--mono);
  color: #716c79
}

.tiny-facts {
  display: flex;
  gap: 30px
}

.tiny-facts span {
  font: 11px var(--mono);
  white-space: nowrap
}

.tiny-facts b {
  color: #53775e
}

.section {
  padding: 105px 0
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 36px
}

.section-title h2 {
  font: 700 clamp(39px, 4vw, 64px)/1.04 var(--display);
  letter-spacing: -.065em;
  margin: 13px 0 0
}

.section-title p {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.65;
  color: #686670;
  margin: 0
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px
}

.product {
  border: 1.5px solid #85818d;
  background: #fcfbf7;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .2s, box-shadow .2s
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 6px 7px 0 #a79caf
}

.product-visual {
  height: 242px;
  border-bottom: 1.5px solid #85818d;
  position: relative;
  overflow: hidden;
  background: #e7e1ed
}

.product-visual svg {
  display: block;
  width: 100%;
  height: 100%
}

.product:nth-child(2) .product-visual {
  background: #e5ebdf
}

.product:nth-child(3) .product-visual {
  background: #e4e6e8
}

.visual-tag {
  position: absolute;
  left: 17px;
  top: 16px;
  background: #fbfaf6;
  border: 1px solid #77727f;
  font: 10px var(--mono);
  padding: 7px 10px;
  z-index: 1
}

.product-body {
  padding: 25px 27px 26px;
  flex: 1;
  display: flex;
  flex-direction: column
}

.product-number {
  font: 11px var(--mono);
  color: #827c8b;
  margin-bottom: 12px
}

.product h3 {
  font: 700 32px var(--display);
  letter-spacing: -.055em;
  margin: 0 0 12px
}

.product p {
  font-size: 14px;
  color: #64616c;
  line-height: 1.68;
  margin: 0 0 22px;
  flex: 1
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 23px
}

.chips span {
  font: 10px var(--mono);
  border: 1px solid #d0ccd3;
  padding: 6px 8px;
  background: #f6f4f2;
  color: #55525d
}

.product-link {
  border-top: 1px solid #d6d2d9;
  padding-top: 17px;
  font-size: 12px;
  letter-spacing: .025em;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.product-link span {
  font-size: 19px
}

.approach {
  background: #282833;
  color: #f7f4ec;
  position: relative;
  overflow: hidden
}

.approach::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(#d1c7dc 1px, transparent 1px), linear-gradient(90deg, #d1c7dc 1px, transparent 1px);
  background-size: 30px 30px
}

.approach-grid {
  position: relative;
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  align-items: center;
  gap: 90px
}

.approach h2 {
  font: 700 clamp(40px, 4.5vw, 70px)/1.04 var(--display);
  letter-spacing: -.06em;
  margin: 20px 0
}

.approach h2 span {
  color: #b5a5ca
}

.approach p {
  color: #d1ced6;
  line-height: 1.8;
  font-size: 16px;
  max-width: 510px
}

.pillars {
  display: grid;
  gap: 13px
}

.pillar {
  display: flex;
  gap: 19px;
  align-items: center;
  padding: 19px 23px;
  background: #373743;
  border: 1px solid #6c6676
}

.pillar-index {
  font: 12px var(--mono);
  color: #96e5c8
}

.pillar strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px
}

.pillar small {
  color: #bbb9c4;
  font-size: 12px
}

.use-cases {
  padding: 100px 0
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px
}

.case {
  border: 1px solid #b5b0bd;
  background: #efebf2;
  padding: 25px 20px;
  min-height: 176px;
  display: flex;
  flex-direction: column
}

.case .symbol {
  font-size: 29px;
  margin-bottom: 22px
}

.case strong {
  font-size: 16px;
  margin-bottom: 8px
}

.case small {
  font-size: 12px;
  line-height: 1.5;
  color: #726e7b
}

.cta {
  background: #dcd6e6;
  border-top: 1px solid #a7a0b0;
  border-bottom: 1px solid #a7a0b0;
  padding: 75px 0
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px
}

.cta h2 {
  font: 700 clamp(35px, 4vw, 63px)/1.08 var(--display);
  letter-spacing: -.06em;
  margin: 13px 0
}

.cta p {
  font-size: 16px;
  color: #5f5c68;
  margin: 0
}

.footer {
  padding: 33px 0;
  background: #f8f6f1
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center
}

.footer small {
  font: 11px var(--mono);
  color: #75717b
}

.footer-links {
  display: flex;
  gap: 25px;
  font: 11px var(--mono)
}

.footer a:hover {
  text-decoration: underline
}

#products,
#approach,
#applications {
  scroll-margin-top: 100px
}

@media(max-width:1000px) {
  .wrap {
    padding-left: max(30px, env(safe-area-inset-left, 0px));
    padding-right: max(30px, env(safe-area-inset-right, 0px))
  }

  .hero-grid {
    gap: 30px
  }

  .navlinks {
    gap: 16px
  }

  .product-grid {
    gap: 14px
  }

  .product-body {
    padding: 22px 18px
  }

  .product h3 {
    font-size: 27px
  }

  .product-visual {
    height: 205px
  }

  .approach-grid {
    gap: 36px
  }
}

@media(max-width:740px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px))
  }

  .nav {
    height: 68px
  }

  .mark {
    width: 38px;
    height: 38px
  }

  .brand-text {
    font-size: 22px
  }

  .navlinks {
    display: none
  }

  .hero {
    padding-top: 52px
  }

  .hero-grid {
    display: block;
    padding-bottom: 35px
  }

  .hero h1 {
    font-size: clamp(46px, 11vw, 72px)
  }

  .hero-copy {
    font-size: 16px;
    margin-top: 22px
  }

  .hero-art img {
    width: 195%;
    max-width: none;
    transform: translateX(-24%)
  }

  .art-label {
    display: none
  }

  .strip-inner {
    align-items: flex-start;
    flex-direction: column
  }

  .tiny-facts {
    gap: 12px;
    flex-wrap: wrap
  }

  .section,
  .use-cases {
    padding: 65px 0
  }

  .section-title {
    display: block
  }

  .section-title p {
    margin-top: 17px
  }

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

  .product-visual {
    height: 260px
  }

  .product h3 {
    font-size: 32px
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

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

  .cta-grid {
    display: block
  }

  .cta-grid .button {
    margin-top: 25px
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column
  }

  .footer-links {
    flex-wrap: wrap
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  * {
    transition: none !important
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: #faf9f5
}

:focus-visible {
  outline: 2px solid #53765c;
  outline-offset: 3px
}

.mark {
  display: block
}

/* ---------- floor directory ---------- */
.directory {
  background: #282833;
  color: #ece8f1;
  border: 2px solid #292832;
  box-shadow: var(--shadow);
  padding: 20px 26px 18px;
  margin-bottom: 22px;
  font-family: var(--mono)
}

.directory-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .14em;
  color: #a99fb8;
  border-bottom: 1px solid #4a4656;
  padding-bottom: 11px;
  margin-bottom: 6px
}

.directory a {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px dashed #3f3b4a
}

.directory a:last-child {
  border-bottom: 0
}

.directory a::after {
  content: "↓";
  color: #96e5c8
}

.directory .room {
  color: #96e5c8
}

.directory .dots {
  border-bottom: 1px dotted #6c6676;
  transform: translateY(-4px);
  min-width: 20px
}

.directory a:hover .name {
  color: #adf2dc
}

/* ---------- departments ---------- */
.depts {
  display: grid;
  gap: 0
}

.dept {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 62px;
  border-top: 1.5px solid #c9c3cf;
  scroll-margin-top: 90px
}

.dept:first-child {
  border-top: 0;
  padding-top: 46px
}

.dept:last-child {
  padding-bottom: 0
}

.dept.flip .dept-visual {
  order: 2
}

.dept-visual {
  position: relative;
  border: 2px solid #292832;
  background: #ece7f1;
  background-image: linear-gradient(#ddd5e6 1px, transparent 1px), linear-gradient(90deg, #ddd5e6 1px, transparent 1px);
  background-size: 26px 26px;
  box-shadow: var(--shadow);
  overflow: hidden
}

.dept:nth-child(2) .dept-visual {
  background-color: #e8ede3;
  background-image: linear-gradient(#d6dfd1 1px, transparent 1px), linear-gradient(90deg, #d6dfd1 1px, transparent 1px)
}

.dept:nth-child(3) .dept-visual {
  background-color: #e4e7ea;
  background-image: linear-gradient(#d3d8dd 1px, transparent 1px), linear-gradient(90deg, #d3d8dd 1px, transparent 1px)
}

.dept-visual svg {
  display: block;
  width: 100%;
  height: auto
}

.placard {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  display: flex;
  border: 1.5px solid #292832;
  background: #fbfaf6;
  font: 10px var(--mono);
  letter-spacing: .08em
}

.placard b {
  background: #292832;
  color: #adf2dc;
  padding: 7px 9px;
  font-weight: 500
}

.placard span {
  padding: 7px 10px
}

.live {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font: 10px var(--mono);
  letter-spacing: .08em;
  background: #f9f7f1e6;
  border: 1px solid #90879d;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 7px
}

.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fbf8f;
  box-shadow: 0 0 0 3px #3fbf8f33;
  animation: blink 1.6s infinite
}

@keyframes blink {
  50% {
    opacity: .25
  }
}

.dept-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.dept-kicker {
  font: 11px var(--mono);
  letter-spacing: .12em;
  color: #827c8b;
  text-transform: uppercase
}

.dept h3 {
  font: 700 clamp(40px, 4vw, 60px)/.98 var(--display);
  letter-spacing: -.06em;
  margin: 0
}

.tagline {
  font: 600 21px/1.3 var(--display);
  letter-spacing: -.025em;
  color: #80738f;
  margin: -6px 0 0;
  text-wrap: balance
}

.dept-body>p {
  font-size: 15.5px;
  line-height: 1.7;
  color: #55535e;
  margin: 0;
  max-width: 56ch
}

.spec {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  border-top: 1.5px solid #292832;
  border-bottom: 1.5px solid #292832;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums
}

.spec dt,
.spec dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px dashed #cfc9d4
}

.spec dt {
  color: #7d7787;
  letter-spacing: .08em;
  padding-right: 24px;
  text-transform: uppercase
}

.spec dd {
  font-weight: 500;
  color: var(--ink);
  text-align: right
}

.spec dt:nth-last-of-type(1),
.spec dd:nth-last-of-type(1) {
  border-bottom: 0
}

.spec dd b {
  color: #3f7a5e;
  font-weight: 500
}

.memo {
  position: relative;
  align-self: flex-start;
  max-width: 400px;
  background: #f2e9b8;
  border: 1px solid #c9bb7a;
  padding: 15px 18px 14px;
  font: 13px/1.5 var(--mono);
  color: #4a4430;
  transform: rotate(-1.2deg);
  box-shadow: 3px 4px 0 #d8cf9f
}

.memo::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 62px;
  height: 17px;
  margin-left: -31px;
  background: #e9e3d2cc;
  border: 1px solid #cfc6ae;
  transform: rotate(2deg)
}

.memo small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .14em;
  color: #8b8160;
  margin-bottom: 5px
}

.dept .chips {
  margin: 0
}

.dept-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid #d9d4da
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.footer-brand .mark {
  width: 34px;
  height: 34px
}

.footer-brand strong {
  font: 700 18px var(--display);
  letter-spacing: -.04em
}

@media(max-width:1000px) {
  .dept {
    gap: 32px
  }

  .tagline {
    font-size: 18px
  }
}

@media(max-width:820px) {

  .dept,
  .dept.flip {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 44px
  }

  .dept.flip .dept-visual {
    order: 0
  }

  .directory a {
    grid-template-columns: auto 1fr auto auto;
    font-size: 12px
  }

  .directory .dots {
    display: none
  }
}

@media(max-width:740px) {
  .directory {
    padding: 16px 16px 12px
  }

  .directory-head span:last-child {
    display: none
  }

  .placard {
    left: 10px;
    top: 10px
  }

  .placard span {
    display: none
  }

  .live {
    display: none
  }

  .memo {
    max-width: 100%
  }
}

@media(max-width:520px) {
  .brand-text span {
    display: none
  }

  .nav .button.small {
    padding: 10px 12px
  }
}

@media(max-width:460px) {
  .directory a {
    grid-template-columns: auto 1fr;
    gap: 4px 12px
  }

  .directory a::after {
    display: none
  }

  .directory .prod {
    grid-column: 2;
    color: #a99fb8;
    font-size: 11px
  }
}

@media(prefers-reduced-motion:reduce) {
  .live::before {
    animation: none
  }
}


.product-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0
}

.product-heading h3 {
  flex: 0 1 auto;
  min-width: 0
}

.product-heading-logo {
  display: block;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  object-fit: contain
}

.product-heading-logo--swarm {
  mix-blend-mode: multiply
}

@media(max-width:600px) {
  .product-heading {
    gap: 12px
  }

  .product-heading-logo {
    flex-basis: 56px;
    width: 56px;
    height: 56px
  }
}

/* =====================================================================
   2-4. PLATFORM COMPONENTS, CUBICLE WALL, DIAGRAMS
   ===================================================================== */
/* ===== Agentic platform additions (shared by Index, Product, Technology, Company) ===== */
.navlinks a[aria-current="page"] {
  color: #53765c;
  text-decoration: underline;
  text-underline-offset: 6px
}

.brand img.mark {
  width: 46px;
  height: 46px
}

.lede {
  font-size: 18px;
  line-height: 1.65;
  color: #52515b;
  max-width: 640px
}

.page-hero {
  padding: 70px 0 40px
}

.page-hero h1 {
  font: 700 clamp(46px, 5vw, 82px)/1 var(--display);
  letter-spacing: -.07em;
  margin: 18px 0 22px;
  max-width: 1000px
}

.page-hero h1 em {
  font-style: normal;
  color: #80738f
}

.page-hero .hero-actions {
  margin-top: 26px
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px
}

.subnav a {
  font: 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid #b7afc1;
  background: #fcfbf7;
  padding: 8px 12px
}

.subnav a:hover {
  background: #e6e2e9
}

.band {
  padding: 90px 0;
  border-top: 1.5px solid #c9c3cf;
  scroll-margin-top: 90px
}

.band.alt {
  background: #efebf2
}

.band.dark {
  background: #282833;
  color: #f7f4ec;
  border-top: 0;
  position: relative;
  overflow: hidden
}

.band.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image: linear-gradient(#d1c7dc 1px, transparent 1px), linear-gradient(90deg, #d1c7dc 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none
}

.band.dark .wrap {
  position: relative
}

.band.dark .section-title p,
.band.dark p {
  color: #d1ced6
}

.band.dark .eyebrow::before {
  border-color: #f7f4ec
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px
}

.box {
  border: 1.5px solid #292832;
  background: #fcfbf7;
  padding: 26px 26px 24px;
  box-shadow: 6px 7px 0 #292832;
  min-width: 0
}

.box.lav {
  background: #eae5f1
}

.box.ink {
  background: #282833;
  color: #f7f4ec;
  box-shadow: 6px 7px 0 #82dbb5
}

.box.ink p,
.box.ink li {
  color: #d1ced6
}

.box.soft {
  box-shadow: none;
  border-color: #b5b0bd
}

.box h3 {
  font: 700 26px/1.1 var(--display);
  letter-spacing: -.045em;
  margin: 6px 0 12px
}

.box h4 {
  font: 700 18px/1.2 var(--display);
  letter-spacing: -.03em;
  margin: 4px 0 8px
}

.box p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #64616c;
  margin: 0 0 12px
}

.box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #55525d
}

.box .k {
  font: 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #80738f
}

.box.ink .k {
  color: #96e5c8
}

.idx {
  font: 12px var(--mono);
  color: #3f7a5e
}

.band.dark .idx,
.box.ink .idx {
  color: #96e5c8
}

.box .more {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .03em;
  border-bottom: 1.5px solid currentColor
}

/* platform stack */
.stack {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 18px;
  align-items: stretch
}

.layers {
  display: grid;
  gap: 12px
}

.layer {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1.5px solid #292832;
  background: #fcfbf7;
  padding: 18px 20px
}

.layer.hl {
  background: #eae5f1
}

.layer .idx {
  align-self: start;
  padding-top: 4px
}

.layer strong {
  display: block;
  font: 700 22px var(--display);
  letter-spacing: -.04em
}

.layer small {
  display: block;
  color: #64616c;
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 3px
}

.layer .chips {
  margin: 0;
  justify-content: flex-end;
  max-width: 300px
}

.pillar-v {
  border: 1.5px solid #292832;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 6px 7px 0 #292832;
  background: #fcfbf7
}

.pillar-v.ink {
  background: #282833;
  color: #f7f4ec;
  box-shadow: 6px 7px 0 #82dbb5
}

.pillar-v strong {
  font: 700 21px/1.1 var(--display);
  letter-spacing: -.04em
}

.pillar-v .k {
  font: 10px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #80738f
}

.pillar-v.ink .k {
  color: #96e5c8
}

.pillar-v ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 2;
  color: #55525d
}

.pillar-v.ink ul {
  color: #d1ced6
}

/* legacy -> agent map */
.map {
  display: grid;
  gap: 12px
}

.map-row {
  display: grid;
  grid-template-columns: 1fr 54px 1.3fr;
  gap: 16px;
  align-items: stretch
}

.map-was {
  border: 1.5px dashed #85818d;
  background: #efede6;
  padding: 16px 18px;
  color: #5f5c68
}

.map-now {
  border: 1.5px solid #292832;
  background: #eae5f1;
  padding: 16px 18px;
  box-shadow: 4px 5px 0 #292832
}

.map-was strong,
.map-now strong {
  display: block;
  font: 700 18px var(--display);
  letter-spacing: -.03em;
  margin-bottom: 4px
}

.map-was small,
.map-now small {
  font-size: 13.5px;
  line-height: 1.5;
  color: #64616c
}

.map-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 26px var(--mono);
  color: #3f7a5e
}

.map-head {
  display: grid;
  grid-template-columns: 1fr 54px 1.3fr;
  gap: 16px;
  font: 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #827c8b
}

.map-head span:last-child {
  color: #3f7a5e
}

/* catalog */
.catalog .box ul {
  list-style: "□  ";
  padding-left: 20px
}

/* terminal */
.term {
  background: #282833;
  color: #f5f3ec;
  border: 1.5px solid #292832;
  box-shadow: 6px 7px 0 #82dbb5;
  font: 13.5px/1.75 var(--mono);
  overflow: auto
}

.term-head {
  background: #22242b;
  color: #dcd6e6;
  font-size: 11px;
  padding: 9px 16px;
  letter-spacing: .06em
}

.term pre {
  margin: 0;
  padding: 18px 22px;
  font: inherit;
  white-space: pre
}

.term .ok {
  color: #82dbb5
}

.term .dim {
  color: #b5a5ca
}

.steps {
  display: grid;
  gap: 18px;
  counter-reset: s
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px
}

.step strong {
  display: block;
  font: 700 18px var(--display);
  letter-spacing: -.03em;
  margin-bottom: 4px
}

.step p {
  margin: 0;
  color: #64616c;
  font-size: 14.5px;
  line-height: 1.6
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px
}

.langs span {
  font: 11px var(--mono);
  border: 1px solid #b7afc1;
  background: #fcfbf7;
  padding: 7px 11px
}

/* console mock */
.console {
  border: 1.5px solid #292832;
  background: #fcfbf7;
  box-shadow: 6px 7px 0 #292832;
  min-width: 0
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #282833;
  color: #f5f3ec;
  padding: 9px 14px;
  font: 10.5px var(--mono);
  letter-spacing: .08em;
  flex-wrap: wrap
}

.console-bar img {
  width: 22px;
  height: 22px
}

.console-bar b {
  margin-right: auto
}

.console-bar span {
  padding: 4px 9px;
  color: #dcd6e6
}

.console-bar span.on {
  background: #82dbb5;
  color: #22242b
}

.console-body {
  padding: 18px
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px
}

.tile {
  border: 1px solid #d0ccd3;
  background: #f2f0ea;
  padding: 10px 12px
}

.tile b {
  display: block;
  font: 700 22px var(--display);
  letter-spacing: -.03em
}

.tile small {
  font: 9.5px var(--mono);
  letter-spacing: .08em;
  color: #62606b;
  text-transform: uppercase
}

.tile.hl {
  background: #eae5f1
}

.ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px
}

.ctable th {
  font: 9.5px var(--mono);
  letter-spacing: .08em;
  text-align: left;
  color: #62606b;
  padding: 8px;
  border-bottom: 1.5px solid #292832
}

.ctable td {
  padding: 8px;
  border-bottom: 1px solid #e1dde4
}

.ctable td:first-child {
  font-family: var(--mono)
}

.st-ok {
  color: #3f7a5e
}

.st-warn {
  color: #80738f
}

.trace {
  display: grid;
  gap: 9px
}

.span {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  align-items: center
}

.span small {
  display: block;
  font: 9.5px var(--mono);
  color: #62606b
}

.span code {
  font: 12px var(--mono)
}

.span .track {
  position: relative;
  height: 22px;
  background: #f0eee8
}

.span .bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 1px solid #292832
}

.prov {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  align-items: center
}

.prov b {
  font: 10px var(--mono);
  color: #3f7a5e;
  letter-spacing: .08em;
  margin-right: 6px
}

.prov span {
  font: 10px var(--mono);
  border: 1px solid #d0ccd3;
  background: #f6f4f2;
  padding: 5px 8px;
  color: #55525d
}

.bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
  height: 200px;
  padding: 10px 4px 0;
  border-bottom: 1.5px solid #292832
}

.bars div {
  background: #80738f;
  border: 1px solid #292832;
  position: relative
}

.bars div span {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  text-align: center;
  font: 11px var(--mono);
  color: #22242b
}

.bar-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  font: 10.5px var(--mono);
  color: #62606b;
  text-align: center;
  margin-top: 8px
}

.note {
  font: 10.5px var(--mono);
  color: #75717b;
  margin-top: 12px
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px
}

.stat b {
  display: block;
  font: 700 34px/1 var(--display);
  letter-spacing: -.05em
}

.stat small {
  font: 10.5px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #62606b
}

.figure {
  border: 1.5px solid #292832;
  background: #fff;
  padding: 14px;
  box-shadow: 6px 7px 0 #292832
}

.figure img {
  display: block;
  width: 100%;
  height: auto
}

.figure figcaption {
  font: 10.5px var(--mono);
  color: #62606b;
  margin-top: 10px;
  letter-spacing: .04em
}

figure {
  margin: 0
}

/* table */
.score {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fcfbf7;
  border: 1.5px solid #292832
}

.score th,
.score td {
  padding: 12px 14px;
  border: 1px solid #c9c3cf;
  text-align: left;
  vertical-align: top
}

.score thead th {
  background: #dcd6e6;
  font-size: 13px
}

.score thead th:last-child {
  background: #282833;
  color: #f5f3ec
}

.score td:first-child {
  font-weight: 700
}

.score td:last-child {
  background: #e7f6ef;
  color: #3f7a5e;
  font-weight: 700
}

.table-scroll {
  overflow-x: auto
}

/* timeline */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid #292832;
  margin-left: 8px
}

.tl {
  position: relative;
  padding: 0 0 30px 34px
}

.tl::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: #82dbb5;
  border: 2px solid #292832
}

.tl.now::before {
  background: #80738f
}

.tl .when {
  font: 11px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #80738f
}

.tl strong {
  display: block;
  font: 700 22px var(--display);
  letter-spacing: -.04em;
  margin: 4px 0 6px
}

.tl p {
  margin: 0;
  color: #64616c;
  font-size: 15px;
  line-height: 1.65;
  max-width: 640px
}

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px
}

.person {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start
}

.avatar {
  width: 96px;
  height: 96px;
  border: 1.5px solid #292832;
  background: #eae5f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 34px var(--display);
  letter-spacing: -.04em;
  box-shadow: 4px 5px 0 #292832
}

.person strong {
  display: block;
  font: 700 24px var(--display);
  letter-spacing: -.04em
}

.person .role {
  font: 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #3f7a5e;
  margin: 4px 0 10px
}

.person p {
  margin: 0 0 8px;
  color: #64616c;
  font-size: 14.5px;
  line-height: 1.65
}

.person a {
  font: 12px var(--mono);
  border-bottom: 1px solid currentColor
}

.docs-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.docs-links a {
  display: block;
  border: 1.5px solid #292832;
  background: #fcfbf7;
  padding: 18px;
  transition: transform .15s, box-shadow .15s
}

.docs-links a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #a8a0b4
}

.docs-links b {
  display: block;
  font: 700 17px var(--display);
  letter-spacing: -.03em;
  margin-bottom: 4px
}

.docs-links small {
  color: #64616c;
  font-size: 13px;
  line-height: 1.5
}

.door .product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px
}

.door .product-visual img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain
}

.mt0 {
  margin-top: 0
}

.mt2 {
  margin-top: 28px
}

.mt3 {
  margin-top: 44px
}

@media(max-width:1000px) {
  .stack {
    grid-template-columns: 1fr 1fr
  }

  .layers {
    grid-column: 1/-1
  }

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

  .layer {
    grid-template-columns: 44px 1fr
  }

  .layer .chips {
    display: none
  }
}

@media(max-width:740px) {

  .grid2,
  .grid3,
  .grid4,
  .people,
  .docs-links {
    grid-template-columns: 1fr
  }

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

  .map-row,
  .map-head {
    grid-template-columns: 1fr
  }

  .map-arrow {
    transform: rotate(90deg);
    height: 30px
  }

  .map-head span:nth-child(2) {
    display: none
  }

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

  .span {
    grid-template-columns: 110px 1fr
  }

  .band {
    padding: 60px 0
  }

  .page-hero {
    padding: 48px 0 24px
  }

  .person {
    grid-template-columns: 72px 1fr
  }

  .avatar {
    width: 72px;
    height: 72px;
    font-size: 26px
  }

  .stats {
    grid-template-columns: repeat(3, 1fr)
  }

  .stat b {
    font-size: 26px
  }

  .ctable {
    font-size: 11.5px
  }

  .ctable th:nth-child(3),
  .ctable td:nth-child(3) {
    display: none
  }
}

.band.dark p {
  line-height: 1.75;
  font-size: 16px
}

.box p.note,
.box .note {
  font: 10.5px/1.6 var(--mono);
  color: #75717b
}

/* simple 3-layer platform diagram (index) */
.arch3 {
  display: grid;
  grid-template-columns: 1fr 92px 92px;
  gap: 18px;
  border: 1.5px solid #85818d;
  background: #fcfbf7;
  padding: 22px
}

.arch3-layers {
  display: grid;
  gap: 14px
}

.arch3-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  border: 1.5px solid #292832;
  background: #faf9f5;
  padding: 20px 22px;
  min-height: 118px
}

.arch3-row .idx {
  padding-top: 6px
}

.arch3-row strong {
  display: block;
  font: 700 24px var(--display);
  letter-spacing: -.04em
}

.arch3-row small {
  display: block;
  color: #64616c;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px
}

.arch3-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px
}

.arch3-parts span {
  border: 1.5px solid #292832;
  background: #fff;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600
}

.arch3-col {
  position: relative;
  border: 1.5px solid #292832;
  background: #faf9f5;
  display: flex;
  align-items: center;
  justify-content: center
}

.arch3-col span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 18px var(--display);
  letter-spacing: -.01em;
  white-space: nowrap
}

.arch3-col em {
  position: absolute;
  right: -1.5px;
  bottom: -1.5px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: normal 10px var(--mono);
  letter-spacing: .06em;
  background: #82dbb5;
  border: 1.5px solid #292832;
  padding: 10px 4px
}

@media(max-width:740px) {
  .arch3 {
    grid-template-columns: 1fr;
    padding: 14px
  }

  .arch3-row {
    grid-template-columns: 40px 1fr;
    min-height: 0;
    padding: 16px
  }

  .arch3-col {
    padding: 16px;
    justify-content: flex-start
  }

  .arch3-col span,
  .arch3-col em {
    writing-mode: horizontal-tb;
    transform: none
  }

  .arch3-col {
    gap: 10px;
    flex-wrap: wrap
  }

  .arch3-col em {
    position: static;
    padding: 4px 8px
  }
}

/* ===== Cubicle wall: graph paper + post-it notes ===== */
.paper-lav,
.band.lav,
.arch3 {
  background-color: #ece7f1;
  background-image: linear-gradient(#ddd5e6 1px, transparent 1px), linear-gradient(90deg, #ddd5e6 1px, transparent 1px);
  background-size: 26px 26px
}

.paper-green,
.band.green {
  background-color: #e8ede3;
  background-image: linear-gradient(#d6dfd1 1px, transparent 1px), linear-gradient(90deg, #d6dfd1 1px, transparent 1px);
  background-size: 26px 26px
}

.paper-slate,
.band.slate {
  background-color: #e4e7ea;
  background-image: linear-gradient(#d3d8dd 1px, transparent 1px), linear-gradient(90deg, #d3d8dd 1px, transparent 1px);
  background-size: 26px 26px
}

.paper-yellow,
.band.yellow {
  background-color: #f6f1da;
  background-image: linear-gradient(#e9e0b9 1px, transparent 1px), linear-gradient(90deg, #e9e0b9 1px, transparent 1px);
  background-size: 26px 26px
}

.band.lav,
.band.green,
.band.slate,
.band.yellow {
  border-top: 1.5px solid #c9c3cf
}

.arch3 {
  border: 2px solid #292832;
  box-shadow: var(--shadow)
}

/* pinned sheets: diagrams sit on paper like printouts on a cubicle wall */
.figure {
  border: 2px solid #292832;
  padding: 26px;
  box-shadow: var(--shadow)
}

.figure img {
  background: #fff;
  border: 1px solid #b7afc1;
  box-shadow: 2px 3px 0 #c9c3cf
}

.figure.paper-lav,
.figure.paper-green,
.figure.paper-slate,
.figure.paper-yellow {
  background-size: 26px 26px
}

.pinned {
  position: relative
}

.pinned::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 62px;
  height: 18px;
  margin-left: -31px;
  background: #e9e3d2cc;
  border: 1px solid #cfc6ae;
  transform: rotate(-2deg);
  z-index: 2
}

.dept-visual.paper-lav,
.dept-visual.paper-green,
.dept-visual.paper-slate,
.dept-visual.paper-yellow {
  background-size: 26px 26px
}

.dept-visual .sheet {
  display: block;
  width: 100%;
  margin-top: 40px;
  background: #fff;
  border: 1px solid #b7afc1;
  box-shadow: 2px 3px 0 #c9c3cf
}

.door:nth-child(1) .product-visual {
  background-color: #ece7f1;
  background-image: linear-gradient(#ddd5e6 1px, transparent 1px), linear-gradient(90deg, #ddd5e6 1px, transparent 1px);
  background-size: 26px 26px
}

.door:nth-child(2) .product-visual {
  background-color: #e8ede3;
  background-image: linear-gradient(#d6dfd1 1px, transparent 1px), linear-gradient(90deg, #d6dfd1 1px, transparent 1px);
  background-size: 26px 26px
}

.door:nth-child(3) .product-visual {
  background-color: #f6f1da;
  background-image: linear-gradient(#e9e0b9 1px, transparent 1px), linear-gradient(90deg, #e9e0b9 1px, transparent 1px);
  background-size: 26px 26px
}

.door .product-visual img {
  background: #fff;
  border: 1px solid #b7afc1;
  padding: 6px
}

.door:nth-child(3) .product-visual img {
  background: transparent;
  border: 0;
  padding: 0
}

.console-body {
  background-color: #f4f5f6;
  background-image: linear-gradient(#e6e9ec 1px, transparent 1px), linear-gradient(90deg, #e6e9ec 1px, transparent 1px);
  background-size: 26px 26px
}

.map {
  padding: 26px;
  border: 2px solid #292832;
  box-shadow: var(--shadow);
  background-color: #f6f1da;
  background-image: linear-gradient(#e9e0b9 1px, transparent 1px), linear-gradient(90deg, #e9e0b9 1px, transparent 1px);
  background-size: 26px 26px
}

.map-was {
  background: #fbf8ec
}

.timeline-wrap {
  padding: 30px 30px 6px;
  border: 2px solid #292832;
  box-shadow: var(--shadow);
  background-color: #e8ede3;
  background-image: linear-gradient(#d6dfd1 1px, transparent 1px), linear-gradient(90deg, #d6dfd1 1px, transparent 1px);
  background-size: 26px 26px
}

.avatar {
  background-color: #ece7f1;
  background-image: linear-gradient(#ddd5e6 1px, transparent 1px), linear-gradient(90deg, #ddd5e6 1px, transparent 1px);
  background-size: 13px 13px
}

/* post-it notes */
.memo-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 34px
}

.memo-row.left {
  justify-content: flex-start
}

.memo-row .memo {
  max-width: 380px
}

.memo.tilt-r {
  transform: rotate(1.4deg)
}

.memo.tilt-l {
  transform: rotate(-2deg)
}

.section-title .memo {
  margin-top: 18px;
  max-width: 340px
}

.band.dark .memo {
  color: #4a4430
}

.band.dark .memo small {
  color: #8b8160
}

@media(max-width:740px) {
  .figure {
    padding: 14px
  }

  .map {
    padding: 14px
  }

  .timeline-wrap {
    padding: 20px 16px 2px
  }

  .memo-row,
  .memo-row.left {
    justify-content: center
  }
}

/* ===== HTML diagrams (product page) ===== */
.dgm {
  border: 2px solid #292832;
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative
}

.dgm-tag {
  display: inline-block;
  background: #22242b;
  color: #f5f3ec;
  font: 11px var(--mono);
  letter-spacing: .1em;
  padding: 6px 10px;
  margin-bottom: 22px
}

.dgm-caption {
  font: 13px/1.5 var(--mono);
  text-align: center;
  margin: 22px 0 0;
  color: #22242b
}

.dgm-inner {
  background: #fff;
  border: 1px solid #b7afc1;
  box-shadow: 2px 3px 0 #c9c3cf;
  padding: 24px
}

/* Agents everywhere */
.ae-grid {
  display: grid;
  grid-template-columns: 200px 34px minmax(0, 1fr) 34px 200px;
  align-items: center
}

.ae-link {
  height: 0;
  border-top: 2px solid #22242b;
  position: relative
}

.ae-link::before,
.ae-link::after {
  content: "";
  position: absolute;
  top: -6px;
  border: 5px solid transparent
}

.ae-link::before {
  left: -2px;
  border-right-color: #22242b;
  border-left: 0
}

.ae-link::after {
  right: -2px;
  border-left-color: #22242b;
  border-right: 0
}

.ae-side {
  border: 2px solid #292832;
  box-shadow: 5px 6px 0 #292832;
  padding: 16px;
  align-self: center
}

.ae-side.mcp {
  background: #f6f1da
}

.ae-side.a2a {
  background: #e8ede3
}

.ae-side .t {
  display: inline-block;
  background: #22242b;
  color: #f5f3ec;
  font: 11px var(--mono);
  padding: 4px 8px;
  letter-spacing: .08em
}

.ae-side h5 {
  font: 700 17px/1.2 var(--display);
  letter-spacing: -.02em;
  margin: 12px 0 12px
}

.ae-side p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #62606b;
  margin: 12px 0 0
}

.ae-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px
}

.ae-chips span,
.host .tools span {
  font: 11px var(--mono);
  border: 1.5px solid #22242b;
  background: #fff;
  padding: 4px 8px
}

.ae-remote {
  border: 1.5px dashed #85818d;
  background: #fff;
  padding: 9px
}

.ae-remote small {
  display: block;
  font: 9px var(--mono);
  letter-spacing: .08em;
  color: #62606b;
  margin-bottom: 7px
}

.ae-remote span {
  background: #ece7f1
}

.ae-gw {
  margin-top: 10px;
  background: #22242b;
  color: #82dbb5;
  font: 700 13px var(--mono);
  text-align: center;
  padding: 9px
}

.ae-center {
  display: grid;
  gap: 26px
}

.ae-hosts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.host {
  position: relative;
  border: 2px solid #292832;
  background: #fff;
  box-shadow: 5px 6px 0 #292832
}

.ae-hosts.top .host::after,
.ae-hosts.bottom .host::before {
  content: "";
  position: absolute;
  left: 50%;
  height: 22px;
  border-left: 2px solid #22242b
}

.ae-hosts.top .host::after {
  bottom: -26px
}

.ae-hosts.bottom .host::before {
  top: -26px
}

.host-h {
  background: #ece7f1;
  border-bottom: 2px solid #292832;
  padding: 9px 12px
}

.host-h b {
  display: block;
  font: 700 16px var(--display);
  letter-spacing: -.02em
}

.host-h small {
  display: block;
  font: 10.5px var(--mono);
  color: #62606b;
  margin-top: 2px
}

.host-b {
  padding: 11px 12px;
  display: grid;
  gap: 9px
}

.exist {
  border: 1.5px dashed #85818d;
  background: #f4f2ec;
  padding: 6px 9px;
  font: 12.5px var(--mono)
}

.exist small,
.agent small {
  display: block;
  font: 9px var(--mono);
  letter-spacing: .08em;
  color: #62606b
}

.agent {
  display: flex;
  gap: 9px;
  align-items: center;
  background: #dcd6e6;
  border: 1.5px solid #22242b;
  padding: 7px 9px
}

.agent img {
  width: 26px;
  height: 26px
}

.agent b {
  font-size: 14px
}

.agent small {
  letter-spacing: 0;
  font-size: 10px
}

.host .tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.host .tools span {
  background: #e3f0e6
}

.ae-band {
  background: #22242b;
  color: #dcd6e6;
  padding: 14px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  outline: 1px dashed #82dbb5;
  outline-offset: -5px
}

.ae-band img {
  width: 38px;
  height: 38px
}

.ae-band b {
  display: block;
  font: 700 20px var(--mono);
  color: #82dbb5
}

.ae-band small {
  font: 12px var(--mono)
}

@media(max-width:1100px) {
  .ae-grid {
    grid-template-columns: 1fr
  }

  .ae-link {
    height: 24px;
    width: 0;
    border-top: 0;
    border-left: 2px solid #22242b;
    justify-self: center
  }

  .ae-link::before,
  .ae-link::after {
    display: none
  }

  .ae-side {
    align-self: stretch
  }

  .ae-chips {
    flex-direction: row;
    flex-wrap: wrap
  }
}

@media(max-width:740px) {
  .dgm {
    padding: 12px
  }

  .dgm-inner {
    padding: 12px
  }

  .ae-hosts {
    grid-template-columns: 1fr
  }

  .ae-hosts.top .host::after,
  .ae-hosts.bottom .host::before {
    display: none
  }

  .ae-hosts.top .host:last-child::after,
  .ae-hosts.bottom .host:first-child::before {
    display: block
  }

  .ae-band b {
    font-size: 16px
  }
}

/* P2P mesh: positioned canvas that scales with its width */
.mesh-scroll {
  overflow-x: auto
}

.mesh {
  position: relative;
  container-type: inline-size;
  width: 100%;
  min-width: 860px;
  aspect-ratio: 1540/860
}

.mesh>* {
  position: absolute;
  box-sizing: border-box
}

.mesh .mt {
  line-height: 1.25;
  white-space: normal
}

.mesh .ml {
  border: 0
}

@media(max-width:740px) {
  .mesh-scroll::after {
    content: "scroll →";
    display: block;
    font: 10px var(--mono);
    color: #75717b;
    margin-top: 6px
  }
}

/* index banner: full width, half the height (crops top and bottom) */
.hero-art.short img {
  aspect-ratio: 3584/592;
  object-fit: cover;
  object-position: 50% 50%
}

@media(max-width:740px) {
  .hero-art.short img {
    width: 100%;
    transform: none;
    aspect-ratio: 3584/900
  }
}
