/* Northbound homepage ("Blueprint"). White and Northbound blue, motion in the foreground.
   Other pages use site.css; the enquiry form styles below mirror site.css so it looks and behaves the same. */
@font-face{font-family:"Geist";font-style:normal;font-weight:300 800;font-display:swap;src:url(/fonts/geist.woff2) format("woff2")}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/geist-mono.woff2) format("woff2")}
:root {
  /* Layout: white technical sheet, blue as the only signal; navy panels for anything that runs. */
  color-scheme: light;
  --bg: #ffffff;
  --bg2: #f4f6fa;
  --fg: #12161f;
  --mut: #545b69;
  --dim: #9aa1ae;
  --line: rgba(18, 22, 31, .08);
  --line2: rgba(18, 22, 31, .15);
  --sig: #3b5ba5;        /* Northbound blue */
  --sig-d: #2c4682;
  --sig-soft: #e8edf7;
  --cy: #6f92e8;         /* light blue */
  --vi: #1e2f5c;         /* deep navy */
  --red: #c8435a;
  --on-sig: #ffffff;
  --glow: rgba(59, 91, 165, .22);
  --glass: rgba(255, 255, 255, .78);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* Navy "machine" panels: same components, tokens flipped locally */
.dark {
  --bg: #0f1729; --bg2: #141e35; --fg: #e8edf7; --mut: #9aa6bf; --dim: #5f6b85;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .15);
  --sig: #8fb0ff; --cy: #7fd3ff; --red: #ff7a8c; --on-sig: #0b1224; --glow: rgba(143, 176, 255, .35);
  --glass: #0f1729; color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-booting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sig); color: var(--on-sig); }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Global layers ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }
.scan { position: fixed; inset: 0; z-index: 89; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0,0,0,.7) 100%); }
main, .foot { position: relative; z-index: 2; }

/* ---------- Boot ---------- */
#boot { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column;
  justify-content: space-between; padding: clamp(18px, 3vw, 40px); font-family: var(--mono); color: var(--mut); }
.boot-grid { position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 75%); }
.boot-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; position: relative; }
.boot-top [data-boot-skip] { color: var(--dim); }
.boot-log { position: relative; margin: 0; font-size: clamp(10px, 1.1vw, 13px); line-height: 1.75; white-space: pre-wrap; max-height: 52vh; overflow: hidden; color: var(--mut); }
.boot-log .ok { color: var(--sig); } .boot-log .w { color: var(--cy); } .boot-log .d { color: var(--dim); }
.boot-foot { position: relative; }
.boot-pct { font-family: var(--sans); font-weight: 700; font-size: clamp(90px, 22vw, 300px); line-height: .8; letter-spacing: -.06em; color: var(--fg); }
.boot-pct i { font-style: normal; font-size: .3em; color: var(--sig); vertical-align: top; margin-left: .1em; }
.boot-bar { height: 2px; background: var(--line); margin: 18px 0 10px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--sig); box-shadow: 0 0 18px var(--sig); }
.boot-meta { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 300; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.c-dot, .c-ring, .c-coords, .cx-h, .cx-v { position: fixed; top: 0; left: 0; will-change: transform; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--sig); border-radius: 50%; }
.c-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid rgba(59,91,165,.5); border-radius: 50%;
  display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s; }
.c-ring.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--sig); border-color: var(--sig); }
.c-ring.hov { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--sig); background: rgba(59,91,165,.08); }
.c-ring.down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.c-label { font: 600 10px var(--mono); letter-spacing: .12em; color: var(--on-sig); opacity: 0; transition: opacity .2s; }
.c-ring.big .c-label { opacity: 1; }
.c-coords { font: 10px var(--mono); color: var(--dim); white-space: nowrap; margin: 22px 0 0 22px; }
.cx-h { width: 100vw; height: 1px; background: linear-gradient(90deg, transparent, rgba(59,91,165,.12), transparent); }
.cx-v { width: 1px; height: 100vh; background: linear-gradient(transparent, rgba(59,91,165,.12), transparent); }

/* ---------- HUD ---------- */
.hud-top { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad); background: linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,0)); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 14px var(--mono); letter-spacing: .2em; }
.brand-star { width: 22px; height: 22px; fill: var(--sig); filter: drop-shadow(0 0 8px rgba(59,91,165,.5)); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { display: flex; gap: 26px; margin-left: auto; font: 13px var(--mono); color: var(--mut); text-transform: lowercase; }
.nav a { position: relative; transition: color .2s; }
.nav a::before { content: "/"; color: var(--sig); opacity: 0; margin-right: 4px; transition: opacity .2s; }
.nav a:hover { color: var(--fg); } .nav a:hover::before { opacity: 1; }
.hud-status { display: flex; align-items: center; gap: 8px; font: 11px var(--mono); color: var(--mut); letter-spacing: .08em; }
.hud-status .sep, .hud-status .tz { color: var(--dim); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 0 rgba(59,91,165,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(59,91,165,0); } 100% { box-shadow: 0 0 0 0 rgba(59,91,165,0); } }
.frame i { position: fixed; z-index: 99; width: 18px; height: 18px; border: 1px solid var(--line2); pointer-events: none; }
.frame .tl { top: 70px; left: 12px; border-width: 1px 0 0 1px; } .frame .tr { top: 70px; right: 12px; border-width: 1px 1px 0 0; }
.frame .bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; } .frame .br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.rail { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 100; width: 1px; height: 38vh; background: var(--line2); pointer-events: none; }
.rail-fill { position: absolute; top: 0; left: 0; width: 1px; height: 100%; background: var(--sig); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 10px var(--sig); }
.rail-ticks { position: absolute; left: -4px; top: 0; bottom: 0; width: 9px;
  background: repeating-linear-gradient(to bottom, var(--line2) 0 1px, transparent 1px 10%); }
.concept-tag { position: fixed; z-index: 150; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-sig); background: var(--sig); padding: 5px 10px; border-radius: 2px; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 2px;
  font: 500 14px var(--mono); letter-spacing: .02em; border: 1px solid transparent; overflow: hidden; white-space: nowrap; will-change: transform; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-solid { background: var(--sig); color: var(--on-sig); box-shadow: 0 0 0 0 var(--glow), 0 0 30px var(--glow); }
.btn-solid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-solid:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: var(--line2); color: var(--fg); background: var(--glass); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--sig); color: var(--sig); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 12px; }

/* ---------- Typography ---------- */
.kick { display: flex; align-items: center; gap: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--mut); margin-bottom: 22px; }
.kick .tag, .hero-kick .tag { color: var(--sig); }
.h2 { font-weight: 600; font-size: clamp(34px, 5.2vw, 76px); line-height: .98; letter-spacing: -.045em; margin: 0 0 24px; max-width: 18ch; }
.h2.big { font-size: clamp(42px, 7vw, 110px); }
.h3 { font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 14px; }
.dim { color: var(--dim); }
.lead, .hero-sub, .h2, .hero-h, .contact-meta { text-shadow: 0 0 22px rgba(255,255,255,.95), 0 0 6px rgba(255,255,255,.9); }
.lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--mut); max-width: 56ch; margin: 0; }
.grad { background: linear-gradient(100deg, var(--sig), var(--cy) 55%, var(--vi)); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: gradmove 6s ease-in-out infinite alternate; }
@keyframes gradmove { to { background-position: 100% 0; } }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.reveal .rw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.reveal .rw > span { display: inline-block; will-change: transform; }
.scrub-words .sw { opacity: .14; transition: none; }
section { position: relative; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }

