/* =====================================================================
   technology.css: hand-made 2026-11-30 for technology.html.
   1. .kitx: a scoping container for the embedded agent-kit sections. It carries the kit's design
      tokens and only the kit.css + agent-kit rules those four sections use, each one prefixed with
      .kitx, so kit.css itself is never loaded and the company-site header, footer and type stay as
      they are. Where a company-site rule would leak into a kit section (.band, .box, .hero h1,
      .chips, .lede, .scene-head ...), the scoped rule wins on specificity or order and resets it.
      Layout width stays the company site's .wrap, so the kit sections line up with the rest.
   2. Page pieces: the fit notes between the kit sections, the comparison table, small helpers.
   ===================================================================== */

/* ---------- 1. kit scope ---------- */
.kitx { --ink: #22242b; --ink2: #292832; --paper: #f5f3ec; --card: #fcfbf7; --muted: #60616b; --purple: #80738f; --lav: #d8d0e6; --lav2: #eae5f1; --mint: #82dbb5; --mint2: #adf2dc; --green: #53765c; --postit: #f2e9b8; --red: #c4553f;
  --mono: 'DM Mono', 'Courier New', monospace; --sans: 'DM Sans', Arial, sans-serif; --display: 'Space Grotesk', Arial, sans-serif; --shadow: 6px 7px 0 #292832;
  display: block; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans) }
.kitx a { color: inherit; text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px }

