/* 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(28px, 5vw, 70px) 0 clamp(18px, 3vw, 40px); }

/* ---------- 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(12.5vw, 64px); }
  .intro__rules, .intro__rail, .intro__tags { display: none; }
  .intro__f1 { min-height: 0; padding-top: 28px; display: flex; flex-direction: column; gap: 22px; }
  .intro__l2 { display: block; 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; } }