.glass { position: relative; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-radius: 6px; }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--mut); letter-spacing: .04em; }
.panel-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #2a2f3b; }
.panel-bar > i:nth-child(1) { background: #ff5f57; opacity: .8; } .panel-bar > i:nth-child(2) { background: #febc2e; opacity: .8; } .panel-bar > i:nth-child(3) { background: #28c840; opacity: .8; }
.panel-bar > span:first-of-type { margin-left: 10px; }
.panel-bar .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* tilt + spotlight */
.tilt { transform-style: preserve-3d; transition: border-color .3s; will-change: transform; }
.tilt .spot { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(59,91,165,.07), transparent 45%); }
.tilt::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--sig), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tilt:hover .spot, .tilt:hover::before { opacity: 1; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; }
.hero-kick { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mut); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 28px; }
.caret { width: 9px; height: 16px; background: var(--sig); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-h { font-weight: 650; font-size: clamp(46px, 9.4vw, 158px); line-height: .9; letter-spacing: -.06em; margin: 0 0 40px; }
.hero-h .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h .w { display: inline-block; will-change: transform; }
.hero-h .outline { -webkit-text-stroke-width: 2px; }
.glitch { position: relative; color: var(--fg); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--cy); mix-blend-mode: multiply; animation: gl1 4.2s infinite steps(1); clip-path: inset(0 0 100% 0); }
.glitch::after { color: var(--red); mix-blend-mode: multiply; animation: gl2 4.2s infinite steps(1); clip-path: inset(0 0 100% 0); }
@keyframes gl1 { 0%,88%,100% { clip-path: inset(0 0 100% 0); transform: none; } 89% { clip-path: inset(10% 0 60% 0); transform: translate(-6px, 0); } 91% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 0); } 93% { clip-path: inset(30% 0 45% 0); transform: translate(-3px, 0); } 95% { clip-path: inset(80% 0 5% 0); transform: translate(4px, 0); } }
@keyframes gl2 { 0%,88%,100% { clip-path: inset(0 0 100% 0); transform: none; } 90% { clip-path: inset(65% 0 10% 0); transform: translate(6px, 0); } 92% { clip-path: inset(15% 0 70% 0); transform: translate(-5px, 0); } 94% { clip-path: inset(40% 0 35% 0); transform: translate(3px, 0); } }
.hero-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.hero-sub { font-size: clamp(16px, 1.4vw, 20px); color: var(--mut); margin: 0; max-width: 52ch; }
.hero-ctas { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.telemetry { margin-top: clamp(48px, 7vw, 90px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.tm { padding: 20px 20px 0 0; border-right: 1px solid var(--line); }
.tm + .tm { padding-left: 20px; } .tm:last-child { border-right: 0; }
.tm span.mono { font-size: 11px; color: var(--dim); letter-spacing: .06em; }
.tm b { display: flex; align-items: baseline; gap: 6px; font-size: clamp(30px, 3.4vw, 50px); font-weight: 600; letter-spacing: -.05em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.tm b em { font: 400 13px var(--mono); color: var(--mut); letter-spacing: 0; }
.tm b.fixed { color: var(--sig); }
.tm small { color: var(--mut); font-size: 13px; }
.scroll-cue { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .3em; color: var(--dim); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--sig), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.mq-sec { padding: 40px 0 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.mq-label { display: flex; justify-content: space-between; padding: 0 var(--pad); font-size: 11px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.mq { overflow: hidden; white-space: nowrap; }
.mq + .mq { margin-top: 14px; }
.mq-track { display: inline-flex; gap: 14px; will-change: transform; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 2px; font: 500 clamp(15px, 1.6vw, 22px) var(--sans); letter-spacing: -.02em; color: var(--mut); transition: color .25s, border-color .25s, background .25s; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); transition: background .25s, box-shadow .25s; }
.chip:hover { color: var(--fg); border-color: var(--sig); background: rgba(59,91,165,.05); }
.chip:hover::before { background: var(--sig); box-shadow: 0 0 10px var(--sig); }
.chip.n8n { color: #ff6d8a; border-color: rgba(255,109,138,.35); }

/* ---------- Problem / diff ---------- */
.problem { padding: 0; }
.pin-wrap { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 80px; }
.problem-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 40px; font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .12em; }
.progress-meta b { color: var(--sig); font-weight: 500; }
.mig-bar { height: 2px; background: var(--line); margin-top: 10px; }
.mig-bar i { display: block; height: 100%; width: 0; background: var(--sig); box-shadow: 0 0 12px var(--sig); transition: width .5s var(--ease); }
.diff-rows { list-style: none; margin: 0; padding: 8px 0; counter-reset: dr; }
.diff-rows li { counter-increment: dr; display: grid; grid-template-columns: 34px 22px 1fr; gap: 8px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line); position: relative; transition: background .5s; }
.diff-rows li:last-child { border-bottom: 0; }
.diff-rows li::before { content: counter(dr, decimal-leading-zero); font: 11px var(--mono); color: var(--dim); padding-top: 4px; }
.diff-rows .sym { font: 600 16px var(--mono); color: var(--red); transition: color .3s; }
.diff-rows .txt b { display: block; font-weight: 500; font-size: clamp(15px, 1.3vw, 18px); letter-spacing: -.015em; color: var(--fg); }
.diff-rows .txt small { display: block; margin-top: 3px; font: 11px var(--mono); color: var(--dim); letter-spacing: .04em; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s var(--ease); }
.diff-rows li.bad { background: rgba(255,77,109,.045); }
.diff-rows li.bad .txt b { color: #a0606c; }
.diff-rows li.ok { background: rgba(59,91,165,.05); }
.diff-rows li.ok .sym { color: var(--sig); }
.diff-rows li.ok .txt small { opacity: 1; transform: none; color: var(--sig); }
.diff-rows li.ok::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--sig); box-shadow: 0 0 12px var(--sig); }

/* ---------- Services horizontal ---------- */
.services { overflow: hidden; }
.hs-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 80px; }
.hs-head .h2 { max-width: 22ch; }
.hs-track { display: flex; gap: 18px; padding: 10px var(--pad) 0; will-change: transform; }
.svc { position: relative; flex: 0 0 clamp(300px, 30vw, 430px); min-height: 440px; padding: 26px; display: flex; flex-direction: column; color: var(--fg); }
.svc .idx { position: absolute; top: 14px; right: 20px; font: 700 96px var(--sans); letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line2); transition: -webkit-text-stroke-color .3s; }
.svc:hover .idx { -webkit-text-stroke-color: var(--sig); }
.svc .mod { font: 11px var(--mono); color: var(--sig); letter-spacing: .12em; text-transform: uppercase; }
.svc svg.micro { width: 100%; height: 110px; margin: 26px 0 24px; overflow: visible; }
.svc h3 { font-size: 26px; font-weight: 600; letter-spacing: -.035em; margin: 0 0 10px; line-height: 1.08; }
.svc p { color: var(--mut); font-size: 15px; margin: 0 0 18px; }
.svc .eg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.svc .eg span { font: 11px var(--mono); padding: 5px 8px; border: 1px solid var(--line); color: var(--mut); border-radius: 2px; }
.svc .go { margin-top: 18px; font: 12px var(--mono); color: var(--fg); display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.svc .go b { color: var(--sig); font-weight: 400; transition: transform .3s var(--ease); }
.svc:hover .go b { transform: translateX(6px); }
.micro .e { fill: none; stroke: var(--line2); stroke-width: 1.2; }
.micro .p { fill: none; stroke: var(--sig); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 10 300; animation: dash 2.6s linear infinite; filter: drop-shadow(0 0 4px var(--sig)); }
@keyframes dash { from { stroke-dashoffset: 310; } to { stroke-dashoffset: 0; } }
.micro .n { fill: var(--bg); stroke: var(--line2); stroke-width: 1.2; }
.micro .n.core { stroke: var(--sig); fill: rgba(59,91,165,.12); }
.micro .lbl { font: 9px var(--mono); fill: var(--dim); letter-spacing: .05em; }
.hs-progress { display: flex; align-items: center; gap: 16px; margin-top: 30px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; }
.hs-line { flex: 1; height: 1px; background: var(--line2); position: relative; }
.hs-line i { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--sig); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--sig); }

