/* ============================================================
   CONVRT — electric violet / volt lime
   ============================================================ */
:root {
  --violet:    #7b2bff;
  --violet-d:  #4a12b8;
  --void:      #1b0a4a;   /* deep violet, never black */
  --void-2:    #2a1266;
  --ink:       #2a0e63;
  --ink-2:     #6b52a8;
  --ink-3:     #a692d6;
  --paper:     #f4f0ff;   /* pale violet, never beige */
  --paper-2:   #e9e0ff;
  --white:     #ffffff;
  --volt:      #c8ff2e;   /* electric lime — the punch */
  --cyan:      #22e0ff;
  --pink:      #ff4d9d;
  --rule:      #ddd0ff;

  --sans:  'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'DM Mono', ui-monospace, SFMono-Regular, monospace;

  --gut:  clamp(20px, 5vw, 60px);
  --maxw: 1280px;
  --ease:   cubic-bezier(.4,0,.2,1);
  --swift:  cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }
p { margin: 0; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -.045em; line-height: .98; }

.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); position: relative; z-index: 2; }
.band { padding-block: clamp(70px, 9vw, 140px); position: relative; }
.lead { font-size: clamp(17px,1.9vw,21px); color: var(--ink-2); line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; letter-spacing: -.02em;
  padding: 15px 26px; border-radius: 999px; border: 2px solid var(--violet);
  background: var(--violet); color: #fff; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--spring), box-shadow .25s var(--ease);
  box-shadow: 0 6px 0 var(--violet-d);
}
.btn:hover { background: var(--volt); border-color: var(--volt); color: var(--void); box-shadow: 0 6px 0 #8fbf10; transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--violet-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: 0 6px 0 rgba(42,14,99,.22); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 6px 0 rgba(42,14,99,.4); }
.btn-volt { background: var(--volt); border-color: var(--volt); color: var(--void); box-shadow: 0 6px 0 #8fbf10; }
.btn-volt:hover { background: #fff; border-color: #fff; color: var(--void); box-shadow: 0 6px 0 rgba(255,255,255,.4); }
.btn-lg { padding: 18px 34px; font-size: 16px; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 400; display: flex; align-items: center; gap: 24px;
  padding: 13px var(--gut); background: rgba(244,240,255,.85);
  backdrop-filter: blur(16px); border-bottom: 2px solid transparent;
  transition: border-color .3s var(--ease);
}
.hdr.stuck { border-bottom-color: var(--rule); }
.hdr .mark { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.055em; }
.hdr nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.hdr nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color .2s var(--ease); }
.hdr nav a:hover { color: var(--violet); }
/* .hdr nav a beats .btn on specificity — restate the button colours */
.hdr nav a.btn { color: #fff; }
.hdr nav a.btn:hover { color: var(--void); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.burger i { display: block; width: 24px; height: 2.5px; background: var(--violet); border-radius: 2px; margin: 5px 0; transition: transform .35s var(--spring), opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Reveals ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--swift), transform .75s var(--swift); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px,8vw,110px) var(--gut) clamp(50px,7vw,96px);
  background:
    radial-gradient(1000px 520px at 12% -10%, rgba(34,224,255,.30), transparent 62%),
    radial-gradient(900px 520px at 90% 8%, rgba(255,77,157,.26), transparent 60%),
    radial-gradient(760px 480px at 50% 108%, rgba(200,255,46,.30), transparent 62%),
    var(--paper);
}
.hero-in { max-width: var(--maxw); margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 7.4vw, 104px); max-width: 15ch; }
.hero h1 mark { background: none; color: var(--violet); }
.hero h1 .box {
  color: var(--violet);
  background-image: linear-gradient(var(--volt), var(--volt));
  background-size: 100% .14em;
  background-position: 0 92%;
  background-repeat: no-repeat;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 0;
}
.hero-sub { font-size: clamp(17px,1.9vw,22px); color: var(--ink-2); max-width: 50ch; margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 22px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: 1fr minmax(0,36ch); gap: clamp(20px,5vw,64px); align-items: end; margin-bottom: clamp(32px,5vw,58px); }
.sec-head h2 { font-size: clamp(30px,4.8vw,66px); max-width: 16ch; }
.sec-head h2 mark { background: none; color: var(--violet); }

/* ============================================================
   THE BRAIN DIAGRAM — lattice core, circuit-trace stems
   Tools flow in from the left; models plug in on the right.
   ============================================================ */
.brainz {
  background: var(--void); color: var(--paper); position: relative; overflow: hidden;
  background-image:
    radial-gradient(760px 420px at 16% 0%, rgba(123,43,255,.55), transparent 60%),
    radial-gradient(640px 400px at 86% 100%, rgba(34,224,255,.24), transparent 62%);
}
.brainz h2 { font-size: clamp(30px,5vw,68px); max-width: 16ch; color: #fff; }
.brainz h2 mark { background: none; color: var(--volt); }
.brainz .kicker { color: var(--volt); }
.brainz .lead { color: rgba(255,255,255,.72); max-width: 52ch; margin-top: 18px; }

.rig { margin-top: clamp(34px,5vw,60px); position: relative; }
.rig svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Nodes are HTML pills positioned over the SVG, so they can be clicked. */
.node {
  position: absolute; z-index: 3;
  transform: translate(-50%,-50%);
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 8px 15px 8px 8px;
  font-size: 13px; color: #fff; white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: border-color .3s var(--ease), background .3s var(--ease),
              transform .35s var(--spring), box-shadow .3s var(--ease);
}
.node i {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  font-family: var(--mono); font-size: 9px; font-style: normal; text-transform: uppercase;
}
.node.live i, .node.armed i { background: var(--volt); color: var(--void); }
.trace { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.6; }
.trace.hot { stroke: var(--volt); stroke-width: 2.4; filter: drop-shadow(0 0 6px rgba(200,255,46,.8)); }
.spark { fill: var(--volt); }
.cell { fill: rgba(255,255,255,.28); }
.cell.on { fill: var(--volt); }
.cell.mid { fill: var(--cyan); }
.core-ring { fill: none; stroke: rgba(200,255,46,.45); stroke-width: 1.5; }
.core-cap { font-family: var(--mono); font-size: 11px; fill: var(--volt); letter-spacing: .18em; text-transform: uppercase; }
.side-cap { font-family: var(--mono); font-size: 10.5px; fill: rgba(255,255,255,.45); letter-spacing: .2em; text-transform: uppercase; }

.one-conn {
  margin-top: clamp(34px,4.6vw,56px); padding-top: 26px; border-top: 2px solid rgba(255,255,255,.16);
  display: flex; justify-content: space-between; align-items: baseline; gap: 22px; flex-wrap: wrap;
}
.one-conn b { font-size: clamp(22px,3.2vw,42px); font-weight: 700; letter-spacing: -.05em; color: #fff; }
.one-conn b mark { background: var(--volt); color: var(--void); border-radius: 6px; padding: 0 .12em; }
.one-conn p { color: rgba(255,255,255,.6); font-size: 15px; max-width: 42ch; }

.built { margin-top: clamp(34px,4.6vw,54px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,3vw,40px); border: 2px solid rgba(255,255,255,.18); border-radius: 18px; padding: clamp(22px,3vw,38px); background: rgba(255,255,255,.04); }
.built h3 { font-size: clamp(21px,2.6vw,30px); color: #fff; }
.built p { color: rgba(255,255,255,.68); font-size: 15.5px; margin-top: 10px; }
.built strong { color: var(--volt); }
.built ol { margin: 0; padding: 0; list-style: none; counter-reset: b; }
.built li { counter-increment: b; position: relative; padding: 11px 0 11px 40px; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; color: rgba(255,255,255,.8); }
.built li:first-child { border-top: 0; }
.built li::before { content: counter(b,decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--mono); font-size: 11px; color: var(--volt); }

/* ---------- Final ---------- */
.final { background: var(--violet); color: #fff; text-align: center; position: relative; overflow: hidden;
  background-image: radial-gradient(700px 420px at 50% -10%, rgba(34,224,255,.4), transparent 60%); }
.final h2 { font-size: clamp(32px,6.4vw,88px); max-width: 15ch; margin: 0 auto; color: #fff; }
.final h2 mark { background: var(--volt); color: var(--void); border-radius: 8px; padding: 0 .12em; }
.final p { color: rgba(255,255,255,.82); max-width: 46ch; margin: 22px auto 0; }
.final-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.book-frame { max-width: 1000px; margin: clamp(34px,5vw,56px) auto 0; background: #fff; border-radius: 18px; padding: 10px; position: relative; z-index: 2; box-shadow: 0 20px 0 rgba(0,0,0,.14); }
.book-frame iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.book-empty { text-align: center; padding: 56px 24px; color: var(--ink-2); }
.book-empty code { font-family: var(--mono); font-size: 13px; background: var(--paper-2); padding: 3px 7px; border-radius: 4px; color: var(--ink); }

/* ---------- Footer ---------- */
.ftr { background: var(--void); color: rgba(255,255,255,.6); padding: clamp(48px,6vw,78px) var(--gut) 28px; font-size: 14px; }
.ftr-in { max-width: var(--maxw); margin: 0 auto; }
.ftr-top { display: grid; grid-template-columns: 1.7fr repeat(3,1fr); gap: 34px; padding-bottom: 40px; }
.ftr .mark { display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.055em; }
.ftr-tag { margin-top: 13px; max-width: 30ch; }
.ftr h5 { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--volt); margin: 0 0 13px; font-weight: 400; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 9px; }
.ftr a { text-decoration: none; transition: color .2s var(--ease); }
.ftr a:hover { color: var(--volt); }
.ftr-bot { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .sec-head, .svc-pad, .built { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hdr nav { display: none; }
  .hdr nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 2px solid var(--rule); padding: 14px var(--gut) 20px; }
  .hdr nav.open a { padding: 11px 0; font-size: 16px; }
  .hdr nav.open .btn { margin-top: 8px; justify-content: center; }
  .burger { display: block; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .svc-flag { display: none; }
  .ftr-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ============================================================
   AUTOMATIONS — the run log
   ============================================================ */
.autos { background: var(--paper-2); position: relative; overflow: hidden; }
.autos h2 mark, .agents h2 mark { background: none; color: var(--violet); }
.log {
  margin-top: clamp(30px,4vw,52px); background: var(--white);
  border: 2px solid var(--rule); border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 0 rgba(123,43,255,.10);
}
.log-bar {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px;
  border-bottom: 2px solid var(--rule); background: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.log-live { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); border: 1.5px solid var(--violet); animation: blip 1.6s var(--ease) infinite; }
@keyframes blip { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }
.log-count { margin-left: auto; color: var(--violet); }
.log-rows { list-style: none; margin: 0; padding: 0; }
.log-row {
  display: grid; grid-template-columns: 30px 1fr 1fr auto; gap: 16px; align-items: center;
  padding: 15px 20px; border-top: 1px solid var(--rule);
  transition: background .4s var(--ease);
}
.log-row:first-child { border-top: 0; }
.log-row.done { background: rgba(200,255,46,.16); }
.log-tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink-3); display: grid; place-items: center; transition: border-color .3s var(--ease), background .3s var(--ease); }
.log-tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); transform: scale(0); transition: transform .35s var(--spring); }
.log-row.done .log-tick { border-color: var(--violet); background: var(--violet); }
.log-row.done .log-tick::after { transform: scale(1); }
.log-trig { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.log-act { font-size: 15.5px; font-weight: 500; letter-spacing: -.02em; }
.log-time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.log-row.done .log-time { color: var(--violet); }
.log-foot { padding: 14px 20px; border-top: 2px solid var(--rule); background: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Booking, his pattern ---------- */
.book-alt { margin-top: 22px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.book-alt a { color: var(--volt); text-decoration: none; border-bottom: 1px solid rgba(200,255,46,.5); padding-bottom: 2px; }
.book-alt a:hover { border-bottom-color: var(--volt); }
.book-alt span { color: rgba(255,255,255,.6); }

@media (max-width: 1000px) { .roster { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .log-row { grid-template-columns: 24px 1fr; gap: 10px; row-gap: 4px; }
  .log-trig { grid-column: 2; }
  .log-act { grid-column: 2; }
  .log-time { grid-column: 2; }
}

/* ============================================================
   WHAT HAPPENS — three steps on a line
   ============================================================ */
.path { background: var(--paper-2); }
.path-head { text-align: center; margin-bottom: clamp(36px,5vw,64px); }
.path-head h2 { font-size: clamp(30px,4.8vw,62px); max-width: 18ch; margin: 14px auto 0; }
.path-head h2 mark { background: none; color: var(--violet); }
.path-head p { color: var(--ink-2); max-width: 46ch; margin: 18px auto 0; font-size: 17px; }

.path-steps { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
/* the line the steps sit on */
.path-steps::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--volt));
  opacity: .4;
}
.step {
  position: relative; background: var(--white);
  border: 2px solid var(--rule); border-radius: 20px;
  padding: clamp(22px,2.8vw,34px);
  transition: transform .45s var(--swift), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-6px); border-color: var(--violet); box-shadow: 0 14px 0 rgba(123,43,255,.12); }
.step-n {
  position: relative; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--violet); color: #fff; border: 3px solid var(--paper-2);
  font-family: var(--mono); font-size: 14px;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.step:hover .step-n { background: var(--volt); color: var(--void); }
.step-when {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--violet);
}
.step h4 { font-size: clamp(22px,2.6vw,30px); margin: 10px 0 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.path-foot { text-align: center; margin-top: clamp(32px,4vw,52px); }

@media (max-width: 860px) {
  .path-steps { grid-template-columns: 1fr; gap: 14px; }
  .path-steps::before { display: none; }
}

/* ============================================================
   SERVICE SUB-PAGES
   ============================================================ */
.svc-hero { padding: clamp(50px,7vw,96px) var(--gut) clamp(34px,4vw,60px);
  background: radial-gradient(900px 480px at 15% -10%, rgba(34,224,255,.26), transparent 62%),
              radial-gradient(760px 460px at 88% 6%, rgba(255,77,157,.2), transparent 60%), var(--paper); }
.svc-hero .container, .section .container { max-width: var(--maxw); margin: 0 auto; }
.crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: flex; gap: 9px; margin-bottom: 22px; flex-wrap: wrap; }
.crumb a { text-decoration: none; transition: color .2s var(--ease); }
.crumb a:hover { color: var(--violet); }
.svc-hero h1 { font-size: clamp(34px,6vw,76px); max-width: 15ch; }
.svc-hero .lede { font-size: clamp(19px,2.2vw,27px); font-weight: 600; color: var(--violet); margin-top: 14px; max-width: 26ch; letter-spacing: -.035em; }
.svc-hero .intro { font-size: 17.5px; color: var(--ink-2); max-width: 56ch; margin-top: 20px; }
.svc-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.stat-strip { display: grid; grid-template-columns: repeat(3,1fr); background: var(--void); color: #fff; }
.stat { padding: 32px var(--gut); text-align: center; border-right: 1px solid rgba(255,255,255,.14); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(28px,3.6vw,44px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--volt); }
.stat span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.section { padding-block: clamp(56px,7vw,110px); }
.section .container { padding-inline: var(--gut); }
.band-cream { background: var(--paper); }
.band-sky { background: var(--paper-2); }
.band-white { background: var(--white); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--violet); }
.section-title { font-size: clamp(28px,4.4vw,58px); max-width: 17ch; font-weight: 700; letter-spacing: -.045em; }
.section-title .hl { color: var(--violet); }
.section-lede { color: var(--ink-2); max-width: 44ch; margin-top: 16px; font-size: 16.5px; }
.head-split { display: grid; grid-template-columns: 1fr minmax(0,34ch); gap: clamp(20px,5vw,60px); align-items: end; margin-bottom: clamp(30px,4vw,54px); }
.prose { max-width: 62ch; }
.prose p { font-size: 17px; color: var(--ink-2); }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--ink); }
.pull { font-size: clamp(21px,2.8vw,34px); font-weight: 700; letter-spacing: -.04em; line-height: 1.18; border-left: 4px solid var(--volt); padding-left: 22px; margin: 34px 0; }

.flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 34px; }
.flow-step { background: var(--white); border: 2px solid var(--rule); border-radius: 16px; padding: 24px; transition: border-color .3s var(--ease), transform .4s var(--swift); }
.flow-step:hover { border-color: var(--violet); transform: translateY(-3px); }
.flow-n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--violet); }
.flow-step h4 { font-size: 19px; margin: 11px 0 7px; }
.flow-step p { font-size: 14.5px; color: var(--ink-2); }

