/* AINLAB — engineering board: light grey ground, thin rules, black active tiles, one orange accent. */
:root {
  --bg: #e6e6e4;
  --panel: #ededeb;
  --paper: #f4f4f2;
  --ink: #141414;
  --ink-2: #2b2b29;
  --mute: #66665f;
  --line: #c6c6c1;
  --line-2: #a9a9a3;
  --o: #ff5a1f;
  --side-l: #dcdcd9;
  --side-r: #cfcfcb;
  --top-h: 64px;
  --pad: clamp(16px, 3vw, 40px);
  --display: 'Tektur', 'Arial Narrow', sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--o); color: var(--ink); }
:focus-visible { outline: 2px solid var(--o); outline-offset: 3px; }
.mono-s { font: 700 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0; }
.sq { display: inline-block; width: 12px; height: 12px; background: var(--o); flex-shrink: 0; }
.link { font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.link:hover { color: var(--o); border-color: var(--o); }

/* buttons: the reference's black button with an orange edge */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--black { background: var(--ink); color: var(--bg); box-shadow: inset 4px 0 0 var(--o); }
.btn--black:hover { background: var(--ink-2); }
.btn--wide { width: 100%; height: 54px; }

/* logo: AI ▢ LAB */
.logo { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font: 900 20px/1 'Archivo', var(--display); font-stretch: 125%; letter-spacing: -.01em; color: var(--ink); }
.logo__box { width: 1.3em; height: 1.37em; margin: 0 .05em; overflow: visible; }

/* header */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); }
/* header logo sits centred over the steps column of the board below (same 250px column) */
.top > .logo { width: 252px; flex-shrink: 0; justify-content: center; font-size: 28px; }
.top__nav { margin-left: auto; display: flex; gap: 22px; }
.top__nav a { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.top__nav a:hover { color: var(--o); }
.top__cta { height: 40px; padding: 0 16px; font-size: 12px; }
.langs { display: flex; border: 1px solid var(--line); }
.langs > * { font: 700 11px/1 var(--mono); letter-spacing: .06em; padding: 8px 8px; text-decoration: none; color: var(--mute); }
.langs > * + * { border-left: 1px solid var(--line); }
.langs a:hover { color: var(--ink); background: var(--paper); }
.langs [aria-current] { color: var(--bg); background: var(--ink); }
.link--btn { background: none; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; padding: 0 0 6px; align-self: flex-start; color: var(--ink); }
.dia .box--chat, .dia .tag--chat { cursor: pointer; }
.dia .box--chat:hover .box__lid, .dia .box--chat:focus-visible .box__lid { fill: #fff3ec; }
.dia .box--chat:focus { outline: none; }
.dia .packet { fill: var(--o); }
.dia .packet--halo { fill: none; stroke: var(--o); stroke-width: 1.2; opacity: .5; }

/* ---------- the system board ---------- */
.sys { position: relative; }
.sys__stage { padding: 14px var(--pad) 18px; }
.sys__board { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(300px, 400px); grid-template-rows: auto 1fr;
  grid-template-areas: "steps view meta" "talk view story"; border: 1px solid var(--line); background: var(--panel); min-height: 640px; }
.sys__steps { grid-area: steps; list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); }
.sys__steps li { border-bottom: 1px solid var(--line); }
.sys__steps button { width: 100%; height: 54px; padding: 0 22px; border: 0; background: transparent; text-align: left; cursor: pointer; font: 700 12px/1 var(--mono); letter-spacing: .06em; color: var(--ink); position: relative; transition: background-color .35s var(--ease), color .35s; }
.sys__steps button:hover { background: #e2e2df; }
.sys__steps li.is-on button { background: var(--ink); color: var(--bg); }
.sys__steps li.is-on button::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--o); }
.sys__talk { grid-area: talk; border-right: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.sys__talk p:not(.mono-s) { margin: 0; font-size: 14px; line-height: 1.5; }
.sys__talk .link { align-self: flex-start; margin-top: 6px; }
.sys__view { grid-area: view; position: relative; display: grid; place-items: center; padding: 18px; min-width: 0; overflow: hidden; }
.sys__meta { grid-area: meta; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 24px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 180px; }
.sys__count { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.sys__count b { font: 600 34px/1 var(--display); }
.sys__count span { font: 700 12px/1 var(--mono); color: var(--mute); }
.sys__rule { display: flex; align-items: center; gap: 12px; }
.sys__rule i { flex: 1; height: 1px; background: var(--line-2); }
.sys__story { grid-area: story; border-left: 1px solid var(--line); background: var(--paper); position: relative; padding: 28px 26px; display: grid; }
.slide { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.slide__h { margin: 0; font: 600 clamp(22px, 2.05vw, 32px)/1.12 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.slide__p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.slide__stack { padding-top: 14px; border-top: 1px solid var(--line); }
.slide__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sys__bar { height: 2px; background: var(--line); margin-top: 10px; }
.sys__bar i { display: block; height: 100%; background: var(--o); transform-origin: left; transform: scaleX(0); }

/* with JavaScript the board pins and the story becomes one slide at a time */
.js .sys { height: 620svh; }
.js .sys__stage { position: sticky; top: var(--top-h); height: calc(100svh - var(--top-h)); display: flex; flex-direction: column; }
.js .sys__board { flex: 1; min-height: 0; }
.js .slide { visibility: hidden; }
.js .slide.is-on { visibility: visible; }
html:not(.js) .slide + .slide { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
html:not(.js) .slide { grid-area: auto; }

/* the diagram */
.dia { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.dia .grid { fill: none; stroke: var(--line); stroke-width: .7; opacity: .75; }
.dia .flow { fill: none; stroke: var(--o); stroke-width: 2.4; stroke-linecap: round; }
.dia .flow--dash { stroke-dasharray: .02 .015; }
.dia .box__lid { fill: #fff; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.dia .box__side { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.dia .box__side--l { fill: var(--side-l); }
.dia .box__side--r { fill: var(--side-r); }
.dia .box__stripe { fill: var(--o); }
.dia .box__glow { fill: var(--o); opacity: 0; }
.dia .box__label { font: 700 11px var(--mono); letter-spacing: .1em; fill: var(--ink); }
.dia .tag__box { fill: var(--ink); }
.dia .tag__text { font: 700 10.5px var(--mono); letter-spacing: .06em; fill: var(--bg); }
.dia .tag__lead { fill: none; stroke: var(--ink); stroke-width: .9; }
.dia .tag__dot { fill: var(--o); }
.dia .ghost polygon, .dia .ghost path { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.js .dia .flow:not(.flow--dash) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .dia .flow--dash, .js .dia .tag, .js .dia .ghost { opacity: 0; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 9vw, 130px) var(--pad) 0; max-width: 1440px; margin: 0 auto; }
.sec__head { display: grid; grid-template-columns: minmax(160px, 250px) minmax(0, 1fr); gap: 14px 40px; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: clamp(30px, 4vw, 52px); }
.sec__head .mono-s { grid-row: span 2; padding-top: 10px; }
.sec__h { margin: 0; font: 600 clamp(26px, 3.2vw, 48px)/1.08 var(--display); text-transform: uppercase; letter-spacing: -.015em; max-width: 22ch; }
.sec__lede { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }

/* services as a spec sheet */
.svc { border: 1px solid var(--line); background: var(--panel); }
.svc__row { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr) 130px 150px; gap: 24px; align-items: baseline; padding: 22px 24px; border-top: 1px solid var(--line); transition: background-color .3s; }
.svc__row:first-child { border-top: 0; }
.svc__row:not(.svc__row--head):hover { background: var(--paper); }
.svc__row--head { padding: 12px 24px; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.svc__row b { font: 600 17px/1.25 var(--display); text-transform: uppercase; letter-spacing: -.01em; display: grid; grid-template-columns: 56px auto 1fr; align-items: center; gap: 0 12px; }
.svc__row b .la { grid-row: 1; }
.svc__row b i { font: 700 11px/1.9 var(--mono); font-style: normal; color: var(--o); }
.svc__row p { margin: 0; color: var(--ink-2); font-size: 15px; }
/* options under a module: name ····· price */
.svc__opts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; max-width: 560px; }
.svc__opts li { display: flex; align-items: baseline; gap: 10px; }
.svc__row .svc__opts span { font: 400 14px/1.35 var(--body); color: var(--ink-2); }
.svc__opts i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line-2); translate: 0 -4px; }
.svc__opts em { font: 600 13px/1.35 var(--mono); font-style: normal; color: var(--ink); white-space: nowrap; }
.svc__row span { font: 500 13px/1.3 var(--mono); color: var(--mute); }
.svc__row strong { font: 600 18px/1.2 var(--display); text-align: right; white-space: nowrap; }
.svc__note { margin: 18px 0 0; color: var(--mute); font-size: 14px; }

/* cases */
.cases { display: grid; gap: 18px; }
.case { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); }
.case--flip .case__shot { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.case__shot { margin: 0; border-right: 1px solid var(--line); overflow: hidden; background: #d8d8d5; }
.case__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; aspect-ratio: 16 / 10; }
.case__spec { padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.case__spec h3 { margin: 0; font: 600 clamp(20px, 1.8vw, 26px)/1.15 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.case__spec dl { margin: 0; display: grid; grid-template-columns: 82px 1fr; gap: 10px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.case__spec dt { font: 700 11px/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.case__spec dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.case__spec .link { align-self: flex-start; margin-top: auto; }
.case--text { grid-template-columns: 1fr; background: var(--paper); }
.case--text .case__spec { max-width: 900px; }

/* process */
.flow4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); position: relative; }
.flow4::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--o); transform-origin: left; transform: scaleX(var(--s, 1)); }
.flow4 li { padding: 26px 22px 0 0; }
.flow4 b { font: 700 12px/1 var(--mono); color: var(--o); letter-spacing: .1em; }
.flow4 h3 { margin: 14px 0 8px; font: 600 20px/1.2 var(--display); text-transform: uppercase; }
.flow4 p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 30ch; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 600 clamp(16px, 1.4vw, 19px)/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font: 500 26px/1 var(--mono); color: var(--o); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; max-width: 70ch; color: var(--ink-2); }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; border-top: 1px solid var(--line); margin-top: clamp(72px, 9vw, 130px); padding-top: 28px; }
.contact__text { display: flex; flex-direction: column; gap: 18px; }
.contact__auto { display: flex; gap: 12px; align-items: center; margin: 8px 0 0; font: 500 14px/1.45 var(--body); padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); max-width: 52ch; }
.form { border: 1px solid var(--line); background: var(--panel); padding: clamp(20px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; padding: 10px 0; font: 400 16px/1.4 var(--body); color: var(--ink); border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--o); }
.check { display: flex; gap: 10px; font-size: 13px; color: var(--mute); align-items: flex-start; }
.check input { margin-top: 3px; accent-color: var(--o); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { margin: 0; min-height: 1.4em; font-size: 14px; }
.form__msg.is-ok { color: var(--ink); }
.form__msg.is-err { color: #b3261e; }

/* footer */
.foot { margin-top: clamp(72px, 9vw, 120px); padding: 24px var(--pad) 0; border-top: 1px solid var(--line); overflow: hidden; }
.foot__row { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot p { margin: 0; color: var(--mute); font-size: 14px; }
.foot__big { display: flex; justify-content: center; font-size: clamp(54px, 15.5vw, 250px); letter-spacing: -.02em; padding: clamp(6px, 1.5vw, 22px) 0 clamp(22px, 3vw, 40px); margin-bottom: clamp(18px, 2.4vw, 30px); border-bottom: 1px solid var(--line); }
.foot { padding-bottom: 28px; }

/* ---------- AI chat ---------- */
/* launcher: the AI orb with a label that folds away after a few seconds and returns on hover */
.chat-fab { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: flex; align-items: center; flex-direction: row-reverse; gap: 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--bg); }
.chat-fab__orb { width: 118px; height: 118px; margin: -22px -22px -22px -18px; }
.chat-fab__label { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--ink); color: var(--bg); padding: 12px 14px 12px 16px; margin-right: -2px;
  box-shadow: inset 3px 0 0 #8b5cf6; max-width: 260px; overflow: hidden; transition: max-width .5s var(--ease), padding .5s var(--ease), opacity .3s; }
.chat-fab--min .chat-fab__label { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; }
.chat-fab--min:hover .chat-fab__label, .chat-fab--min:focus-visible .chat-fab__label { max-width: 260px; padding: 12px 14px 12px 16px; opacity: 1; }
.chat-fab:focus-visible { outline: none; }
.chat-fab:focus-visible .chat-fab__orb { outline: 2px solid #8b5cf6; outline-offset: -14px; border-radius: 50%; }
/* the orb itself; without WebGL a CSS nebula stands in */
.orb { display: block; position: relative; flex-shrink: 0; border-radius: 50%; }
.orb canvas { display: block; width: 100%; height: 100%; }
.orb:not(.orb--gl)::before { content: ''; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4d9ff 0 4%, #c55cf0 14%, #6d2ee8 40%, #1d0b4a 75%); box-shadow: 0 0 22px 4px rgba(124, 58, 237, .55); }
.chat__orb { width: 64px; height: 64px; margin: -16px -12px -16px -16px; }
.chat-fab[aria-expanded="true"] { visibility: hidden; }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 41; width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100svh - 96px)); display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--ink); box-shadow: 8px 8px 0 rgba(20,20,20,.12); }
.chat[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.chat__title { margin: 0; font: 600 13px/1.2 var(--display); text-transform: uppercase; }
.chat__sub { margin-top: 4px; font-size: 10px; }
.chat__close { margin-left: auto; width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; font: 400 22px/1 var(--body); cursor: pointer; color: var(--ink); }
.chat__close:hover { border-color: var(--ink); }
.chat__log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--o); }
.msg--me { align-self: flex-end; padding: 10px 12px; background: var(--ink); color: var(--bg); }
.msg--sys { align-self: stretch; max-width: none; font: 500 12.5px/1.45 var(--body); color: var(--mute); border: 1px dashed var(--line-2); padding: 10px 12px; }
.msg--sys a { color: var(--ink); }
.msg__dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.msg__dots i { width: 6px; height: 6px; background: var(--o); display: block; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat__chips button { border: 1px solid var(--line-2); background: transparent; padding: 7px 10px; font: 500 12.5px/1.2 var(--body); cursor: pointer; color: var(--ink); text-align: left; }
.chat__chips button:hover { border-color: var(--ink); background: #fff; }
.chat__form { display: flex; border-top: 1px solid var(--line); }
.chat__form textarea { flex: 1; resize: none; border: 0; padding: 14px; font: 400 15px/1.4 var(--body); background: #fff; color: var(--ink); max-height: 120px; }
.chat__form textarea:focus { outline: 0; box-shadow: inset 0 -2px 0 var(--o); }
.chat__form button { width: 54px; border: 0; background: var(--ink); color: var(--bg); font: 600 20px/1 var(--mono); cursor: pointer; }
.chat__form button:disabled { opacity: .45; cursor: default; }
.chat__note { margin: 0; padding: 8px 14px 10px; font-size: 11px; line-height: 1.4; color: var(--mute); border-top: 1px solid var(--line); }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .top > .logo { width: auto; font-size: 24px; }
  .top__nav { display: none; }
  .langs { margin-left: auto; }
  .sys__board { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); grid-template-areas: "view meta" "view story"; }
  .sys__steps, .sys__talk { display: none; }
  .svc__row { grid-template-columns: minmax(0, 1fr) 120px 130px; }
  .svc__row p, .svc__desc { grid-column: 1 / -1; grid-row: 2; }
  .svc__row--head > span:nth-child(2) { display: none; }
}
@media (max-width: 760px) {
  .logo, .top > .logo { font-size: 20px; }
  .top { gap: 12px; }
  .sys__stage { padding: 8px 10px 10px; }
  .sys__board { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "meta" "view" "story"; }
  .sys__meta { border-left: 0; min-height: 0; flex-direction: row; align-items: center; padding: 12px 16px; gap: 16px; }
  .sys__meta .sys__rule { flex: 1; }
  .sys__count b { font-size: 24px; }
  .sys__view { padding: 4px; }
  .sys__story { border-left: 0; border-top: 1px solid var(--line); padding: 18px 16px 20px; }
  .js .sys__story { min-height: 300px; }
  .slide { justify-content: flex-start; }
  .slide__h { font-size: 21px; }
  .slide__p { font-size: 14px; }
  .slide__stack { display: none; }
  .sec__head { grid-template-columns: 1fr; }
  .sec__head .mono-s { grid-row: auto; padding-top: 0; }
  .svc__row { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px 16px; }
  .svc__row span { grid-column: 1; grid-row: 3; }
  .svc__row strong { grid-column: 2; grid-row: 3; }
  .svc__row--head { display: none; }
  .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__shot { order: 0; border-left: 0; }
  .case__shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow4 { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .contact { grid-template-columns: 1fr; }
  .chat { right: 12px; bottom: 12px; height: calc(100svh - 84px); }
  .chat-fab { right: 8px; bottom: 8px; }
  .langs > * { padding: 7px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 560px) { .top__cta { display: none; } }

/* privacy and other text pages */
.doc__body { max-width: 900px; }
.doc__part { padding: 20px 0; border-top: 1px solid var(--line); }
.doc__part h2 { margin: 0 0 8px; font: 600 16px/1.3 var(--display); text-transform: uppercase; }
.doc__part p { margin: 0; color: var(--ink-2); max-width: 70ch; }
.msg__wait { margin: 8px 0 0; font: 500 12px/1.4 var(--body); color: var(--mute); }
.chat__chips[hidden] { display: none; }

/* ---------- opening scene: headline + node → orange band → claim → projects and clients ----------
   Without JS (or on small screens) the three frames simply stack. On desktop JS adds .is-live:
   the stage sticks under the header and one scrubbed timeline moves between the frames. */
.intro { --stage-h: max(600px, calc(100svh - var(--top-h))); --hs: min(7.2vw, 12.5svh); position: relative; border-bottom: 1px solid var(--line); }
.intro__stage { position: relative; }
.intro__rules { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--line), var(--line)) 22% 0 / 1px 100% no-repeat, linear-gradient(var(--line), var(--line)) 79% 0 / 1px 100% no-repeat; }
.intro__f { position: relative; padding: 0 var(--pad); }
.intro__f1 { min-height: var(--stage-h); }
.intro__side { display: flex; gap: 12px; max-width: 250px; margin: 0; font: 700 11px/1.55 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.intro__side .sq { margin-top: 2px; }
.intro__h { margin: 0; font: 600 var(--hs)/.96 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.intro__w { display: block; white-space: nowrap; }
.intro__photo { display: block; position: relative; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 1;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.intro__still, .intro__vid { display: block; width: 100%; height: 100%; object-fit: cover; transition: translate .12s ease-out; }
.intro__vid { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.intro__vid.is-shown { opacity: 1; }
.intro__photo:active .intro__still, .intro__photo:active .intro__vid { translate: 0 3px; }
.intro__photo:focus-visible { outline: none; }
.intro__photo:focus-visible .intro__still { outline: 2px solid var(--o); outline-offset: -18%; border-radius: 24px; }
.intro__rail { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: repeating-linear-gradient(118deg, transparent 0 62px, var(--line-2) 62px 63px); }
.intro__tags { list-style: none; margin: 0; padding: 0; }
.intro__tag { white-space: nowrap; font-size: 10px; }
.intro__cta { display: flex; height: 72px; text-decoration: none; color: var(--ink); }
.intro__arrow { width: 72px; display: grid; place-items: center; background: var(--o); color: var(--ink); font: 400 24px/1 var(--body); transition: width .35s var(--ease); }
.intro__ctatext { flex: 1; display: grid; place-items: center; padding: 0 22px; background: var(--paper); border: 1px solid var(--line); border-left: 0; font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.intro__cta:hover .intro__arrow { width: 92px; }
.intro__about p { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.intro__claim { margin: 0; font: 600 min(3.9vw, 7.4svh)/1.02 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.intro__claim span { display: block; white-space: nowrap; }
.intro__band, .intro__bars { display: none; }

.clients { border: 1px solid var(--line); background: #fff; }
.clients__label { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.clients__view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.clients__track { display: flex; width: max-content; }
.clients__list { display: flex; list-style: none; margin: 0; padding: 0; }
.clients__list[aria-hidden] { display: none; }
.js .clients__list[aria-hidden] { display: flex; }
/* the logos: flat, in their own colours, on white; no cards or frames. The strip drifts slowly sideways and stops under the pointer. */
.clients__list { gap: 0; padding: 4px 0 8px; }
.cl { --c: #151515; height: 116px; padding: 0 clamp(28px, 3.4vw, 50px); flex-shrink: 0; color: var(--c); }
.cl__in { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; color: inherit; text-decoration: none; transition: transform .45s var(--ease); }
.cl__in > * { flex-shrink: 0; }
a.cl__in:hover { transform: translateY(-3px); }
.cl__in:focus-visible { outline: 2px solid var(--o); outline-offset: -10px; }
.cl img { max-height: 34px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.cl--ink-dark img { filter: brightness(0); }
.cl--lookatu img { height: 28px; }
.cl__name { font: 600 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.cl--skedge svg { height: 32px; width: auto; }
.cl--skedge .cl__accent { fill: #c0601f; }
.cl--tortela svg { width: 40px; height: 40px; }
.cl--tortela span { font: 400 30px/1 Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.cl--tortela .cl__leaf { stroke: #b8955a; }
.cl--tortela .cl__leaf2 { fill: #b8955a; }
.cl--psa .cl__in { gap: 14px; font: 300 19px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; }
.cl--psa i { width: 30px; height: 30px; border: 1px solid currentColor; border-right-color: transparent; position: relative; display: grid; place-items: center; }
.cl--psa i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c48a5c; }
.cl--psa i::after { content: ""; position: absolute; right: -1px; top: 50%; width: 8px; height: 1px; background: currentColor; }
.cl--psa b { font-weight: 300; letter-spacing: 0; margin: 0 .06em 0 -.3em; color: #c48a5c; }
.cl--psa span { margin-right: -.32em; }
@media (prefers-reduced-motion: reduce) { .cl__in { transition: none; } a.cl__in:hover { transform: none; } }
.clients__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; background: var(--paper); border-top: 1px solid var(--line); }
.clients__foot .link { padding-bottom: 4px; }

/* desktop: frames are composed like the reference boards */
@media (min-width: 900px) {
  .intro__f1 > * { position: absolute; }
  .intro__side { left: var(--pad); top: 21%; }
  .intro__h { inset: 0; pointer-events: none; z-index: 3; }
  .intro__l1 { position: absolute; left: 29%; top: 5%; }
  .intro__l2 { position: absolute; right: 4%; bottom: 7%; }
  .intro__rail { left: 22%; right: 0; top: 45%; height: 15%; z-index: 1; }
  .intro__photo { left: max(-2vw, calc(var(--pad) - 60px)); top: 24%; width: min(40vw, 74svh, 720px); z-index: 2; }
  .intro__tags { inset: 0; pointer-events: none; }
  .intro__tag { position: absolute; }
  .intro__tag--1 { right: var(--pad); top: 30%; }
  .intro__tag--2 { right: calc(21% + 14px); top: 63%; }
  .intro__tag--3 { left: calc(22% + 14px); bottom: 5%; }
  .intro__cta { left: 0; bottom: 0; width: min(440px, 31vw); z-index: 4; }

  .intro__f2 { min-height: var(--stage-h); }
  .intro__f2 > * { position: absolute; }
  .intro__about { left: 58%; top: 9%; width: min(420px, 30vw); }
  .intro__claim { left: var(--pad); right: 0; top: 41%; height: 18%; display: flex; flex-direction: column; justify-content: center; z-index: 2; }
  .intro__f3 { padding: 0 var(--pad) 64px; }
  .clients { width: min(980px, 68vw); margin: 0 auto; }
}

/* live: one sticky stage, frames layered, GSAP scrubs between them */
.intro.is-live { height: calc(var(--stage-h) * 4.2); }
.intro.is-live .intro__stage { position: sticky; top: var(--top-h); height: var(--stage-h); overflow: hidden; }
.intro.is-live .intro__f { position: absolute; inset: 0; min-height: 0; }
.intro.is-live .intro__band { display: block; position: absolute; left: 0; width: 63%; top: 41%; height: 18%; z-index: 1; }
.intro.is-live .intro__fill { position: absolute; inset: 0; background: var(--o); clip-path: polygon(0 0, 100% 0, calc(100% - 13svh) 100%, 0 100%); }
.intro.is-live .intro__bars { display: block; position: absolute; left: 0; right: 0; top: 41%; height: 18%; z-index: 3; pointer-events: none; }
.intro.is-live .intro__bars i { position: absolute; top: 0; bottom: 0; width: 4.4vw; background: var(--o); transform: skewX(-31deg); }
.intro.is-live .intro__f3 { display: flex; align-items: flex-start; padding-top: calc(var(--stage-h) * .4); }

/* phones and tablets: a calm stacked version */
@media (max-width: 899px) {
  .intro { --hs: min(11vw, 58px); }
  .intro__rules, .intro__rail, .intro__tags { display: none; }
  .intro__f1 { min-height: 0; padding-top: 28px; display: flex; flex-direction: column; gap: 22px; }
  /* two phrases, each on its own pair of lines, with air between the lines and between the phrases */
  .intro__h { line-height: 1.06; letter-spacing: -.02em; }
  .intro__l1, .intro__l2 { display: block; text-align: left; }
  .intro__l2 { margin-top: .6em; text-align: right; }
  .intro__photo { width: min(520px, 100%); margin: -24px auto -32px; }
  .intro__cta { max-width: 420px; height: 60px; }
  .intro__arrow { width: 60px; }
  .intro__f2 { padding-top: 44px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 22px; }
  .intro__claim { font-size: min(7.4vw, 40px); background: var(--o); margin: 0 calc(var(--pad) * -1); padding: 22px var(--pad); }
  .intro__claim span { white-space: normal; }
  .intro__f3 { padding-bottom: 40px; }
  .cl { height: 92px; padding: 0 22px; }
  .cl img { max-height: 28px; } .cl--lookatu img { height: 22px; } .cl--skedge svg { height: 26px; }
  .cl--tortela svg { width: 32px; height: 32px; } .cl--tortela span { font-size: 24px; } .cl--psa .cl__in { font-size: 16px; }
}


/* ---------- legal: footer documents, form consent, cookie notice, documents ---------- */
.foot__docs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; font-size: 13px; }
.foot__docs a { color: var(--mute); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot__docs a:hover { color: var(--ink); border-color: var(--ink); }
.check a { color: var(--ink); }
.cookie { position: fixed; left: 14px; bottom: 14px; z-index: 39; width: min(420px, calc(100vw - 130px)); display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(20, 20, 20, .1); font-size: 13px; line-height: 1.45; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie .btn { height: 36px; padding: 0 14px; font-size: 12px; flex-shrink: 0; }
.doc__note { margin: 0 0 8px; padding: 12px 14px; border: 1px dashed var(--line-2); font-size: 14px; color: var(--mute); max-width: 70ch; }
.doc__part p + p { margin-top: 10px; }
.doc__part a, .doc__note a { color: var(--ink); }
.doc__others { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 24px 0 8px; border-top: 1px solid var(--line); font-size: 14px; }
.doc__others a { color: var(--ink); }

/* consent gate inside the text chat */
.msg--gate { max-width: 100%; padding: 14px; border: 1px solid var(--ink); background: var(--paper); font-size: 13.5px; }
.msg--gate p { margin: 0 0 12px; }
.gate__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gate__row .btn { height: 40px; }
.gate__row a { font-size: 13px; color: inherit; }

/* ---------- voice mode: a dark sky, the big orb, your words, the answer typed in the middle ---------- */
.voice-open, .voice-open body { overflow: hidden; }
.voice { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; color: #efeaff; overflow: hidden; }
.voice[hidden] { display: none; }
.voice__sky { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 72%, rgba(220,200,255,.7), transparent 60%), radial-gradient(1px 1px at 24% 80%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 88% 56%, rgba(255,255,255,.55), transparent 60%), radial-gradient(1px 1px at 40% 8%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 52%, rgba(200,220,255,.6), transparent 60%), radial-gradient(1px 1px at 52% 92%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 40%, #221a45 0%, #110d1f 50%, #08070c 100%); }
/* a perspective grid floor under the orb, drifting slowly toward the viewer */
.voice__floor { position: absolute; left: -60%; right: -60%; bottom: -6%; height: 52%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(172, 156, 255, .30) 1px, transparent 1px), linear-gradient(90deg, rgba(172, 156, 255, .30) 1px, transparent 1px);
  background-size: 70px 70px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); mask-image: linear-gradient(to bottom, transparent 0%, #000 45%); animation: voice-floor 5s linear infinite; }
@keyframes voice-floor { to { background-position: 0 70px; } }
@media (prefers-reduced-motion: reduce) { .voice__floor { animation: none; } }
.voice__head { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--pad); }
.voice__title { color: #b9a8ff; }
.voice__close { width: 44px; height: 44px; border: 1px solid rgba(239, 234, 255, .3); background: transparent; color: inherit; font: 300 26px/1 var(--body); cursor: pointer; border-radius: 50%; }
.voice__close:hover, .voice__close:focus-visible { border-color: #efeaff; outline: none; }
.voice__stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 var(--pad) 12px; text-align: center; }
.voice__orbbtn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; flex-shrink: 0; }
.voice__orbbtn:disabled { cursor: default; opacity: .55; }
.voice__orbbtn:focus-visible { outline: none; }
.voice__orbbtn:focus-visible .voice__orb::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; box-shadow: 0 0 0 2px #c4b5fd; }
.voice__orb { width: min(46vmin, 400px); height: min(46vmin, 400px); }
.voice[data-mode="answering"] .voice__orb, .voice[data-mode="thinking"] .voice__orb { width: min(30vmin, 260px); height: min(30vmin, 260px); }
.voice__orb { transition: width .7s var(--ease), height .7s var(--ease); }
.voice__status { margin: 0; min-height: 1.4em; font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #b9a8ff; }
.voice__you { margin: 0; max-width: 46ch; min-height: 1.4em; font-size: 15px; color: rgba(239, 234, 255, .62); }
.voice__you:not(:empty)::before { content: '“'; } .voice__you:not(:empty)::after { content: '”'; }
.voice__answer { max-width: 820px; min-height: 2em; font: 500 clamp(19px, 2.3vw, 30px)/1.42 var(--body); color: #fff; text-wrap: pretty; overflow-y: auto; max-height: 38svh; }
.voice__caret { display: inline-block; width: .5em; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: #a78bfa; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.voice__gate { max-width: 460px; padding: 18px 20px; border: 1px solid rgba(239, 234, 255, .28); background: rgba(20, 10, 50, .55); text-align: left; font-size: 14px; line-height: 1.5; }
.voice__gate[hidden], .voice__fallback[hidden] { display: none; }
.voice__gate p { margin: 0 0 14px; }
.voice__gate .btn { background: #efeaff; color: #140a33; border-color: #efeaff; height: 42px; }
.voice__gate .btn:hover { background: #fff; }
.voice__gate a, .voice__fallback .link { color: #d8ccff; border-color: #d8ccff; }
.voice__fallback .link { background: none; border: 0; border-bottom: 1px solid #d8ccff; padding: 0 0 5px; cursor: pointer; font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.voice__note { margin: 0; padding: 0 var(--pad) 18px; text-align: center; font-size: 12px; color: rgba(239, 234, 255, .5); }
@media (max-width: 560px) {
  .voice__orb { width: 64vmin; height: 64vmin; }
  .voice[data-mode="answering"] .voice__orb, .voice[data-mode="thinking"] .voice__orb { width: 38vmin; height: 38vmin; }
  .voice__answer { max-height: 42svh; }
  .cookie { width: calc(100vw - 112px); flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .voice__caret { animation: none; } .voice__orb { transition: none; } }


/* ---------- isometric line drawings (src/lineart.mjs) ---------- */
.la { display: block; overflow: visible; --la-bg: var(--bg); }
.svc .la { --la-bg: var(--panel); }
.la-f { fill: var(--la-bg); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.la-l { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.la-f.la-o { fill: var(--o); }
.la-f.la-floor { fill: none; stroke: var(--line-2); stroke-width: .8; }
.la-l.la-grid { stroke: var(--line-2); stroke-width: .7; }
.la-l.la-o-l { stroke: var(--o); stroke-width: 1.7; }
.la-l.la-thick { stroke-width: 3.2; }
.la-d { fill: var(--ink); } .la-d.la-o-d { fill: var(--o); }
.la--scene { width: auto; max-width: 100%; height: 150px; margin: 0 0 22px; }
.la--icon { width: 56px; height: 46px; }
.svc__row:not(.svc__row--head):hover .la { --la-bg: var(--paper); }
@media (max-width: 760px) { .la--scene { height: 120px; } .la--icon { width: 44px; height: 36px; } .svc__row b { grid-template-columns: 44px auto 1fr; } }


/* ---------- «documents → AI» section ---------- */
.ai__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 32px 64px; align-items: start; }
.ai__h { min-width: 0; overflow-wrap: anywhere; margin: 14px 0 0; font: 600 clamp(32px, 4.4vw, 64px)/1.08 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
/* corner brackets: top-left before the words, bottom-right after them; --brk is how far they sit out */
.brk { --brk: .14em; position: relative; display: inline-block; padding: 0 .16em; white-space: nowrap; }
.brk::before, .brk::after { content: ''; position: absolute; width: .3em; height: .34em; border: 0 solid var(--o); }
.brk::before { left: calc(var(--brk) * -1 + .14em); top: .02em; border-left-width: .07em; border-top-width: .07em; }
.brk::after { right: calc(var(--brk) * -1 + .14em); bottom: .02em; border-right-width: .07em; border-bottom-width: .07em; }
.ai__side { padding-top: 34px; }
.ai__side p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.ai__go { display: flex; gap: 10px; flex-wrap: wrap; }
.ai__art { margin: clamp(24px, 4vw, 56px) 0 0; }
.la--ai { width: 100%; max-width: 1080px; height: auto; margin: 0 auto; }
.la-t { fill: var(--ink); font-family: var(--mono); font-weight: 700; letter-spacing: .04em; }
.la-label { font-size: 5.2px; letter-spacing: .14em; }
.la-tokt { fill: var(--ink); }
.la-l.la-thick-l { stroke-width: 2.2; }
@media (max-width: 860px) { .ai__top { grid-template-columns: minmax(0, 1fr); } .ai__side { padding-top: 0; } }
@media (max-width: 560px) { .ai__h { font-size: clamp(24px, 7.2vw, 40px); } .brk { white-space: normal; } }

/* /prices — the full price list (site/src/prices.mjs) */
.pr__draft { margin: 0; padding: 10px 16px; background: var(--ink, #141414); color: #fff; font: 600 13px/1.4 var(--mono); text-align: center; }
.pr__body { padding-bottom: 80px; }
.pr__how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; border: 1px solid var(--line); background: var(--panel); }
.pr__how div { padding: 16px 18px; border-left: 1px solid var(--line); }
.pr__how div:first-child { border-left: 0; }
.pr__how dt { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--o); margin-bottom: 8px; }
.pr__how dd { margin: 0; font-size: 14px; color: var(--ink-2, #333); }
.pr__nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; padding: 10px 0; background: var(--bg, #e6e6e4); border-bottom: 1px solid var(--line); }
.pr__nav a { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border: 1px solid var(--line); color: var(--ink, #141414); text-decoration: none; background: var(--panel); }
.pr__nav a:hover { border-color: var(--ink, #141414); box-shadow: inset 0 -2px 0 var(--o); }
.pr__grp { margin-top: 48px; scroll-margin-top: 70px; }
.pr__h { font: 600 26px/1.15 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 14px; }
.pr__h::before { content: ''; display: inline-block; width: 18px; height: 3px; background: var(--o); margin: 0 12px 6px 0; }
.pr__lede { max-width: 760px; margin: -4px 0 16px; color: var(--ink-2, #333); }
.pr__row b { grid-template-columns: auto 1fr; }
.pr__new { color: var(--o); font: 700 13px var(--mono); margin-left: 6px; }
.pr__extra ul { margin: 0; padding: 18px 24px 18px 42px; border: 1px solid var(--line); background: var(--panel); display: grid; gap: 8px; }
.pr__cta { margin-top: 48px; display: grid; gap: 12px; justify-items: start; }
.svc__all { color: var(--ink, #141414); font-weight: 600; text-decoration: underline; text-decoration-color: var(--o); text-underline-offset: 4px; margin-left: 6px; }
@media (max-width: 900px) { .pr__how { grid-template-columns: 1fr 1fr; } .pr__how div:nth-child(3) { border-left: 0; } .pr__how div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .pr__how { grid-template-columns: 1fr; } .pr__how div { border-left: 0; border-top: 1px solid var(--line); } .pr__how div:first-child { border-top: 0; } .pr__h { font-size: 21px; } }
.svc__row.pr__row b > span { font: inherit; color: inherit; letter-spacing: inherit; }
@media (max-width: 760px) { .pr__nav { position: static; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .pr__nav a { white-space: nowrap; } }
/* /prices: «Нужно быстрее» */
.pr__rushbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--line); background: var(--panel); }
.pr__rushbar p { margin: 0; font-size: 14px; color: var(--mute); flex: 1; min-width: 220px; }
.pr__switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pr__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pr__switch i { position: relative; width: 42px; height: 22px; border: 1px solid var(--ink); background: var(--paper); transition: background .2s; }
.pr__switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--ink); transition: transform .2s; }
.pr__switch input:checked + i { background: var(--o); border-color: var(--o); }
.pr__switch input:checked + i::after { transform: translateX(20px); background: #fff; }
.pr__switch input:focus-visible + i { outline: 2px solid var(--o); outline-offset: 2px; }
.pr__switch b { color: var(--o); }
.pr__rush { display: none; }
.pr--rush .pr__row--rush .pr__std { display: none; }
.pr--rush .pr__row--rush .pr__rush { display: inline; }
.pr--rush .pr__row--rush strong { color: var(--o); }
.pr__row em { font-style: normal; }
@media (prefers-reduced-motion: reduce) { .pr__switch i, .pr__switch i::after { transition: none; } }
.pr__cta { margin-top: 6px; gap: 28px; } .pr__cta .svc__note { margin: 0; }
.svc__row.pr__row strong > span { font: inherit; color: inherit; letter-spacing: inherit; }
.pr__langs { margin-left: auto; margin-right: 22px; display: flex; gap: 4px; font: 700 11px/1 var(--mono); letter-spacing: .08em; }
.pr__langs a, .pr__langs b { padding: 6px 7px; border: 1px solid transparent; color: var(--mute); text-decoration: none; }
.pr__langs b { color: var(--ink); border-color: var(--ink); } .pr__langs a:hover { color: var(--ink); border-color: var(--line); }
@media (max-width: 560px) { .pr__langs { margin-right: 10px; } .pr__langs a, .pr__langs b { padding: 5px 4px; } }

/* ---------- ₽ / $ / € switch in the price column header (rates refreshed on the server every 3 hours) ---------- */
.svc__ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc__ph > em { font-style: normal; }
.fx { display: inline-flex; border: 1px solid var(--line); }
.fx[hidden] { display: none; }
.fx button { appearance: none; border: 0; background: transparent; color: var(--mute); font: 700 11px/1 var(--mono); padding: 6px 7px; min-width: 24px; cursor: pointer; transition: background-color .2s, color .2s; }
.fx button + button { border-left: 1px solid var(--line); }
.fx button:hover { color: var(--ink); background: var(--paper); }
.fx button[aria-pressed="true"] { color: var(--bg); background: var(--ink); }
.fx button:focus-visible { outline: 2px solid var(--o); outline-offset: 1px; }
.fx__note { margin: 12px 0 0; }
@media (max-width: 760px) {
  .svc__row--head:has(.fx:not([hidden])) { display: flex; justify-content: flex-end; padding: 10px 16px; }
  .svc__row--head:has(.fx) > span:not(.svc__ph) { display: none; }
  .svc__row--head .svc__ph > em { display: none; }
  .fx button { padding: 10px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .fx button { transition: none; } }

/* ---------- «Система»: a white studio with the 3D scene (2026-11-14) ----------
   The look of the owner's reference renders: white clay modules, soft shadows, orange signal. The board is a
   soft-cornered window into the studio; the steps, the story and the small cards float over the scene.
   Without .js (no script, reduced motion) the same content stacks: the still picture, then every slide. */
.sys { --studio: #f3f3f1; --float: 0 18px 50px rgba(28, 26, 22, .10), 0 3px 10px rgba(28, 26, 22, .05); }
.sys .sys__board { display: block; position: relative; border: 0; background: var(--studio); border-radius: 24px; overflow: hidden; min-height: 0; }
.sys .sys__view { position: relative; padding: 0; display: block; aspect-ratio: 16 / 10; min-width: 0; overflow: hidden; }
.sys3d { position: absolute; inset: 0; }
.sys3d__still, .sys3d__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sys3d__still { object-fit: cover; object-position: 42% 50%; transition: opacity .9s var(--ease); }
.sys3d__gl { opacity: 0; transition: opacity .9s var(--ease); touch-action: pan-y; }
.sys3d.is-3d .sys3d__gl { opacity: 1; }
.sys3d.is-3d .sys3d__still { opacity: 0; }
.sys3d__tags { position: absolute; inset: 0; pointer-events: none; display: none; }
.sys3d.is-3d .sys3d__tags { display: block; }
.sys3d__tag { position: absolute; left: 0; top: 0; margin: 0; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--float);
  font: 600 12.5px/1 var(--body); letter-spacing: .03em; color: var(--ink); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; will-change: transform; }
.sys3d__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--o); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); flex: none; }
.sys3d__tag b { font-weight: 600; color: var(--o); }
.sys3d__tag.is-on { opacity: 1; visibility: visible; }
.sys3d__tag--chat { pointer-events: auto; cursor: pointer; transition: opacity .4s var(--ease), visibility .4s, background-color .2s; }
.sys3d__tag--chat:hover { background: #fff6f1; }
.sys3d__tag--chat:focus-visible { outline: 2px solid var(--o); outline-offset: 3px; }

.sys .sys__steps { display: none; }
.sys .sys__meta { display: none; }
.sys .sys__talk { border: 0; padding: 22px 24px 24px; }
.sys .sys__story { border: 0; background: transparent; padding: 28px 24px 30px; }
.sys .slide { gap: 14px; }
.sys .slide__stack { border-top: 0; padding-top: 4px; color: var(--mute); }
.sys .sys__bar { height: 3px; border-radius: 3px; background: rgba(20, 20, 20, .07); margin: 12px 4px 0; overflow: hidden; }

/* pinned (script on): the scene fills the board, everything else floats over it */
.js .sys .sys__board { flex: 1; min-height: 0; }
.js .sys .sys__view { position: absolute; inset: 0; aspect-ratio: auto; }
.js .sys .sys__steps { display: flex; flex-direction: column; gap: 2px; position: absolute; z-index: 2; left: 20px; top: 20px; width: 214px; padding: 8px; margin: 0; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--float); }
.js .sys .sys__steps li { border: 0; }
.js .sys .sys__steps button { height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border-radius: 12px; font: 500 15px/1 var(--body); letter-spacing: 0; color: var(--mute); transition: background-color .3s var(--ease), color .3s; }
.js .sys .sys__steps button::before { display: none; }
.js .sys .sys__steps button:hover { background: var(--studio); color: var(--ink); }
.js .sys .sys__steps li.is-on button { background: var(--studio); color: var(--ink); }
.sys__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; transition: background-color .3s, box-shadow .3s; }
.sys .sys__steps li.is-on .sys__dot { background: var(--o); box-shadow: 0 0 0 4px rgba(255, 90, 31, .18), 0 0 14px rgba(255, 90, 31, .55); }
.js .sys .sys__talk { position: absolute; z-index: 2; right: 20px; bottom: 20px; width: min(370px, 28%); padding: 18px 22px 20px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--float); justify-content: flex-start; gap: 8px; }
.js .sys .sys__talk .mono-s { color: rgba(255, 255, 255, .55); }
.js .sys .sys__talk p:not(.mono-s) { color: #fff; font-size: 14.5px; }
.js .sys .sys__talk .link { color: #fff; border-color: var(--o); }
.js .sys .sys__talk .link:hover { color: var(--o); }
.js .sys .sys__meta { display: flex; position: absolute; z-index: 3; right: 20px; top: 20px; width: min(370px, 28%); min-height: 0; padding: 26px 30px 0; border: 0; gap: 10px; pointer-events: none; }
.js .sys .sys__rule { display: none; }
.js .sys .sys__count b { font-size: 15px; font-family: var(--mono); font-weight: 700; color: var(--o); letter-spacing: .06em; }
.js .sys .sys__count span { font-size: 12px; }
.js .sys .sys__rule i { background: rgba(20, 20, 20, .12); }
.js .sys .sys__story { position: absolute; z-index: 2; right: 20px; top: 20px; bottom: auto; min-height: 340px; max-height: calc(100% - 200px); width: min(370px, 28%); padding: 66px 30px 32px; border-radius: 22px; background: #fff; box-shadow: var(--float); overflow: hidden; }
.js .sys .slide { justify-content: flex-start; }
.js .sys .slide > .sq { display: none; }

@media (max-width: 1100px) {
  .js .sys .sys__steps, .js .sys .sys__talk { display: none; }
  .js .sys .sys__meta, .js .sys .sys__story { width: min(380px, 42%); }
}
@media (max-width: 760px) {
  .sys .sys__board { border-radius: 18px; }
  .js .sys .sys__view { bottom: auto; height: 60%; }
  .js .sys .sys__meta { left: 16px; right: 16px; top: 12px; width: auto; flex-direction: row; align-items: center; }
  .js .sys .sys__count b { font-size: 22px; }
  .js .sys .sys__story { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; height: auto; max-height: calc(48% - 6px); padding: 20px 20px 22px; border-radius: 18px; }
  .sys .slide__h { font-size: 21px; }
  .sys .slide__p { font-size: 14.5px; }
  .sys3d__tag { padding: 8px 12px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { .sys3d__still, .sys3d__gl, .sys3d__tag { transition: none; } }

/* the stack of a step as small chips; the robot (the AI assistant) leans in from the corner; the scroll hint */
.slide__chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.slide__chips li { padding: 7px 11px; border-radius: 999px; background: var(--studio, #f3f3f1); font: 600 11.5px/1 var(--body); letter-spacing: .02em; color: var(--ink-2); }
html:not(.js) .slide__chips li { background: var(--panel); }
.sys__robot, .sys__hint { display: none; }
.js .sys .sys__robot { display: block; position: absolute; z-index: 1; left: -4.5%; bottom: -5%; width: clamp(250px, 25vw, 470px); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sys__robot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(28, 26, 22, .16)); pointer-events: none; }
.sys__eye { position: absolute; left: 28.6%; top: 27.6%; width: 13%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 150, 90, 0) 34%, rgba(255, 120, 50, .55) 52%, rgba(255, 110, 40, 0) 72%); mix-blend-mode: screen; pointer-events: none; }
.sys__ask { position: absolute; left: 72%; top: 26%; display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; background: #fff; box-shadow: var(--float); font: 600 12.5px/1 var(--body); color: var(--ink); white-space: nowrap; transition: background-color .2s, transform .3s var(--ease); }
.sys__ask i { width: 8px; height: 8px; border-radius: 50%; background: var(--o); box-shadow: 0 0 0 4px rgba(255, 90, 31, .16); }
.sys__ask b { color: var(--o); font-weight: 600; }
.sys__robot:hover .sys__ask { background: #fff6f1; transform: translateY(-2px); }
.sys__robot:focus-visible { outline: none; }
.sys__robot:focus-visible .sys__ask { outline: 2px solid var(--o); outline-offset: 3px; }
.js .sys .sys__hint { display: flex; align-items: center; gap: 10px; position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .86); font: 500 13px/1 var(--body); color: var(--mute); white-space: nowrap; transition: opacity .5s var(--ease), visibility .5s; }
.sys__hint i { width: 16px; height: 24px; border: 1.5px solid var(--line-2); border-radius: 9px; position: relative; flex: none; }
.sys__hint i::after { content: ''; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--o); animation: syshint 1.6s var(--ease) infinite; }
@keyframes syshint { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(8px); opacity: 0; } }
.sys.is-moving .sys__hint { opacity: 0; visibility: hidden; }
/* the steps: a rail joins the dots and fills with the scroll */
.js .sys .sys__steps::before { content: ''; position: absolute; left: 25.5px; top: 30px; bottom: 30px; width: 1px; background: var(--line); }
.js .sys .sys__steps::after { content: ''; position: absolute; left: 25px; top: 30px; height: calc((100% - 60px) * var(--rail, 0)); width: 2px; border-radius: 2px; background: var(--o); }
.js .sys .sys__steps li { position: relative; z-index: 1; }
.js .sys .sys__dot { box-shadow: 0 0 0 4px #fff; }
.js .sys .sys__steps li.is-done .sys__dot { background: var(--o); }
.js .sys .sys__steps li.is-on .sys__dot { box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(255, 90, 31, .18), 0 0 16px rgba(255, 90, 31, .6); }
.js .sys .sys__steps li.is-on button { background: transparent; font-weight: 600; }
.js .sys .sys__steps button:hover { background: transparent; }
@media (max-width: 1100px) {
  .js .sys .sys__robot, .js .sys .sys__hint { display: none; }
  .js .sys .sys__talk { display: none; }
}
@media (max-width: 760px) {
  .js .sys .sys__meta { padding: 0; left: 22px; right: auto; top: 16px; bottom: auto; width: auto; }
  .js .sys .sys__story { min-height: 0; padding: 22px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { .sys__hint i::after { animation: none; } }

/* «Сценарии»: what AINLAB builds, as small automation canvases (site/src/scenarios.mjs, run by site.js scenarios()).
   The frame follows the board: thin rules, square corners; the canvas is dark like n8n and the admin «Схемы». */
.scn__board { display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr); border: 1px solid var(--line); background: var(--panel); }
.scn__list { position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.scn__tab { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 4px 8px; padding: 16px 18px 17px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color .25s, color .25s; }
.scn__tab .mono-s { grid-row: span 2; padding-top: 3px; color: var(--o); }
.scn__tab b { font: 600 14.5px/1.3 var(--body); }
.scn__tabprice { font: 500 12px/1.3 var(--mono); color: var(--mute); }
.scn__tabbar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--o); transform: scaleX(0); transform-origin: 0 50%; }
.scn__tab:hover { background: var(--paper); }
.scn__tab[aria-selected="true"] { background: var(--o); color: var(--ink); }
.scn__tab[aria-selected="true"] .mono-s, .scn__tab[aria-selected="true"] .scn__tabprice { color: var(--ink); }
.scn__tab[aria-selected="true"] .scn__tabbar { background: var(--ink); }
.scn__panel { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.scn__panel + .scn__panel { border-top: 1px solid var(--line); }
.scn--tabs .scn__panel { grid-column: 2; grid-row: 1; border-top: 0; }
.scn--tabs .scn__panel[hidden] { display: none; }
.scn__view { display: flex; flex-direction: column; min-width: 0; background: #fff; color: var(--ink); }
.scn__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.scn__bar > b { font: 600 14px/1.2 var(--body); margin-right: auto; }
.scn__clock { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 7px 12px; border-radius: 8px; background: var(--paper); font: 500 11px/1 var(--body); color: var(--mute); }
.scn__clock em { font: 700 15px/1 var(--mono); font-style: normal; color: #1f9d63; min-width: 9ch; text-align: right; }
.scn__clock i { font: 500 11px/1 var(--body); font-style: normal; color: #1f9d63; min-width: 6ch; }
.scn__again { display: none; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 600 12px/1 var(--body); cursor: pointer; }
.scn--tabs .scn__again { display: inline-flex; }
.scn__again:hover { border-color: var(--o); color: var(--o); }
.scn__canvas { flex: 1; display: flex; align-items: center; padding: 10px 12px; background-color: #fff; background-image: radial-gradient(#dcdcd7 1px, transparent 1.2px); background-size: 18px 18px; overflow-x: auto; scrollbar-width: thin; }
.scn__svg { display: block; width: 100%; min-width: 720px; height: auto; overflow: visible; }
.scn__swipe { display: none; }
/* blocks */
.scn-n__box { fill: #fff; stroke: #cfcfca; stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.scn-n--cond .scn-n__box { stroke-dasharray: 5 4; }
.scn-n__bolt { fill: #ff5a1f; }
.scn-n__ic { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scn-n__port { fill: #fff; stroke: #a9a9a3; stroke-width: 1.5; }
.scn-n__port--out { fill: #6d7cff; stroke: none; }
.scn-n__t { font: 600 13px/1 var(--body); fill: var(--ink); }
.scn-n__s { font: 500 11px/1 var(--body); fill: var(--mute); }
.scn-n__d { font: 600 10.5px/1 var(--mono); fill: #1f9d63; opacity: 0; transition: opacity .3s; }
.scn-n__ok { opacity: 0; }
.scn-n__ok circle { fill: #ff5a1f; }
.scn-n__ok path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scn-n.is-run .scn-n__box { stroke: #ff5a1f; fill: #fff4ee; }
.scn-n__box { filter: drop-shadow(0 4px 10px rgba(20, 20, 20, .07)); }
.scn-n.is-done .scn-n__box { stroke: #ff5a1f; }
.scn-n.is-done .scn-n__d { opacity: 1; }
.scn-n, .scn-e { transition: opacity .45s; }
.scn-n.is-off, .scn-e.is-off { opacity: .3; }
/* cables */
.scn-e__base { fill: none; stroke: #bdbdb6; stroke-width: 1.6; }
.scn-e__hot { fill: none; stroke: #ff5a1f; stroke-width: 2.4; filter: drop-shadow(0 0 3px rgba(255, 90, 31, .45)); opacity: 0; }
.scn-e.is-hot .scn-e__hot { opacity: 1; }
.scn-e__br, .scn-e__l { font: 600 10.5px/1 var(--body); fill: var(--ink-2); }
.scn-e__l { fill: var(--mute); font-weight: 500; }
.scn-pk { fill: #ff5a1f; stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 0 5px rgba(255, 90, 31, .8)); }
/* story */
.scn__story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(220px, .7fr); gap: 28px; padding: 24px 26px 26px; border-top: 1px solid var(--line); background: var(--paper); }
.scn__about, .scn__more, .scn__deal { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.scn__about > p:not([class]) { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.scn__story h3 { margin: 0; font: 600 21px/1.15 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.scn__result { margin: 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--o); font-size: 15px; line-height: 1.5; }
.scn__result b { display: block; font: 700 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.scn__stack ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.scn__stack li { padding: 6px 10px; border: 1px solid var(--line); background: var(--panel); font: 600 12px/1 var(--body); }
.scn__terms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.scn__terms dt { font: 700 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.scn__terms dd { margin: 2px 0 0; font: 600 17px/1.25 var(--display); }
.scn__deal .btn { margin-top: auto; align-self: stretch; }
@media (max-width: 1240px) { .scn__story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .scn__deal { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; } .scn__deal .btn { margin: 0; align-self: auto; } }
@media (max-width: 900px) {
  .scn__board { grid-template-columns: minmax(0, 1fr); }
  .scn--tabs .scn__panel { grid-column: 1; grid-row: 2; }
  .scn__list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .scn__list::-webkit-scrollbar { display: none; }
  .scn__tab { flex: none; width: 200px; border-bottom: 0; border-right: 1px solid var(--line); }
  .scn__clock span { display: none; }
  .scn__swipe { display: block; margin: 0; padding: 0 0 12px; text-align: center; font: 500 12px/1 var(--body); color: var(--mute); }
  .scn__story { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 16px 22px; }
  .scn__deal { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) { .scn__bar > b { display: none; } .scn__bar { justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { .scn-n, .scn-e, .scn-n__box, .scn-n__d { transition: none; } }