/* ---------- Live run ---------- */
.run { padding: clamp(100px, 12vw, 160px) 0; }
.run-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.run-ctrl button { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line2); color: var(--mut); padding: 10px 14px; border-radius: 2px; font-size: 13px; transition: all .25s; }
.run-ctrl button span { color: var(--dim); font-size: 11px; }
.run-ctrl button:hover { color: var(--fg); border-color: var(--fg); }
.run-ctrl button.on { background: var(--sig); color: var(--on-sig); border-color: var(--sig); }
.run-ctrl button.on span { color: rgba(255,255,255,.7); }
.run-stat { margin-left: auto; font-size: 12px; color: var(--dim); }
.run-stat b { color: var(--fg); font-weight: 500; }
.run-body { display: grid; grid-template-columns: 1.65fr 1fr; min-height: 470px; }
.run-graph { padding: 14px; border-right: 1px solid var(--line);
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.run-graph svg { width: 100%; height: 100%; display: block; overflow: visible; }
.g-edge { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.4; transition: stroke .3s; }
.g-edge.lit { stroke: rgba(198,255,61,.55); }
.g-edge.flow { stroke: var(--sig); stroke-dasharray: 4 8; animation: flow .8s linear infinite; opacity: .9; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.g-node rect.box { fill: var(--bg); stroke: rgba(255,255,255,.16); stroke-width: 1.2; transition: stroke .3s, fill .3s; }
.g-node .ic { fill: var(--bg2); stroke: rgba(255,255,255,.12); }
.g-node text.t { font: 600 14px var(--sans); fill: var(--fg); letter-spacing: -.01em; }
.g-node text.s { font: 10.5px var(--mono); fill: var(--dim); }
.g-node text.g { font: 600 13px var(--mono); fill: var(--mut); }
.g-node .port { fill: var(--bg); stroke: rgba(255,255,255,.3); }
.g-node.core rect.box { stroke: rgba(255,109,138,.6); }
.g-node.core text.g { fill: #ff6d8a; }
.g-node.hit rect.box { stroke: var(--sig); fill: #16264a; filter: drop-shadow(0 0 12px rgba(59,91,165,.35)); }
.g-node.hit text.g { fill: var(--sig); }
.g-node.hit .port { stroke: var(--sig); fill: var(--sig); }
.g-node.dim { opacity: .35; transition: opacity .4s; }
.pkt { fill: var(--sig); filter: drop-shadow(0 0 6px var(--sig)) drop-shadow(0 0 14px var(--sig)); }
.run-log { display: flex; flex-direction: column; min-width: 0; background: var(--bg2); }
.log-head { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--line); }
.run-log ol { list-style: none; margin: 0; padding: 12px 16px; font-size: 12px; line-height: 1.6; flex: 1; overflow: hidden; }
.run-log li { display: grid; grid-template-columns: 76px 14px 1fr; gap: 8px; padding: 3px 0; color: var(--mut); animation: logIn .35s var(--ease); }
.run-log li .ts { color: var(--dim); } .run-log li .ck { color: var(--sig); }
.run-log li .msg b { color: var(--fg); font-weight: 500; } .run-log li .msg code { color: var(--cy); font-family: inherit; }
.run-log li.done .ck, .run-log li.done .msg { color: var(--sig); }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } }

/* ---------- Systems ---------- */
.systems { padding: clamp(100px, 12vw, 160px) 0; }
.dossier { padding: clamp(22px, 3vw, 36px); margin-bottom: 18px; overflow: hidden; }
.dos-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 26px; }
.pill { padding: 5px 9px; border: 1px solid var(--line2); border-radius: 99px; }
.pill.live { color: var(--sig); border-color: rgba(59,91,165,.35); }
.dos-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(26px, 4vw, 60px); position: relative; }
.dos-grid p { color: var(--mut); margin: 0 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.chips span { font-size: 11px; padding: 6px 9px; background: var(--bg2); border: 1px solid var(--line); border-radius: 2px; color: var(--mut); }
.link { font-size: 13px; color: var(--sig); border-bottom: 1px solid rgba(59,91,165,.35); padding-bottom: 2px; }
.metric { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.metric-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.metric-num { font-weight: 700; font-size: clamp(90px, 12vw, 180px); line-height: .9; letter-spacing: -.07em; margin: 10px 0 12px; color: var(--sig); text-shadow: 0 0 40px rgba(59,91,165,.35); font-variant-numeric: tabular-nums; }
.metric-num i { font-style: normal; font-size: .45em; }
.metric-num.sm { font-size: clamp(64px, 8vw, 120px); display: flex; align-items: baseline; gap: 14px; }
.metric-num em { font: 400 16px var(--mono); color: var(--mut); letter-spacing: 0; text-shadow: none; }
.metric p.mono { font-size: 12px; color: var(--mut); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 10px; }
.bars i { flex: 1; height: calc(var(--h) * 100%); background: rgba(18,22,31,.07); transform-origin: bottom; transform: scaleY(0); }
.bars i.hi { background: var(--sig); box-shadow: 0 0 20px var(--glow); }
.bars-x { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); margin-top: 8px; text-transform: uppercase; letter-spacing: .1em; }
.stages { display: flex; gap: 4px; margin-top: 18px; }
.stages span { flex: 1; text-align: center; font-size: 10px; padding: 9px 0; border: 1px solid var(--line); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; transition: all .4s; }
.stages span.on { color: var(--fg); border-color: var(--line2); background: var(--bg2); }
.stages span.hi.on { background: var(--sig); color: var(--on-sig); border-color: var(--sig); }
.afu { margin-top: 18px; overflow: hidden; }
.afu-head { padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.afu-head p { color: var(--mut); margin: 0 0 14px; }
.afu-grid { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 0; padding: clamp(22px, 3vw, 36px); }
.afu-col { border: 1px solid var(--line); border-radius: 4px; padding: 16px; background: var(--bg2); min-height: 270px; }
.afu-lab { font-size: 11px; color: var(--sig); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.afu-call { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.6; }
.afu-call li { padding: 5px 0; color: var(--mut); animation: logIn .4s var(--ease); }
.afu-call li b { color: var(--cy); font-weight: 500; margin-right: 6px; }
.afu-call li.c b { color: #ff6d8a; }
.afu-mid { position: relative; display: grid; place-items: center; }
.afu-beam { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--sig), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: beam 1.2s linear infinite; opacity: 0; }
.afu.working .afu-beam { opacity: 1; }
@keyframes beam { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.afu-core { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; }
.afu-core::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(59,91,165,.35); animation: spin 8s linear infinite; }
.afu.working .afu-core { border-color: var(--sig); box-shadow: 0 0 30px var(--glow); }
.afu-core i { font-style: normal; font-size: 10px; color: var(--dim); }
.afu-mail { font-size: 14px; color: var(--fg); }
.afu-sub { font-size: 12px; color: var(--mut); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.afu-sub span { color: var(--fg); }
.afu-mail p { margin: 0; white-space: pre-wrap; color: var(--fg); line-height: 1.6; font-size: 14px; }
.afu-mail p::after { content: ""; display: inline-block; width: 7px; height: 15px; background: var(--sig); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite; }

/* ---------- n8n ---------- */
.n8n { padding: clamp(100px, 12vw, 160px) 0; }
.n8n-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: 30px; }
.code pre { margin: 0; padding: 18px 20px; font-size: 12.5px; line-height: 1.75; color: var(--mut); min-height: 330px; white-space: pre; overflow-x: auto; }
.code .k { color: #ff6d8a; } .code .s { color: var(--sig); } .code .c { color: var(--dim); } .code .n { color: var(--cy); } .code .p { color: var(--vi); }
.code .cur { display: inline-block; width: 8px; height: 15px; background: var(--sig); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-c { padding: 26px; min-height: 220px; }
.feat-c .fi { font-size: 11px; color: var(--sig); text-transform: uppercase; letter-spacing: .12em; }
.feat-c h3 { font-size: 22px; letter-spacing: -.03em; margin: 50px 0 8px; font-weight: 600; }
.feat-c p { color: var(--mut); margin: 0; font-size: 15px; }

/* ---------- Process git log ---------- */
.process { padding: clamp(100px, 12vw, 160px) 0; }
.gitlog { position: relative; padding-left: 46px; }
.git-line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line2); }
.git-line i { position: absolute; inset: 0; background: linear-gradient(var(--sig), var(--cy)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 14px var(--sig); }
.gitlog ol { list-style: none; margin: 0; padding: 0; }
.gitlog li { position: relative; display: grid; grid-template-columns: 220px 1fr 260px; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.gitlog li::before { content: ""; position: absolute; left: -41px; top: 38px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); transition: all .4s; }
.gitlog li.on::before { border-color: var(--sig); background: var(--sig); box-shadow: 0 0 0 5px rgba(59,91,165,.15), 0 0 18px var(--sig); }
.gitlog .hash { font: 12px var(--mono); color: var(--dim); }
.gitlog .hash b { display: block; color: var(--sig); font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.gitlog h3 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.05em; line-height: 1; margin: 0 0 10px; font-weight: 600; color: var(--dim); transition: color .4s; }
.gitlog li.on h3 { color: var(--fg); }
.gitlog p { margin: 0; color: var(--mut); max-width: 50ch; }
.gitlog .out { font: 12px var(--mono); color: var(--mut); border: 1px solid var(--line); padding: 12px 14px; border-radius: 3px; background: var(--bg2); }
.gitlog .out span { display: block; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }
.gitlog li.on .out { border-color: rgba(59,91,165,.3); color: var(--fg); }

/* ---------- Compare + FAQ ---------- */
.compare { padding: clamp(100px, 12vw, 160px) 0; }
.panel-bar .minus { color: var(--red); font-weight: 500; } .panel-bar .plus { color: var(--sig); font-weight: 500; }
.cmp-body { font-size: clamp(12px, 1.05vw, 14px); padding: 10px 0; }
.cmp-hunk { padding: 8px 18px; color: var(--vi); background: rgba(30,47,92,.05); font-size: 12px; }
.cmp-l { display: grid; grid-template-columns: 44px 22px 1fr; padding: 7px 18px; opacity: 0; transform: translateX(-12px); }
.cmp-l .ln { color: var(--dim); }
.cmp-l.m { background: rgba(255,77,109,.07); color: var(--red); } .cmp-l.m .sg { color: var(--red); }
.cmp-l.p { background: rgba(59,91,165,.06); color: var(--sig-d); } .cmp-l.p .sg { color: var(--sig); }
.cmp-l b { color: var(--fg); font-weight: 500; }
.faq { margin-top: 80px; }
.faq-head { font-size: 13px; color: var(--sig); margin-bottom: 18px; }
.q { border-top: 1px solid var(--line); }
.q:last-child { border-bottom: 1px solid var(--line); }
.q button { width: 100%; display: grid; grid-template-columns: 50px 1fr 30px; align-items: center; gap: 10px; background: none; border: 0; text-align: left; padding: 22px 0; }
.q button .qn { font: 12px var(--mono); color: var(--dim); }
.q button .qt { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.025em; font-weight: 500; transition: color .25s; }
.q button:hover .qt { color: var(--sig); }
.q button .qi { font: 18px var(--mono); color: var(--sig); transition: transform .4s var(--ease); justify-self: end; }
.q.open button .qi { transform: rotate(45deg); }
.q .a { height: 0; overflow: hidden; }
.q .a-in { padding: 0 30px 26px 60px; color: var(--mut); max-width: 80ch; }
.q .a-in p { margin: 0 0 10px; }
.q .a-in p::before { content: "> "; color: var(--sig); font-family: var(--mono); }

/* ---------- Contact ---------- */
.contact { padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.contact-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 34px; font-size: 13px; color: var(--mut); }
.term-body { padding: 20px; font-size: 13px; }
.term-intro { color: var(--sig); margin: 0 0 16px; }
.term label { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 10px; border-bottom: 1px dashed var(--line2); padding: 6px 0; transition: border-color .25s; }
.term label:focus-within { border-bottom-color: var(--sig); }
.term label.ta { align-items: start; }
.term label > span { color: var(--mut); } .term label > span::before { content: "> "; color: var(--dim); }
.term label:focus-within > span { color: var(--sig); }
.term label em { color: var(--red); font-style: normal; }
.term input, .term select, .term textarea { background: transparent; border: 0; outline: 0; padding: 8px 0; font-family: var(--mono); font-size: 14px; color: var(--fg); width: 100%; resize: vertical; caret-color: var(--sig); }
.term select option { background: var(--bg); }
.term ::placeholder { color: var(--dim); }
.term label.err { border-bottom-color: var(--red); } .term label.err > span { color: var(--red); }
.term .btn { margin-top: 22px; width: 100%; justify-content: center; }
.term-out { margin-top: 14px; font-size: 12px; min-height: 18px; color: var(--mut); white-space: pre-wrap; }
.term-out .g { color: var(--sig); } .term-out .r { color: var(--red); }

/* ---------- Footer ---------- */
.foot { padding-top: 40px; border-top: 1px solid var(--line); overflow: hidden; background: linear-gradient(transparent, var(--bg2)); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.foot-row a:hover { color: var(--sig); }
.giant { position: relative; font-weight: 800; font-size: 15.2vw; letter-spacing: -.07em; line-height: .78; text-align: center; margin-top: 40px; padding-bottom: 3vw; user-select: none; white-space: nowrap; }
.giant .g-outline { color: transparent; -webkit-text-stroke: 1px rgba(18,22,31,.13); }
.giant .g-fill { position: absolute; inset: 0; color: var(--sig);
  -webkit-mask-image: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), #000 0, transparent 70%);
  mask-image: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), #000 0, transparent 70%); text-shadow: 0 0 40px var(--glow); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gitlog li { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hud-top .btn-sm { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero-row, .problem-grid, .dos-grid, .n8n-grid, .contact-grid, .afu-head { grid-template-columns: 1fr; }
  .hero-ctas { justify-content: flex-start; }
  .telemetry { grid-template-columns: 1fr 1fr; }
  .tm:nth-child(2) { border-right: 0; } .tm:nth-child(3) { padding-left: 0; }
  .metric { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .run-body { grid-template-columns: 1fr; }
  .run-graph { border-right: 0; border-bottom: 1px solid var(--line); }
  .run-log ol { min-height: 240px; }
  .hs-track { flex-direction: column; }
  .svc { flex-basis: auto; min-height: 0; }
  .hs-progress { display: none; }
  .feat { grid-template-columns: 1fr; }
  .afu-grid { grid-template-columns: 1fr; gap: 14px; }
  .afu-mid { height: 120px; }
  .afu-beam { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(transparent, var(--sig), transparent); }
  .rail, .frame { display: none; }
}
@media (max-width: 600px) {
  .hud-status { display: none; }
  .hud-top .btn-sm { margin-left: auto; }
  .hud-top { gap: 12px; }
  .term label { grid-template-columns: 1fr; gap: 0; }
  .run-ctrl .run-stat { margin-left: 0; width: 100%; }
  .run-log li { grid-template-columns: 84px 12px 1fr; font-size: 10.5px; }
  .q button { grid-template-columns: 34px 1fr 24px; }
  .q .a-in { padding-left: 34px; padding-right: 0; }
  .concept-tag { bottom: 44px; font-size: 9px; white-space: nowrap; padding: 4px 8px; }
  .hero-h { font-size: clamp(42px, 13vw, 80px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}


/* ================= BLUEPRINT overrides ================= */
body { background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18,22,31,.075) 1px, transparent 1.2px); background-size: 26px 26px; }
.scan, .vignette { display: none; }
.grain { opacity: .03; }
#gl { transition: opacity .2s linear; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; background: linear-gradient(rgba(255,255,255,0), var(--bg)); z-index: -1; }
.glass { box-shadow: 0 1px 2px rgba(18,22,31,.04), 0 18px 50px -24px rgba(30,47,92,.22); }
.dark.glass { box-shadow: 0 30px 80px -30px rgba(15,23,41,.55); border-color: rgba(255,255,255,.06); }
.hud-top .btn-sm, .btn-solid { box-shadow: 0 8px 24px -8px rgba(59,91,165,.55); }
.btn-solid:hover { background: var(--sig-d); }
.btn-solid::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); }
.c-ring.big { background: var(--sig); }
.c-ring.hov { background: rgba(59,91,165,.06); }
.hero-h .outline { -webkit-text-stroke: 2px var(--fg); }
.grad { background-image: linear-gradient(100deg, var(--sig), var(--cy) 50%, var(--vi)); }
.chip { background: var(--bg); }
.chip:hover { background: var(--sig-soft); }
.chip::before { background: var(--line2); }
.diff-rows li.ok .txt b { color: var(--fg); }
.diff-rows li.bad { background: rgba(200,67,90,.04); }
.svc .idx { -webkit-text-stroke: 1px rgba(18,22,31,.12); }
.micro .n { stroke: rgba(18,22,31,.25); }
.micro .e { stroke: rgba(18,22,31,.14); }
.micro .p { filter: none; }
.metric-num { color: var(--sig); }
.bars i.hi { box-shadow: 0 8px 24px -6px var(--glow); }
.pill.live { background: var(--sig-soft); }
.stages span.hi.on { color: var(--on-sig); }
.gitlog li::before { background: var(--bg); }
.git-line i { background: linear-gradient(var(--sig), var(--cy)); box-shadow: none; }
.rail-fill, .mig-bar i, .hs-line i, .boot-bar i { box-shadow: none; }
.gitlog li.on::before { box-shadow: 0 0 0 5px rgba(59,91,165,.14); }
.diff-rows li.ok::after { box-shadow: none; }
.term label { border-bottom-color: rgba(18,22,31,.14); }
.giant .g-fill { color: var(--sig); }
.concept-tag { background: var(--fg); color: #fff; }
.dark .g-edge { stroke: rgba(255,255,255,.12); }
.dark .g-edge.lit { stroke: rgba(143,176,255,.55); }
.dark .g-node rect.box { fill: #0b1222; }
.dark .g-node .ic { fill: #16203a; }
.dark .g-node.hit rect.box { filter: drop-shadow(0 0 12px rgba(143,176,255,.35)); }
.dark .run-log { background: rgba(0,0,0,.2); }
.dark .afu-core { background: #0b1222; }
.dark .afu-core::before { border-color: rgba(143,176,255,.4); }
.dark .afu.working .afu-core, .afu.dark.working .afu-core { box-shadow: 0 0 30px rgba(143,176,255,.25); }
.dark .run-graph { background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); }
.dark .run-ctrl button.on span { color: rgba(11,18,36,.6); }
.dark .pkt { fill: var(--sig); }
.dark .afu-col { background: rgba(0,0,0,.22); }
.dark .afu-mail p { color: #d9e1f2; }
#boot .boot-grid { opacity: .6; }
.grad, .outline { text-shadow: none; }
.hero-h .grad { filter: drop-shadow(0 0 18px rgba(255,255,255,.9)); }

/* ---------- Round 2: native cursor, logos strip, no scroll-locking ---------- */
.hero { min-height: calc(100svh - 92px); padding-bottom: 56px; }
.logos { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.logos-in { display: flex; align-items: center; gap: 24px; height: 92px; }
.logos-lab { flex: 0 0 auto; font-size: 12px; color: var(--mut); letter-spacing: .04em; }
.lg-view { flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lg-track { display: flex; width: max-content; will-change: transform; }
.lg-track span { display: flex; align-items: center; padding: 0 22px; color: #8b909a; transition: color .2s, transform .3s var(--ease); }
.lg-track span:hover { color: var(--sig); transform: translateY(-2px); }
.lg-track svg { width: 26px; height: 26px; fill: currentColor; }
.problem .pin-wrap { min-height: 0; padding: clamp(90px, 11vw, 150px) 0; }
.services { overflow: visible; }
.hs-pin { min-height: 0; padding: clamp(90px, 11vw, 150px) 0; display: block; }
.hs-head { padding: 0; }
.hs-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0; transform: none !important; }
.svc { min-height: 0; flex: none; }
@media (max-width: 1000px) { .hs-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hs-track { grid-template-columns: 1fr; } .logos-in { height: 76px; gap: 14px; } .lg-track span { padding: 0 16px; } }

/* ---------- Performance pass ---------- */
.grain { display: none; }
.glass, .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
:root { --glass: #ffffff; }
.grad { animation: none; }
.hero-h .grad { filter: none; }
.btn { will-change: auto; }
.micro .p { animation-play-state: paused; }
.svc.inview .micro .p { animation-play-state: running; }

/* ---------- Hero sizing: headline scales with height too, so the logo strip always fits on the first screen ---------- */
.hero { min-height: calc(100svh - 92px); padding: clamp(88px, 13vh, 120px) 0 clamp(28px, 5vh, 56px); }
.hero-h { font-size: clamp(42px, min(9.4vw, 13.2vh), 158px); margin-bottom: clamp(20px, 4vh, 40px); }
.hero-kick { margin-bottom: clamp(14px, 3vh, 28px); }
.lg-view { padding: 6px 0; }
/* keep the logo strip clear of the fixed bottom bar; the shared header (68px) sits above the hero in the flow */
.hero { min-height: calc(100svh - 68px - 92px - 64px); padding-top: clamp(28px, 6vh, 64px); }
.frame .tl, .frame .tr { top: 80px; }

/* ---------- Fixes: logo clipping, header legibility, bottom bar on small screens ---------- */
.lg-track span { transition: color .2s; transform: none; }
.lg-track span:hover { transform: none; }
.lg-track svg { transition: transform .3s var(--ease); }
.lg-track span:hover svg { transform: translateY(-2px); }
.hud-top { background: var(--bg); border-bottom: 1px solid var(--line); padding-top: 14px; padding-bottom: 14px; }
@media (max-width: 900px) { .concept-tag { bottom: 12px; } }
/* the tool network lives beside the headline; on narrow screens there's no room for it */
@media (max-width: 900px) { #gl { display: none !important; } }

/* hero split on desktop: copy on the left, the live tool network in the right-hand column */
@media (min-width: 901px) {
  .hero-h { font-size: clamp(42px, min(5.7vw, 11.5vh), 104px); max-width: 64%; }
  .hero-kick { max-width: 62%; }
  .hero-row { grid-template-columns: 1fr; max-width: 58%; gap: 28px; }
  .hero-ctas { justify-content: flex-start; }
}


/* ================= Live site additions ================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--fg); color: #fff; padding: 10px 14px; border-radius: 6px; font: 500 14px var(--sans); }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sig); outline-offset: 3px; }
.nav a[href^="/"]::before { content: "/"; }
.more-link { margin-top: 26px; font-size: 13px; }
.more-link a { color: var(--sig); border-bottom: 1px solid rgba(59,91,165,.35); padding-bottom: 2px; }
.q .a-in a { color: var(--sig); text-decoration: underline; text-underline-offset: 3px; }
.faq-head { margin: 0 0 18px; font-weight: 400; }
.cmp-hunk span { display: block; }

/* footer: brand, link columns, legal row, wordmark */
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 30px; padding-bottom: 40px; }
.fcol h2 { font-size: 11px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 14px; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fcol a { color: var(--mut); font-size: 14px; transition: color .2s; overflow-wrap: anywhere; }
.fcol a:hover { color: var(--sig); }
.fbrand p { color: var(--mut); font-size: 14px; max-width: 36ch; margin: 16px 0 0; }
.foot-row { border-top: 1px solid var(--line); padding-top: 18px; }
.foot-row .legal { display: flex; gap: 18px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Enquiry: same structure and look as the form on the rest of the site ---------- */
.contact { --paper: #F6F5F1; --surface: #FFFFFF; --ink: #14171F; --t2: #4A4F5A; --t3: #686D76; --line-s: #E3E0D8; --line-2: #D2CEC3;
  --accent: #3B5BA5; --accent-d: #2C4682; --accent-soft: #E8EDF7; }
.contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
.contact .next { list-style: none; display: grid; gap: 18px; margin: 34px 0 0; padding: 0; counter-reset: n; }
.contact .next li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; font-size: 15px; color: var(--t2); }
.contact .next li::before { counter-increment: n; content: counter(n); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font: 600 12px var(--mono); }
.contact .next li b { color: var(--ink); display: block; font-weight: 600; }
.form-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -50px rgba(20,23,31,.45); }
.fc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line-s); background: var(--surface); }
.fc-head b { font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.fc-head span { font-family: var(--mono); font-size: 12px; color: var(--t3); }
.lead-form { padding: clamp(20px, 3vw, 28px); }
.fstep { border: 0; min-width: 0; margin: 0; padding: 0; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--t3); }
.inp, .lead-form select, .lead-form textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; min-height: 48px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23757A84' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.inp::placeholder, .lead-form textarea::placeholder { color: #9A9EA6; }
.inp:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp[aria-invalid=true], .lead-form textarea[aria-invalid=true], .lead-form select[aria-invalid=true] { border-color: #B4553E; }
.frow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 560px) { .frow { grid-template-columns: 1fr; } }
.f-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.lead-form .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; height: auto; padding: 0 26px;
  border-radius: 10px; font: 600 15.5px/1 var(--sans); letter-spacing: -.01em; cursor: pointer; border: 1px solid transparent; background: var(--accent); color: #fff;
  box-shadow: none; transition: background .18s, transform .18s, box-shadow .25s; }
.lead-form .btn:hover { background: var(--accent-d); transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(44,70,130,.7); }
.lead-form .btn .arw { transition: transform .22s; }
.lead-form .btn:hover .arw { transform: translateX(3px); }
.lead-form .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.f-fine { font-size: 13px; color: var(--t3); margin: 14px 0 0; text-align: center; }
.f-fine a { color: var(--t3); }
.f-err { display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #F8ECE7; border: 1px solid #EBCFC4; color: #7A3524; font-size: 14.5px; }
.f-err.on { display: block; }
.f-err a { color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* ================= n8n page components ================= */
.why8, .hosting, .standard, .fitsec { padding: clamp(100px, 12vw, 160px) 0; }
.qsec { padding-top: 0; }
.bp-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.bp-crumbs a { color: var(--dim); } .bp-crumbs a:hover { color: var(--sig); }
.bp-crumbs [aria-current] { color: var(--mut); }
.hero-usps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: var(--mut); }
.hero-usps li { display: flex; align-items: center; gap: 8px; }
.hero-usps b { color: var(--sig); font-weight: 500; }

/* why n8n + usage calculator */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.diffs { list-style: none; counter-reset: d; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.diffs li { counter-increment: d; position: relative; padding-left: 44px; color: var(--mut); font-size: 15.5px; }
.diffs li::before { content: "0" counter(d); position: absolute; left: 0; top: 1px; font: 500 12px var(--mono); color: var(--sig); border: 1px solid rgba(59,91,165,.3); border-radius: 4px; padding: 2px 6px; }
.diffs b { color: var(--fg); font-weight: 600; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
.calc-in { padding: 20px; }
.calc-ctl { display: grid; gap: 8px; margin-bottom: 18px; }
.calc-ctl label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--mut); margin-top: 8px; }
.calc-ctl label b { color: var(--sig); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-ctl input[type=range] { width: 100%; accent-color: var(--sig); height: 22px; }
.calc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.calc-rows li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); }
.cr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cr-top b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.cr-top span { font-size: 12px; color: var(--mut); }
.cr-top em { font-style: normal; font-size: 18px; color: var(--fg); font-variant-numeric: tabular-nums; }
.cr-bar { height: 6px; margin: 9px 0 7px; border-radius: 3px; background: rgba(18,22,31,.06); overflow: hidden; }
.cr-bar i { display: block; height: 100%; border-radius: 3px; background: #a3abba; transition: width .6s var(--ease); }
.calc-rows small { font-size: 11px; color: var(--dim); }
.calc-rows .cr-cloud .cr-bar i { background: var(--cy); }
.calc-rows .cr-self { border-color: rgba(59,91,165,.35); background: var(--sig-soft); }
.calc-rows .cr-self em { color: var(--sig); }
.calc-note { margin: 14px 0 0; font-size: 11px; line-height: 1.6; color: var(--dim); }

/* hosting options */
.host-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.host-c { padding: 24px; display: flex; flex-direction: column; }
.host-c .mod { font: 11px var(--mono); color: var(--sig); letter-spacing: .12em; text-transform: uppercase; }
.host-c .host-dia { width: 100%; height: 120px; margin: 18px 0 16px; overflow: visible; }
.host-dia .zone { fill: rgba(18,22,31,.02); stroke: rgba(18,22,31,.2); stroke-dasharray: 4 4; stroke-width: 1.2; }
.host-dia .zone.own { fill: rgba(59,91,165,.05); stroke: rgba(59,91,165,.5); }
.host-dia .zl { font: 9px var(--mono); fill: var(--mut); letter-spacing: .06em; text-transform: uppercase; }
.host-c.inview .micro .p, .host-c .micro .p { animation-play-state: running; }
.host-c h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 8px; }
.host-c p { color: var(--mut); font-size: 15px; margin: 0 0 18px; }
.host-c .best { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12px; color: var(--fg); }
.host-c .best span { display: block; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 3px; }
.private-ai { margin-top: 18px; overflow: hidden; }
.pai-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; padding: clamp(22px, 3vw, 34px); align-items: center; }
.pai-in p { color: var(--mut); margin: 0; }
.pai-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; }
.pai-flow li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(0,0,0,.2); color: var(--fg); }
.pai-flow b { color: var(--sig); font-weight: 500; }
.pai-flow span { color: var(--dim); font-size: 11px; }
.pai-flow li:nth-child(3) span { color: var(--sig); }
.setup { margin: 18px 0 0; font-size: 12px; color: var(--mut); text-align: center; letter-spacing: .04em; }

/* checklists (what every build includes, fit) */
.std-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chk { list-style: none; margin: 0; padding: 8px 0; }
.chk li { display: grid; grid-template-columns: 22px 28px 1fr; gap: 10px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--fg); }
.chk li:last-child { border-bottom: 0; }
.chk .ci { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--sig-soft); color: var(--sig); margin-top: 1px; }
.chk .ci svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chk .cn { font-size: 11px; color: var(--dim); padding-top: 3px; }
.chk.no .ci { background: rgba(200,67,90,.08); color: var(--red); }
.chk.no li { color: var(--mut); }
.js-anim .chk li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-anim .chk li.on { opacity: 1; transform: none; }

.rel-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 50px; }
.rel-links a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); transition: border-color .2s, transform .2s; }
.rel-links a:hover { border-color: rgba(59,91,165,.5); transform: translateY(-2px); }
.rel-links b { display: block; font: 600 15px var(--sans); color: var(--fg); letter-spacing: -.01em; margin-bottom: 4px; }
.rel-links span { font-size: 11.5px; color: var(--mut); }