.ex { margin-top: 22px; }
.ex-card { background: var(--white); border: 2px solid var(--rule); border-radius: 18px; overflow: hidden; }
.ex-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 2px solid var(--rule); background: var(--paper);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ex-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); border: 1.5px solid var(--violet); flex-shrink: 0; }
.ex-tag { margin-left: auto; background: var(--volt); color: var(--void); border-radius: 999px; padding: 5px 11px; }
.ex-body { padding: 26px; }
.ex-split { display: grid; grid-template-columns: 1fr 1fr; }
.ex-split > div { padding: 26px; }
.ex-split > div:first-child { border-right: 2px solid var(--rule); background: var(--paper); }
.ex-label { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 13px; }
.ex-in { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; }
.ex-out { font-size: 16px; line-height: 1.6; }
.ex-out p + p { margin-top: 12px; }
.ex-out strong { color: var(--violet); }

.chat { padding: 22px; display: flex; flex-direction: column; gap: 11px; }
.bubble { max-width: 76%; padding: 13px 17px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.bubble.them { align-self: flex-start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.bubble.us { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.bubble small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 5px; }
.chat-note { padding: 13px 22px; border-top: 2px solid var(--rule); background: var(--paper); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.arch { margin-top: 34px; background: var(--white); border: 2px solid var(--rule); border-radius: 18px; padding: 28px; }
.arch-core { background: var(--void); color: #fff; border-radius: 14px; padding: 24px; text-align: center; }
.arch-core b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.04em; color: var(--volt); }
.arch-core span { font-size: 14px; color: rgba(255,255,255,.65); }
.arch-holds { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 16px; }
.arch-hold { border: 2px solid var(--rule); border-radius: 12px; padding: 15px; text-align: center; font-size: 13px; color: var(--ink-2); }
.arch-hold b { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--violet); margin-bottom: 5px; }
.arch-arrows { display: flex; justify-content: center; padding: 16px 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.arch-feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arch-feed { border: 2px dashed var(--rule); border-radius: 12px; padding: 17px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.arch-feed b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }

.incl { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 30px; margin-top: 30px; }
.incl div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.incl div::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--volt); border: 2px solid var(--violet); flex-shrink: 0; margin-top: 7px; }

.urgency { background: var(--violet); color: #fff; text-align: center; padding: clamp(54px,7vw,100px) var(--gut);
  background-image: radial-gradient(640px 380px at 50% -10%, rgba(34,224,255,.36), transparent 62%); }
.urgency h2 { font-size: clamp(28px,4.4vw,56px); max-width: 18ch; margin: 0 auto; color: #fff; }
.urgency p { color: rgba(255,255,255,.82); max-width: 50ch; margin: 18px auto 0; }
.urgency .eyebrow { color: var(--volt); }
.urgency .btn { background: var(--volt); border-color: var(--volt); color: var(--void); box-shadow: 0 6px 0 #8fbf10; }
.urgency .btn:hover { background: #fff; border-color: #fff; }

.next-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.next-card { display: block; text-decoration: none; padding: 28px; border: 2px solid var(--rule); border-radius: 18px; background: var(--white); transition: transform .4s var(--swift), border-color .3s var(--ease); }
.next-card:hover { transform: translateY(-4px); border-color: var(--violet); }
.next-card em { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.next-card b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.04em; margin: 9px 0 4px; }
.next-card span { font-size: 15px; color: var(--ink-2); }

@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(2,1fr); }
  .arch-holds { grid-template-columns: repeat(2,1fr); }
  .head-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .flow, .ex-split, .incl, .next-svc, .arch-feeds { grid-template-columns: 1fr; }
  .ex-split > div:first-child { border-right: 0; border-bottom: 2px solid var(--rule); }
  .bubble { max-width: 88%; }
  .svc-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   AGENT PLAN — an agent visibly deciding
   ============================================================ */
.plan {
  margin-top: clamp(26px,3.4vw,44px);
  background: var(--void); border-radius: 22px; overflow: hidden;
  border: 2px solid rgba(255,255,255,.12);
  background-image: radial-gradient(620px 360px at 80% 0%, rgba(123,43,255,.4), transparent 62%);
}
.plan-bar {
  display: flex; align-items: center; gap: 10px; padding: 15px 22px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.plan-live { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); animation: blip 1.6s var(--ease) infinite; }
.plan-src { margin-left: auto; color: var(--volt); }
.plan-body { padding: 8px 22px 22px; position: relative; }
.plan-step {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start;
  padding: 11px 0; position: relative;
}
.plan-step::after {   /* connector */
  content: ""; position: absolute; left: 12px; top: 30px; bottom: -11px; width: 2px;
  background: rgba(255,255,255,.14);
}
.plan-step:last-child::after { display: none; }
.plan-dot {
  width: 26px; height: 26px; border-radius: 50%; position: relative; z-index: 2;
  border: 2px solid rgba(255,255,255,.22); background: var(--void);
  display: grid; place-items: center;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.plan-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: transparent; transition: background .3s var(--ease); }
.plan-text { color: rgba(255,255,255,.4); font-size: 15px; line-height: 1.4; transition: color .35s var(--ease); padding-top: 2px; }
.plan-text b { display: block; font-weight: 600; }
.plan-text small { display: block; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.34); margin-top: 3px; }

.plan-step.run .plan-dot { border-color: var(--volt); }
.plan-step.run .plan-dot::after { background: var(--volt); animation: blip 1s var(--ease) infinite; }
.plan-step.run .plan-text { color: #fff; }
.plan-step.done .plan-dot { border-color: var(--violet); background: var(--violet); }
.plan-step.done .plan-dot::after { background: #fff; }
.plan-step.done .plan-text { color: rgba(255,255,255,.72); }
.plan-step.flag .plan-dot { border-color: var(--pink); background: var(--pink); }
.plan-step.flag .plan-dot::after { background: #fff; }
.plan-step.flag .plan-text { color: #fff; }
.plan-step.flag .plan-text small { color: var(--pink); }

.plan-foot {
  border-top: 1px solid rgba(255,255,255,.14); padding: 14px 22px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.plan-foot b { color: var(--volt); font-weight: 400; }

/* dot lattice behind the Brain — same motif as the diagram */
.brainz::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%);
}
.brainz .wrap { position: relative; z-index: 2; }

@media (max-width: 900px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-mid { padding: 4px 0; }
  .vs-mid span { transform: rotate(90deg); }
}

/* ============================================================
   THE RIG, INTERACTIVE
   ============================================================ */
.rig { cursor: crosshair; }
.node { cursor: pointer; user-select: none; }
.node:hover { border-color: var(--volt); background: rgba(200,255,46,.12); transform: translate(-50%,-50%) scale(1.06); }
.node:active { transform: translate(-50%,-50%) scale(.97); }
.node.live { border-color: var(--volt); background: rgba(200,255,46,.14); }
.node.armed { border-color: var(--volt); background: rgba(200,255,46,.18); box-shadow: 0 0 0 4px rgba(200,255,46,.14); }

.rig-hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45);
  transition: opacity .4s var(--ease);
}
.rig-hint b { color: var(--volt); font-weight: 400; }
.rig-hint.hide { opacity: 0; }
.rig-hint i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--volt); font-style: normal;
  animation: blip 1.6s var(--ease) infinite;
}

/* the output the Brain produces */
.out {
  margin-top: clamp(16px,2.4vw,26px);
  border: 2px solid rgba(255,255,255,.16); border-radius: 18px;
  background: rgba(255,255,255,.04); overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .6s var(--swift), opacity .4s var(--ease), border-color .4s var(--ease);
}
.out.show { max-height: 460px; opacity: 1; border-color: rgba(200,255,46,.4); }
.out-bar {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.out-bar b { color: var(--volt); font-weight: 400; }
.out-bar .to { margin-left: auto; color: rgba(255,255,255,.4); }
.out-bar .to em { font-style: normal; color: var(--cyan); }
.out-body { padding: 22px; font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.9); min-height: 88px; }
.out-body .cur { display: inline-block; width: 8px; height: 1.05em; background: var(--volt); vertical-align: -3px; animation: blip 1s steps(2) infinite; }
.out-meta { display: flex; gap: 18px; flex-wrap: wrap; padding: 0 22px 18px; }
.out-meta span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.38); }