.kitx .eyebrow { display: flex; align-items: center; gap: 10px; font: 13px var(--mono); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink) }
.kitx .eyebrow::before { content: ''; width: 11px; height: 11px; background: var(--mint); border: 1.2px solid var(--ink2); flex: none; display: block }
.kitx h1 { font: 700 clamp(36px, 5vw, 62px)/1.03 var(--display); letter-spacing: -.035em; margin: 0 0 16px; max-width: none }
.kitx h1 em, .kitx h2 em { font-style: normal; color: var(--purple) }
.kitx h2 { font: 700 clamp(26px, 3.4vw, 40px)/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 12px }
.kitx h3 { font: 700 21px/1.2 var(--display); margin: 0 0 6px; letter-spacing: -.01em }
.kitx p { margin: 0 0 12px; max-width: 72ch; color: #3d3b45; line-height: inherit }
.kitx .lede { max-width: 72ch; color: #3d3b45; line-height: inherit }

.kitx .hero { padding-top: 54px; padding-bottom: 46px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 54px; align-items: center }
.kitx .hero .lede { font-size: 19px }
.kitx .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0 }
.kitx .chips span { font: 500 11px var(--mono); letter-spacing: .12em; border: 1.5px solid var(--ink2); padding: 4px 9px; background: var(--card); color: var(--ink) }

.kitx section.band { padding: 60px 0; border-top: 2px solid var(--ink2); background-color: var(--paper); background-image: none; scroll-margin-top: 90px }
.kitx section.lav { background-color: #ece7f1; background-image: linear-gradient(#ddd5e6 1px, transparent 1px), linear-gradient(90deg, #ddd5e6 1px, transparent 1px); background-size: 26px 26px }
.kitx section.slate { background-color: #e4e7ea; background-image: linear-gradient(#d3d8dd 1px, transparent 1px), linear-gradient(90deg, #d3d8dd 1px, transparent 1px); background-size: 26px 26px }

.kitx .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px }
.kitx .box { background: var(--card); border: 2px solid var(--ink2); box-shadow: var(--shadow); padding: 16px 18px 14px; min-width: 0 }
.kitx .box .t { font: 500 11px var(--mono); letter-spacing: .14em; padding: 3px 8px; border: 1.5px solid currentColor; display: inline-block; margin-bottom: 10px; color: var(--purple) }
.kitx .box.story:nth-child(1) .t { color: var(--red) }
.kitx .box.story:nth-child(3) .t { color: var(--green) }
.kitx .box h3 { font: 700 21px/1.2 var(--display); letter-spacing: -.01em; margin: 2px 0 6px }
.kitx .box p { font-size: 15.5px; margin: 0; color: #3d3b45 }

.kitx .postit { background: var(--postit); border: 1px solid #c9bb7a; box-shadow: 4px 5px 0 rgba(0, 0, 0, .25); padding: 16px 18px; font: 15px/1.5 var(--mono); transform: rotate(-1.5deg); max-width: 380px; position: relative; color: var(--ink) }
.kitx .postit::before { content: ''; position: absolute; left: calc(50% - 34px); top: -10px; width: 68px; height: 19px; background: rgba(233, 229, 218, .9); border: 1px solid #d6d0bf }
.kitx .postit b { display: block; font-weight: 400; font-size: 11px; letter-spacing: .16em; color: #6b6440; margin-bottom: 6px }

.kitx figure.scene { margin: 22px 0 0; background: var(--card); border: 2px solid var(--ink2); box-shadow: var(--shadow) }
.kitx figure.scene .bma-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-top: 2px solid var(--ink2); background: var(--lav2) }
.kitx figure.scene .bma-bar button { font: 500 14px var(--sans); background: var(--card); color: var(--ink); border: 1.5px solid var(--ink2); box-shadow: 2px 2px 0 var(--ink2); padding: 5px 13px; min-width: 38px; min-height: 34px; cursor: pointer }
.kitx figure.scene .bma-bar button.on { background: var(--mint) }
.kitx figure.scene .bma-bar button:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px }
.kitx figure.scene ol.bma-beats { margin: 0; padding: 12px 18px 14px 42px; font-size: 15px; color: var(--muted); border-top: 1px solid #d6d2c6; background: var(--card) }
.kitx figure.scene ol.bma-beats li.on { color: var(--ink); font-weight: 600 }

.kitx .scene-head { margin-top: 50px }
.kitx .scene-head:first-child { margin-top: 0 }
.kitx .scene-head h3 { font: 700 28px/1.2 var(--display); letter-spacing: -.01em; margin: 4px 0 6px }
.kitx .scene-head p { margin: 0 0 12px; max-width: 72ch; color: #3d3b45 }

@media (max-width: 980px) {
  .kitx .hero { grid-template-columns: 1fr }
  .kitx .three { grid-template-columns: 1fr }
}

/* agent-kit parts CSS (builder A, agk-): the hero grid, the control bar, the Agents of Tomorrow strip */
.kitx .agk-hero { grid-template-columns: .9fr 1.1fr }
.kitx figure.scene .agk-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; border-top: 2px solid var(--ink2); background: var(--lav2); font: 13px var(--mono) }
.kitx figure.scene .agk-ctl button { font: 500 13px var(--sans); background: var(--card); color: var(--ink); border: 1.5px solid var(--ink2); box-shadow: 2px 2px 0 var(--ink2); padding: 4px 12px; min-height: 32px; cursor: pointer }
.kitx figure.scene .agk-ctl button:focus-visible, .kitx figure.scene .agk-ctl summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px }
.kitx figure.scene .agk-ctl details { flex: 1 1 auto }
.kitx figure.scene .agk-ctl summary { cursor: pointer; letter-spacing: .08em; padding: 4px 0 }
.kitx figure.scene .agk-ctl ol { margin: 6px 0 4px; padding-left: 22px; font: 14px/1.5 var(--sans) }
.kitx figure.scene.agk-missing { min-height: 0 }
.kitx .hero figure.scene .agk-ctl { border-top-width: 1.5px }
.kitx .agk-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 26px }
.kitx .agk-strip > * { min-width: 0 }
.kitx .agk-strip .arrow { align-self: center; font: 700 26px var(--mono); color: var(--purple) }
.kitx .agk-strip .stage { background: var(--card); border: 2px solid var(--ink2); box-shadow: var(--shadow); padding: 16px 18px }
.kitx .agk-strip .stage small { display: block; font: 500 11px var(--mono); letter-spacing: .16em; color: var(--purple) }
.kitx .agk-strip .stage b { display: block; font: 700 21px/1.15 var(--display); margin: 4px 0 6px; letter-spacing: -.02em; overflow-wrap: anywhere }
.kitx .agk-strip .stage p { font-size: 15px; margin: 0 }
.kitx .agk-strip .stage .q { display: block; font: 13px/1.45 var(--mono); background: var(--lav2); border: 1px solid #d6d0e0; padding: 6px 8px; margin-top: 10px }
.kitx .agk-status { display: inline-block; font: 500 10.5px var(--mono); letter-spacing: .12em; padding: 2px 7px; border: 1.5px solid var(--ink2); background: var(--mint); margin-top: 8px }
@media (max-width: 980px) {
  .kitx .agk-hero { grid-template-columns: 1fr }
  .kitx .agk-strip { grid-template-columns: 1fr } .kitx .agk-strip .arrow { justify-self: center; transform: rotate(90deg) }
}

/* agent-kit parts CSS (builder B, ak2-): on phones the detailed diagrams keep a readable size and
   scroll sideways inside their own box, never the page */
@media (max-width: 600px) {
  .kitx .ak2-wide { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 10px 12px 0 }
  .kitx .ak2-wide > figure.scene { min-width: 740px }
  .kitx .ak2-wide::before { content: 'Swipe the diagram sideways →'; display: block; font: 11px var(--mono); letter-spacing: .1em; color: var(--muted); margin: 18px 0 -12px }
}

/* ---------- 2. page pieces ---------- */
/* the kit hero opens the page: no band border above it */
.kitx-hero { border-bottom: 0 }

/* fit notes: a slim ink-bordered bar before each embedded section, saying what is open source and what is Evolution */
.fit-note { background: #fcfbf7; border-top: 2px solid #292832; padding: 22px 0 20px }
.fit-note .wrap { display: grid; grid-template-columns: auto 1fr; gap: 10px 26px; align-items: start }
.fit-n { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; background: #82dbb5; border: 1.5px solid #292832; box-shadow: 3px 3px 0 #292832; padding: 6px 10px; white-space: nowrap }
.fit-note p { margin: 0; font-size: 16px; line-height: 1.6; color: #3d3b45; max-width: 92ch }
.fit-note p b { color: #22242b }
.fit-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 4px }
.fit-tags span { font: 500 10.5px/1.5 var(--mono); letter-spacing: .08em; border: 1.5px solid #292832; padding: 3px 8px; background: #fcfbf7 }
.fit-tags span.os { background: #d9f3e7 }
.fit-tags span.evo { background: #e3dcef }
.fit-tags span.next { background: #f2e9b8 }
.fit-tags span.lbl { border: 0; background: none; padding: 4px 0 0; font-weight: 500; letter-spacing: .14em; color: #22242b }
.fit-tags span.lbl:not(:first-child) { margin-left: 8px }

/* the two-layer overview and the box grids */
.tech-k { display: inline-block; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border: 1.5px solid currentColor; color: #80738f; margin-bottom: 10px }
.box.ink .tech-k { color: #96e5c8 }
.tech-k.os { color: #3f7a5e }
.box .tech-k + h3 { margin-top: 0 }
.tech-layers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px }
.tech-layers .box h3 { font-size: 30px }
.tech-layers .box p { font-size: 15.5px; color: #52515b }
.tech-layers .box.ink p { color: #d1ced6 }
.tech-layers .box .more { font-size: 12px }
.tech-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.tech-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px }
.tech-grid3 .box h3, .tech-grid4 .box h3 { font-size: 22px; margin: 4px 0 10px }
.tech-grid4 .box p, .tech-grid3 .box p { margin: 0 }
.tech-status { display: inline-block; font: 500 10px var(--mono); letter-spacing: .12em; padding: 2px 7px; border: 1.5px solid #292832; background: #82dbb5; margin: 10px 6px 0 0; color: #22242b }
.tech-status.next { background: #f2e9b8 }
.tech-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px }
.tech-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px }
.tech-langs span { font: 10.5px var(--mono); border: 1px solid #292832; padding: 3px 7px; background: #eae5f1 }
.tech-fit a.box { display: block; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s }
.tech-fit a.box:hover { transform: translate(-2px, -2px); box-shadow: 8px 9px 0 #292832 }
.tech-fit a.box:focus-visible { outline: 3px solid #80738f; outline-offset: 3px }
.tech-fit .num { font: 700 44px/1 var(--display); letter-spacing: -.05em; color: #80738f; display: block; margin-bottom: 8px }

/* comparison table */
.tech-cmp-wrap { margin-top: 10px }
table.tech-cmp { width: 100%; border-collapse: collapse; background: #fcfbf7; border: 2px solid #292832; box-shadow: 6px 7px 0 #292832; font-size: 15px; line-height: 1.55 }
table.tech-cmp th, table.tech-cmp td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid #d6d2c6 }
table.tech-cmp thead th { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid #292832 }
table.tech-cmp thead th:nth-child(1) { background: #eae5f1; width: 17% }
table.tech-cmp thead th:nth-child(2) { background: #d9f3e7; width: 41% }
table.tech-cmp thead th:nth-child(3) { background: #282833; color: #f5f3ec; width: 42% }
table.tech-cmp tbody th { font: 500 13px var(--mono); letter-spacing: .04em; color: #22242b; background: #f5f3ec }
table.tech-cmp td { color: #3d3b45 }
table.tech-cmp td:nth-child(3) { background: #f3f0f7 }
table.tech-cmp tr:last-child th, table.tech-cmp tr:last-child td { border-bottom: 0 }
table.tech-cmp code { font: 13px var(--mono); background: #eae5f1; padding: 1px 4px; border: 1px solid #d6d0e0 }

/* CTA with two buttons */
.cta .tech-actions { margin-top: 26px }

@media (max-width: 1100px) {
  .tech-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 900px) {
  .tech-layers, .tech-grid3 { grid-template-columns: 1fr }
}
@media (max-width: 740px) {
  .fit-note .wrap { grid-template-columns: 1fr }
  .fit-tags { grid-column: 1 }
  .fit-n { justify-self: start; white-space: normal }
  .tech-grid4 { grid-template-columns: 1fr }
  .tech-layers .box h3 { font-size: 26px }
  /* the table stacks: one block per row, each cell labelled */
  table.tech-cmp thead { display: none }
  table.tech-cmp, table.tech-cmp tbody, table.tech-cmp tr, table.tech-cmp th, table.tech-cmp td { display: block; width: auto }
  table.tech-cmp tr { border-bottom: 2px solid #292832 }
  table.tech-cmp tr:last-child { border-bottom: 0 }
  table.tech-cmp tbody th { border-bottom: 1px solid #d6d2c6; padding: 10px 14px }
  table.tech-cmp td { border-bottom: 0; padding: 10px 14px }
  table.tech-cmp td[data-l]::before { content: attr(data-l); display: block; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #60616b; margin-bottom: 2px }
  table.tech-cmp td:nth-child(2) { background: #f1faf5 }
}
@media (prefers-reduced-motion: reduce) {
  .tech-fit a.box:hover { transform: none }
}
.tech-link { display: inline-block; margin-top: 12px; font: 600 12px var(--mono, 'DM Mono', monospace); letter-spacing: .08em; text-transform: uppercase; color: #22242b; text-decoration-color: #82dbb5; text-decoration-thickness: 2px; text-underline-offset: 3px }