@media (max-width: 1000px) { .host-grid { grid-template-columns: 1fr; } .host-c .host-dia { max-width: 420px; } }
@media (max-width: 900px) { .why-grid, .pai-in, .std-grid, .rel-links { grid-template-columns: 1fr; } }
/* a full-width card at the top of a card grid (diagram beside the text on desktop) */
.svc.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(24px, 4vw, 60px); align-items: start; }
.svc.wide .mod { grid-column: 1 / -1; }
.svc.wide svg.micro { grid-column: 1; grid-row: 2 / span 3; margin: 26px 0 0; }
.svc.wide h3, .svc.wide p, .svc.wide .eg { grid-column: 2; }
.svc.wide h3 { margin-top: 26px; font-size: 30px; }
@media (max-width: 760px) { .svc.wide { display: flex; } .svc.wide svg.micro { margin: 26px 0 24px; } .svc.wide h3 { margin-top: 0; font-size: 26px; } }

/* ================= Homepage hero: the inbound sorter ================= */
.hero-sort .hs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-sort .hero-h, .hero-sort .hero-kick, .hero-sort .hero-row { max-width: none; }
.hero-sort .hero-h { font-size: clamp(40px, min(4.9vw, 10.5vh), 92px); }
.hero-sort .hero-row { grid-template-columns: 1fr; gap: 26px; }
.hero-sort .hero-ctas { justify-content: flex-start; }