.cell { transition: fill .35s var(--ease); }
.cell.spark { fill: var(--volt); }

/* Rig on small screens: pills drop below the diagram */
.rig-lists { display: none; }
.rig.stack .rig-lists { display: grid; gap: 18px; margin-top: 20px; }
.rig.stack .node { position: static; transform: none; }
.rig.stack .node:hover, .rig.stack .node:active { transform: none; }
.rig-glabel {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px;
}
.rig-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rig.stack .rig-chips .node { font-size: 12.5px; padding: 7px 13px 7px 7px; }

/* ============================================================
   HERO MORPH — cards scatter in, form a line, fan into an arc.
   Vanilla port of the framer-motion idea: CSS transitions with a
   spring curve, positions computed in JS.
   ============================================================ */
.hero { position: relative; overflow: hidden; min-height: 94svh; display: flex; align-items: center; }
.hero-in { position: relative; z-index: 2; width: 100%; }
/* soft scrim so the copy always wins against the cards behind it */
.hero-in::before {
  content: ""; position: absolute; z-index: -1;
  left: -6%; right: 18%; top: -14%; bottom: -16%;
  background: radial-gradient(60% 55% at 32% 50%, var(--paper) 42%, rgba(244,240,255,.72) 68%, transparent 100%);
  pointer-events: none;
}
.morph { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.morph-stage { position: absolute; left: 50%; top: 0; width: 0; height: 0; }

.mcard {
  position: absolute; width: 104px; height: 142px; opacity: .62;
  margin: -71px 0 0 -52px;          /* centre on its own origin */
  transform-style: preserve-3d;
  pointer-events: auto; cursor: pointer;
  transition: transform 1.2s cubic-bezier(.22,1.2,.36,1), opacity .9s var(--ease);
  will-change: transform;
}
.mcard-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.34,1.4,.64,1);
}
.mcard:hover { opacity: 1; z-index: 5; }
.mcard:hover .mcard-inner { transform: rotateY(180deg); }
.mcard-face {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 28px rgba(27,10,74,.22);
}