.sorter { --red-soft: rgba(200, 67, 90, .08); position: relative; overflow: hidden; border-radius: 10px; }
.so-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--mut); }
.so-title { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.so-live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(200,67,90,.5); animation: soPulse 1.6s infinite; transition: background .4s; }
.sorter.on .so-live { background: #2e9e6b; box-shadow: 0 0 0 0 rgba(46,158,107,.5); }
@keyframes soPulse { 70% { box-shadow: 0 0 0 7px rgba(0,0,0,0); } }
.so-toggle { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 5px 8px; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg); font: 500 11px var(--mono); color: var(--dim); cursor: pointer; }
.so-toggle i { position: relative; width: 30px; height: 16px; border-radius: 999px; background: rgba(200,67,90,.18); transition: background .35s; }
.so-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); transition: transform .35s var(--ease), background .35s; }
.sorter.on .so-toggle i { background: rgba(59,91,165,.2); }
.sorter.on .so-toggle i::after { transform: translateX(14px); background: var(--sig); }
.so-toggle .off { color: var(--red); } .sorter.on .so-toggle .off { color: var(--dim); }
.so-toggle .onl { color: var(--dim); } .sorter.on .so-toggle .onl { color: var(--sig); }

.so-stage { position: relative; height: clamp(380px, 52vh, 470px);
  background-image: radial-gradient(rgba(18,22,31,.06) 1px, transparent 1.2px); background-size: 18px 18px; }