/* front faces — every card is a different artifact */
.mcard-front { background: #fff; border: 1.5px solid var(--rule); padding: 0; overflow: hidden; }
.mc-pad { padding: 9px 10px; }
.mc-line { height: 4px; border-radius: 3px; background: var(--rule); margin-bottom: 5px; }
.mc-line.w40 { width: 40%; } .mc-line.w55 { width: 55%; }
.mc-line.w70 { width: 70%; } .mc-line.w85 { width: 85%; } .mc-line.w100 { width: 100%; }
.mc-cap {
  font-family: var(--mono); font-size: 7px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.mc-strong { font-size: 10px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }

/* listing */
.mc-photo { height: 54%; position: relative; }
.mc-price { font-family: var(--mono); font-size: 8.5px; color: var(--violet); }
.mc-sub { font-size: 8px; color: var(--ink-3); margin-top: 1px; }

/* chat */
.mc-chat { padding: 10px; display: flex; flex-direction: column; gap: 5px; justify-content: center; height: 100%; }
.mc-bub { max-width: 82%; padding: 5px 7px; border-radius: 8px; font-size: 7.5px; line-height: 1.3; }
.mc-bub.them { background: var(--paper-2); color: var(--ink-2); border-bottom-left-radius: 2px; }
.mc-bub.us { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 2px; }

/* email */
.mc-mail-top { padding: 7px 9px; border-bottom: 1px solid var(--rule); }
.mc-send {
  margin: 8px 9px; background: var(--violet); color: #fff; border-radius: 5px;
  font-family: var(--mono); font-size: 7px; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; padding: 4px;
}

/* calendar */
.mc-cal { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; padding: 8px 9px; }
.mc-cal i { height: 11px; border-radius: 3px; background: var(--paper-2); font-style: normal; }
.mc-cal i.on { background: var(--volt); }
.mc-slot {
  margin: 0 9px; border: 1px solid var(--violet); border-radius: 5px; padding: 4px;
  font-family: var(--mono); font-size: 7px; color: var(--violet); text-align: center;
}

/* social */
.mc-sq { height: 46%; }
.mc-likes { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.mc-heart { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

/* report bars */
.mc-bars { display: flex; align-items: flex-end; gap: 4px; height: 44%; padding: 10px 10px 0; }
.mc-bars i { flex: 1; border-radius: 2px 2px 0 0; background: var(--violet); font-style: normal; }
.mc-bars i:nth-child(2) { background: var(--cyan); }
.mc-bars i:nth-child(3) { background: var(--volt); }

/* stat */
.mc-stat { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.mc-stat b { font-size: 26px; font-weight: 700; letter-spacing: -.05em; color: var(--violet); line-height: 1; }

/* alert */
.mc-alert { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #fff5f9; }
.mc-alert .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--pink); }

/* checklist */
.mc-check { padding: 10px; display: flex; flex-direction: column; gap: 6px; justify-content: center; height: 100%; }
.mc-check div { display: flex; gap: 5px; align-items: center; }
.mc-check i { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); border: 1.5px solid var(--violet); flex-shrink: 0; font-style: normal; }

/* waveform */
.mc-wave { display: flex; align-items: center; gap: 2px; height: 100%; padding: 0 10px; }
.mc-wave i { flex: 1; background: var(--violet); border-radius: 2px; font-style: normal; opacity: .75; }

/* back: what Convrt did with it */
.mcard-back {
  transform: rotateY(180deg);
  background: var(--void); border: 1.5px solid var(--violet);
  display: flex; flex-direction: column; justify-content: center; padding: 12px;
}
.mcard-back b { font-size: 10px; color: var(--volt); font-weight: 600; line-height: 1.25; }
.mcard-back span {
  display: block; margin-top: 6px; font-family: var(--mono);
  font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.mcard-back i {
  font-style: normal; display: block; margin-top: 8px; font-family: var(--mono);
  font-size: 7.5px; color: var(--cyan);
}

.morph-hint {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 16px; z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3);
  transition: opacity .5s var(--ease);
}
.morph-hint.hide { opacity: 0; }

@media (max-width: 900px) { .mcard { width: 74px; height: 100px; margin: -50px 0 0 -37px; } }
@media (prefers-reduced-motion: reduce) { .mcard, .mcard-inner { transition: none; } }

/* ---------- What it runs: two blocks, one section ---------- */
.runs { background: var(--paper-2); }
.runs-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.runs-head h3 { font-size: clamp(24px,3.2vw,38px); font-weight: 700; letter-spacing: -.045em; }
.runs-head .svc-more { margin-left: auto; }