.so-chaos { position: absolute; left: 0; top: 0; bottom: 0; width: 46%; transition: background .6s; }
.sorter.backlog:not(.on) .so-chaos { background: linear-gradient(90deg, rgba(200,67,90,.06), transparent); }
.so-lab, .so-wait { position: absolute; left: 14px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.so-lab { top: 10px; }
.so-wait { bottom: 10px; }
.so-wait b { font-weight: 500; color: var(--fg); transition: color .3s; }
.sorter.backlog:not(.on) .so-wait b { color: var(--red); }
.so-gate { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--line2); transition: background .5s, box-shadow .5s; }
.so-gate span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 6px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line2); font-size: 11px; color: var(--dim); white-space: nowrap; transition: all .5s; }
.sorter.on .so-gate { background: linear-gradient(transparent, var(--sig) 15%, var(--cy) 50%, var(--sig) 85%, transparent); box-shadow: 0 0 18px rgba(59,91,165,.35); }
.sorter.on .so-gate span { background: var(--sig); color: #fff; border-color: var(--sig); box-shadow: 0 8px 22px -8px rgba(59,91,165,.6); }
.sorter.on .so-gate::before { content: ""; position: absolute; left: -3px; width: 8px; height: 60px; border-radius: 4px; background: linear-gradient(transparent, rgba(111,146,232,.7), transparent); animation: soScan 2.4s linear infinite; }
@keyframes soScan { from { top: -60px; } to { top: 100%; } }
.so-gate.hit span { animation: soHit .45s var(--ease); }
@keyframes soHit { 40% { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 8px rgba(59,91,165,.15); } }
.so-lanes { position: absolute; right: 12px; top: 10px; bottom: 10px; left: calc(52% + 8px); display: grid; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.so-lane { position: relative; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); display: flex; flex-direction: column; transition: border-color .4s; }
.so-lane.hit { animation: soLane .6s var(--ease); }
@keyframes soLane { 30% { border-color: rgba(59,91,165,.55); box-shadow: 0 0 0 3px rgba(59,91,165,.08); } }
.so-lh { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; font-size: 10.5px; color: var(--dim); border-bottom: 1px solid var(--line); }
.so-lh b { color: var(--fg); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.so-lh em { margin-left: auto; font-style: normal; color: var(--sig); font-variant-numeric: tabular-nums; }
.so-lb { flex: 1; position: relative; }

.so-chip { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; border-radius: 6px;
  font: 500 11.5px var(--sans); letter-spacing: -.01em; white-space: nowrap; will-change: transform; transition: background .35s, border-color .35s, color .35s, opacity .4s, box-shadow .35s; }
.so-chip .so-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.so-chip .so-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; }
.so-chip .so-age { flex: 0 0 auto; font: 500 10px var(--mono); }
.so-chip.raw { background: #fff; border: 1px solid rgba(18,22,31,.14); color: var(--mut); box-shadow: 0 6px 16px -10px rgba(18,22,31,.35); }
.so-chip.raw .so-dot { background: #b7bcc6; }
.so-chip.raw .so-age { color: var(--dim); }
.so-chip.late { border-color: rgba(200,67,90,.4); }
.so-chip.late .so-age { color: var(--red); }
.so-chip.late .so-dot { background: var(--red); }
.so-chip.moving { z-index: 3; box-shadow: 0 10px 24px -12px rgba(59,91,165,.6); }
.so-chip.done { background: #fff; border: 1px solid rgba(59,91,165,.35); color: var(--fg); box-shadow: none; }
.so-chip.done .so-dot { background: var(--sig); }
.so-chip.done .so-age { color: #2e9e6b; }
.so-chip.lost { background: var(--red-soft); border: 1px dashed rgba(200,67,90,.5); color: var(--red); opacity: 0; transition: opacity 1.2s .2s, background .3s; }
.so-chip.out { opacity: 0; }
.so-foot { display: flex; justify-content: space-between; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }

@media (max-width: 900px) {
  .hero-sort .hs-grid { grid-template-columns: 1fr; }
  .hero-sort .hero-h { font-size: clamp(40px, 11vw, 72px); }
  .so-stage { height: 380px; }
  .so-chip { font-size: 10.5px; height: 28px; padding: 0 7px; gap: 5px; }
  .so-lh span { display: none; }
  .so-top { padding: 10px 12px; }
  .so-toggle { gap: 6px; font-size: 10px; padding: 4px 7px; }
}
@media (max-width: 420px) { .so-title { font-size: 0; gap: 0; } .so-title .so-live { margin-right: 2px; } }

/* ================= Homepage hero option: the engine ================= */
.engine { position: relative; overflow: hidden; border-radius: 10px; }
.en-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--mut); }
.en-title { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.en-led { width: 7px; height: 7px; border-radius: 50%; background: #2e9e6b; box-shadow: 0 0 0 0 rgba(46,158,107,.5); animation: soPulse 1.8s infinite; }
.en-status { color: #2e9e6b; }
.en-stage { position: relative; height: clamp(250px, 35vh, 380px);
  background: radial-gradient(ellipse at 50% 55%, rgba(232,237,247,.9), rgba(255,255,255,0) 70%); }
.en-stage canvas { display: block; width: 100%; height: 100%; }
.en-tip { position: absolute; left: 0; top: 0; z-index: 3; max-width: 220px; padding: 9px 11px; border-radius: 6px; background: var(--fg); color: #e8edf7; font-size: 11px; line-height: 1.45;
  pointer-events: none; opacity: 0; transition: opacity .15s; }
.en-tip.on { opacity: 1; }
.en-tip b { display: block; color: #8fb0ff; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.en-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.en-vol { display: inline-flex; align-items: center; gap: 4px; }
.en-vol span { margin-right: 6px; text-transform: uppercase; letter-spacing: .08em; }
.en-vol button { min-width: 38px; height: 26px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 4px; background: var(--bg); font: 500 11px var(--mono); color: var(--mut); cursor: pointer; transition: all .2s; }
.en-vol button:hover { border-color: var(--sig); color: var(--sig); }
.en-vol button.on { background: var(--sig); border-color: var(--sig); color: #fff; }
.en-stats { display: inline-flex; gap: 16px; }
.en-stats b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.en-stats b.en-q { color: #2e9e6b; }
.en-log { list-style: none; margin: 0; padding: 7px 16px; min-height: 68px; border-top: 1px solid var(--line); background: var(--bg2); font-size: 11px; }
.en-log li { display: grid; grid-template-columns: 64px 70px 1fr; gap: 8px; padding: 2px 0; color: var(--mut); animation: enIn .35s var(--ease); white-space: nowrap; overflow: hidden; }
.en-log li span { color: var(--dim); } .en-log li b { color: var(--sig); font-weight: 500; } .en-log li em { font-style: normal; color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
@keyframes enIn { from { opacity: 0; transform: translateY(-6px); } }
.en-foot { display: flex; justify-content: space-between; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }
@media (max-width: 900px) { .en-stage { height: 320px; } .en-log li { grid-template-columns: 58px 62px 1fr; font-size: 10.5px; } }
@media (hover: none) { .en-foot span:last-child { display: none; } }

/* ================= Homepage hero option: flow (phone version sits under the buttons) ================= */
.flow-m { display: none; }
@media (max-width: 900px) {
  .flow-m { display: block; position: relative; height: 300px; margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background-image: radial-gradient(rgba(18,22,31,.05) 1px, transparent 1.2px); background-size: 18px 18px; }
  .flow-m canvas { display: block; width: 100%; height: 100%; }
}
