/* The websites site (web.maxmiskow.com), shared parts on top of deweloperzy/oferta.css:
   the bar's menu, section heads, the four-column footer and its inked logo, the free audit panel,
   the strings, the sideways work cards and the dark row of client quotes. Each page links
   oferta.css first, then this file; design/web.js runs the parts that move. */
:root { --black: var(--ink); --accent: var(--green); --graphite: #1C1C1C; --g: var(--pad); }
.arrow { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; }
/* the drawings and the films keep the typeface they were drawn in */
.stage-view, .svc-panel, .how-panel, .hcard-media { --sans: "Switzer", "Helvetica Neue", Arial, sans-serif; }
.small { font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; }
.line-t { border-top: 1px solid var(--line); }

/* ---------- Text selection: full lime, and our full purple on lime. Geist's selection band is 1.3 em tall,
   taller than the line height of the headings, so the band of the next line would cover the g, j and y of the
   line above. The headings use the same Geist files with a shorter band (ascent and descent overrides):
   the bands of two lines meet but no longer cover the letters. The line spacing stays as it was. ---------- */
@font-face { font-family: 'Geist Head'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwSGFWNOITddY4.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; ascent-override: 86%; descent-override: 17%; line-gap-override: 0%; }
@font-face { font-family: 'Geist Head'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFWNOITd.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; ascent-override: 86%; descent-override: 17%; line-gap-override: 0%; }
@font-face { font-family: 'Geist Display'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwSGFWNOITddY4.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; ascent-override: 70%; descent-override: 17%; line-gap-override: 0%; }
@font-face { font-family: 'Geist Display'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFWNOITd.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; ascent-override: 70%; descent-override: 17%; line-gap-override: 0%; }
h1, h2, h3, blockquote, .lit-text, .cs-over-text p, .cs-out-text, .sv-signs li { font-family: 'Geist Head', var(--sans); }
/* titles set tighter than 1: a shorter band still, and a nudge down to where the baseline was */
.hb-title, .ch-title, .tl-cards h2, .yr-n, .end h2 { position: relative; top: .095em; font-family: 'Geist Display', var(--sans); }
::selection { background: var(--green); color: var(--ink); }
.cta ::selection, .hb-cells li:nth-child(2) ::selection, .sv-signs li:nth-child(1) ::selection, .fit--big ::selection,
.tl-cards li:nth-child(3) ::selection, .bill > .is-this ::selection, .sl-cards a:hover ::selection, .sl-nav a:hover ::selection,
.btn-green ::selection, .btn-green::selection, [style*="--c: var(--green)"] ::selection, [style*="--bg: var(--green"] ::selection { background: var(--purple); color: var(--paper); }
.is-ink-bg ::selection, .clients ::selection, .hwork.is-dark ::selection, .how ::selection { background: var(--green); color: var(--ink); }
.how .step-card[style*="--bg: var(--green)"] ::selection { background: var(--purple); color: var(--paper); }

/* ---------- Bar: links on wide screens, a menu below that ---------- */
.bar-row { position: relative; }
.menu-btn { display: none; }
@media (max-width: 1000px) { .menu-btn { display: flex; } }
.menu { position: absolute; top: 100%; right: 0; display: flex; flex-direction: column; width: min(320px, 100vw); background: var(--paper); border: 1px solid var(--line); border-top: 0; }
.menu[hidden] { display: none; }
.menu a { padding: 14px 20px; font-size: 16px; font-weight: 500; transition: background-color var(--d1) var(--ease); }
.menu a + a { border-top: 1px solid var(--line); }
.menu a:hover { background: var(--grey); }
/* the page you are on */
.bar-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); }
.menu a[aria-current="page"] { background: var(--green); }

/* ---------- Page hero: the promise across the width, facts in coloured cells under it.
   The home page uses it full size; the other pages add .is-page for a smaller title ---------- */
.hb { position: relative; border-bottom: 1px solid var(--line); overflow: clip; }
.hb-top { padding: clamp(48px, 5vw, 80px) var(--pad) clamp(36px, 3.6vw, 56px); }
.hb-title { max-width: 15ch; font-size: clamp(48px, min(7.2vw, 12.5svh), 128px); font-weight: 500; line-height: .93; letter-spacing: -0.05em; }
.hb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; margin-top: clamp(32px, 3.4vw, 52px); }
.hb-row p { max-width: 30em; color: var(--mid); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; }
.hb-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hb-cells li { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: clamp(120px, 10vw, 156px); padding: 20px var(--pad); border-left: 1px solid var(--line); }
.hb-cells li:first-child { border-left: 0; }
.hb-cells b { font-size: clamp(36px, 3.6vw, 56px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.hb-cells span { color: var(--mid); font-size: 14px; line-height: 1.35; }
.hb-cells li:nth-child(2) { background: var(--green); }
.hb-cells li:nth-child(3) { background: var(--cyan); }
.hb-cells li:nth-child(4) { background: var(--lavender); }
.hb-cells li:nth-child(n + 2) span { color: color-mix(in srgb, var(--ink) 66%, transparent); }
.hb-cells li:nth-child(n + 2) { border-left-color: transparent; }
/* pixel blocks standing on the hero's edges, as on mistral.ai */
.px { position: absolute; display: block; pointer-events: none; }
.px-a { right: 0; top: 0; width: clamp(40px, 5vw, 80px); height: clamp(40px, 5vw, 80px); background: var(--ink); }
.px-b { right: clamp(40px, 5vw, 80px); top: clamp(40px, 5vw, 80px); width: clamp(20px, 2.5vw, 40px); height: clamp(20px, 2.5vw, 40px); background: var(--green); }
.px-c { right: 0; top: clamp(40px, 5vw, 80px); width: clamp(20px, 2.5vw, 40px); height: clamp(60px, 7.5vw, 120px); background: var(--green-pale); }
@media (max-width: 860px) {
  .hb-row { grid-template-columns: 1fr; }
  .hb-cells { grid-template-columns: 1fr 1fr; }
  .hb-cells li:nth-child(3) { border-left: 0; }
  .hb-cells li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.hb.is-page .hb-title { max-width: 18ch; font-size: clamp(44px, min(6vw, 11svh), 104px); }
.hb-cells.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .hb-cells.is-3 { grid-template-columns: 1fr; } .hb-cells.is-3 li { border-left: 0; border-top: 1px solid var(--line); } .hb-cells.is-3 li:first-child { border-top: 0; } }

/* ---------- Numbered rows: a number and a title on the left, the text on the right (About, tools, case studies) ---------- */
.cs-steps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px 48px; padding: clamp(24px, 2.4vw, 36px) var(--pad); border-top: 1px solid var(--line); }
.cs-step-t { display: flex; gap: 20px; align-items: baseline; }
.cs-step-t .mono { flex: none; color: var(--mid); }
.cs-step-t .h3, .cs-steps .h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.cs-steps p { max-width: 36em; color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; }
@media (max-width: 860px) { .cs-steps li { grid-template-columns: 1fr; } }

/* ---------- Section heads ---------- */
.shead { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; padding: var(--top) var(--pad) clamp(48px, 5vw, 80px); }
.shead .eyebrow { margin-bottom: 24px; }
.shead h2 { max-width: 12em; font-size: clamp(34px, 4.2vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; }
.shead p { max-width: 30em; color: var(--mid); font-size: clamp(16px, 1.3vw, 18px); }
.is-ink-bg { background: var(--ink); color: var(--paper); }
.is-ink-bg .eyebrow { color: rgba(255, 255, 255, .55); }
.is-ink-bg .eyebrow::before { background: var(--green); }
.is-ink-bg .shead p { color: rgba(255, 255, 255, .6); }
@media (max-width: 860px) { .shead { grid-template-columns: 1fr; } }

/* dark bands: the frame's side hairlines stay faint */
.is-ink-bg .frame, .hwork.is-dark .frame { border-color: rgba(255, 255, 255, .12); }

/* ---------- Selected work: a row of large cards that travels sideways while the page scrolls down ---------- */
.hwork { position: relative; background: var(--paper); border-top: 1px solid var(--line); }
.hwork.is-dark { --line: rgba(255, 255, 255, .14); background: var(--ink); color: var(--paper); }
.hwork.is-dark .eyebrow { color: rgba(255, 255, 255, .55); }
.hwork.is-dark .eyebrow::before { background: var(--green); }
.hwork-pin { position: sticky; top: var(--bar); display: flex; flex-direction: column; height: calc(100svh - var(--bar)); overflow: hidden; }
.hwork-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px; width: 100%; padding: clamp(24px, 3vw, 44px) var(--pad) clamp(18px, 2vw, 28px); }
.hwork-head .eyebrow { margin-bottom: 20px; }
.hwork-head h2 { max-width: 13em; }
.hwork-meta { display: flex; align-items: center; gap: 20px; }
.hwork-count { color: var(--mid); }
.hwork-count b { color: currentColor; font-weight: 500; }
.hwork.is-dark .hwork-count { color: rgba(255, 255, 255, .55); }
.hwork.is-dark .hwork-count b { color: var(--paper); }
.hwork-bar { position: relative; width: clamp(96px, 12vw, 200px); height: 2px; overflow: hidden; background: var(--line); }
.hwork-bar i { position: absolute; inset: 0; background: currentColor; transform: scaleX(var(--p, .2)); transform-origin: left; }
.hwork-track { flex: 1; min-height: 0; display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; padding: 0 max(var(--pad), calc((100vw - var(--frame)) / 2 + var(--pad))) clamp(16px, 2vw, 28px); will-change: transform; }
.hcard { flex: none; display: block; width: min(86vw, 1480px); height: 100%; color: var(--ink); border: 1px solid var(--line); }
.hwork.is-dark .hcard { border-color: transparent; }
.hcard:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.hcard-media { position: relative; height: 100%; margin: 0; overflow: hidden; background: var(--ink); }
.hcard-media > video { position: absolute; inset: 0; width: 100%; height: 100%; padding: clamp(44px, 3.4vw, 56px) clamp(16px, 1.6vw, 28px) clamp(16px, 1.6vw, 28px); object-fit: contain; }
.hcard-tag, .hcard-go { position: absolute; z-index: 3; top: 0; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; font-size: 12px; }
.hcard-tag { left: 0; background: var(--paper); color: var(--ink); }
.hcard-tag b { color: var(--mid); font-weight: 500; }
.hcard-go { right: 0; background: var(--ink); color: var(--paper); transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.hcard-go .chev { transition: transform var(--d1) var(--ease); }
.hcard:hover .hcard-go { background: var(--green); color: var(--ink); }
.hcard:hover .hcard-go .chev { transform: translateX(3px); }
/* on phones the row is swiped sideways instead */
@media (max-width: 860px) {
  .hwork { height: auto !important; }
  .hwork-pin { position: static; height: auto; overflow: visible; }
  .hwork-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; padding: 0 16px 48px; }
  .hwork-track::-webkit-scrollbar { display: none; }
  .hcard { width: 86vw; height: auto; scroll-snap-align: center; }
  .hcard-media { height: auto; aspect-ratio: 4 / 3; }
  .hcard-media > video { padding: 44px 12px 12px; }
  .hcard-go > span { display: none; }
  .hwork-meta .btn { display: none; }
}

/* ---------- Project cards: the screenshot in a browser window on the client's colour, a film on hover.
   Drawn by the scripts of work.html and project.html from projects.js ---------- */
.wc { display: flex; flex-direction: column; min-width: 0; color: var(--ink); }
.wc[hidden] { display: none; }
.wc.is-lead { grid-column: 1 / -1; }
.wc:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.wc-tile { position: relative; aspect-ratio: 16 / 11; margin: 0; overflow: hidden; background: var(--c); }
.wc.is-lead .wc-tile { aspect-ratio: 16 / 7.6; }
/* the screenshot in a browser window, standing in the client's colour */
.wc-shot { position: absolute; left: 8%; right: 8%; top: clamp(56px, 16%, 120px); box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .4); transition: transform .7s var(--ease); }
.wc-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: var(--paper); }
.wc:hover .wc-shot { transform: translateY(-10px); }
.wc.is-lead .wc-shot { left: auto; right: 6%; width: 52%; }
/* a film fills the tile: the lead card plays it, the others on hover */
.wc-film { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--d2) var(--ease); }
.wc.is-lead .wc-film, .wc.is-playing .wc-film { opacity: 1; }
.wc .hcard-tag, .wc .hcard-go { z-index: 4; }
.wc:hover .hcard-go { background: var(--green); color: var(--ink); }
.wc:hover .hcard-go .chev { transform: translateX(3px); }
.wc-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 24px; padding: 18px 2px 0; }
.wc-cap p { max-width: 30em; font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.wc-cap span { color: var(--mid); text-align: right; }
.wc.is-lead .wc-cap p { font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -0.02em; }
@media (max-width: 860px) {
  .wc.is-lead .wc-tile, .wc-tile { aspect-ratio: 4 / 3; }
  .wc.is-lead .wc-shot { left: 8%; right: 8%; width: auto; }
  .wc-cap { grid-template-columns: 1fr; }
  .wc-cap span { text-align: left; }
}

/* ---------- The browser bar over a screenshot ---------- */
.bw { container-type: inline-size; }
.bw-bar {
  --dot: clamp(4px, .8cqw, 11px);
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(15px, 3.3cqw, 44px);
  padding: 0 calc(var(--dot) * 1.6);
  background: #EBEBEB;
}
.bw-bar::before {
  content: "";
  width: var(--dot);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #C9C9C9;
  box-shadow: calc(var(--dot) * 1.7) 0 #C9C9C9, calc(var(--dot) * 3.4) 0 #C9C9C9;
}
.bw-url {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  width: 34%;
  height: 64%;
  overflow: hidden;
  border-radius: 999px;
  background: #FFFFFF;
  color: #3C3C3C;
  font: 400 clamp(5.5px, 1.2cqw, 15px)/1 -apple-system, BlinkMacSystemFont, "Segoe UI", var(--sans);
  letter-spacing: 0;
  white-space: nowrap;
}
/* a padlock before the address; none when there is no address */
.bw-url::before {
  content: "";
  flex: none;
  width: .72em;
  height: .86em;
  background: currentColor;
  opacity: .75;
  --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath fill-rule='evenodd' d='M2.5 6V4a3.5 3.5 0 0 1 7 0v2h.5A1.5 1.5 0 0 1 11.5 7.5v5A1.5 1.5 0 0 1 10 14H2a1.5 1.5 0 0 1-1.5-1.5v-5A1.5 1.5 0 0 1 2 6h.5zM4 6h4V4a2 2 0 0 0-4 0v2z'/%3E%3C/svg%3E");
  -webkit-mask: var(--lock) center / contain no-repeat;
  mask: var(--lock) center / contain no-repeat;
}
.bw-url:empty::before { display: none; }

/* ---------- How I bill: the two ways, side by side on grey cards, as calm as the rest of the page.
   Used by the Pricing section of the home page and by every service page ---------- */
.bill { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px; }
.bill > * { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: clamp(200px, 15vw, 240px); padding: 22px 24px 28px; background: var(--grey); }
.bill .mono { color: var(--mid); }
.bill h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.bill p { max-width: 30em; margin-top: auto; color: color-mix(in srgb, var(--ink) 72%, transparent); font-size: 15px; line-height: 1.55; }
.bill > .is-this { background: var(--green-pale); }
.bill-tag { position: absolute; right: 0; top: 0; padding: 7px 10px; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
@media (max-width: 760px) { .bill { grid-template-columns: 1fr; } .bill > * { min-height: 0; } .bill p { margin-top: 0; } }

/* ---------- Client quotes: a dark row of cards that slides sideways, after mistral.ai's "Latest updates" ---------- */
.clients { --fg: #FFFFFF; --bg: var(--ink); --line: rgba(255, 255, 255, .12); --card: #1D1D24; background: var(--ink); color: #FFFFFF; padding-bottom: clamp(56px, 6vw, 96px); }
.clients .frame { border-color: rgba(255, 255, 255, .12); }
.clients .eyebrow { color: rgba(255, 255, 255, .55); }
.clients .eyebrow::before { background: var(--green); }
.clients .sub, .clients .shead p { color: rgba(255, 255, 255, .6); }
.clients .btn-line { color: #FFFFFF; }
.clients .btn-line:hover { background: rgba(255, 255, 255, .1); }
.clients .tm-head { display: none; }
.clients .tm { --card: #1D1D24; }
.clients .small { font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; }
/* the stops in a pill on the left, two square arrows on the right */
.clients .tm-bar { padding: 0 var(--pad) 24px; border-top: 0; }
.clients .tm-dots { height: 48px; padding: 0 18px; gap: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); }
.clients .tm-dots button::before { background: rgba(255, 255, 255, .28); }
.clients .tm-dots button:hover::before { background: rgba(255, 255, 255, .6); }
.clients .tm-dots button[aria-current="true"]::before { background: #FFFFFF; }
.clients .tm .sq-btn { width: 48px; height: 48px; border: 0; background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.clients .tm .sq-btn:hover { background: var(--green); color: var(--ink); }
.clients .tm .sq-btn:disabled { opacity: .3; }
.clients .tm .sq-btn:disabled:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
/* the cards, apart from one another */
.clients .tm-track { gap: 12px; padding: 0 var(--pad); border-top: 0; scroll-padding-inline: var(--pad); }
.clients .tm-card { width: clamp(320px, 31vw, 600px); border: 1px solid rgba(255, 255, 255, .08); transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease); }
.clients .tm-card + .tm-card { border-left: 1px solid rgba(255, 255, 255, .08); }
.clients .tm-card:hover { background: color-mix(in srgb, var(--green) 9%, var(--card)); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.clients .tm-body { padding: 24px 28px 0; border-top: 0; }
.clients .tm-tag { padding: 5px 9px; border: 0; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); }
.clients .tm-quote { max-width: 24em; margin: 20px 0 36px; font-size: clamp(19px, 1.5vw, 25px); line-height: 1.25; letter-spacing: -0.015em; }
.clients .tm-name { font-size: clamp(28px, 2.6vw, 40px); }
/* the foot is a row of cells: who, where, and the way in */
.clients .tm-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; margin: auto -28px 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.clients .tm-who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); font-size: 15px; }
.clients .tm-who br { display: none; }
.clients .tm-who b, .clients .tm-who span { padding: 18px 28px; font-weight: 400; color: rgba(255, 255, 255, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clients .tm-who b { color: #FFFFFF; font-weight: 500; }
.clients .tm-who span { border-left: 1px solid rgba(255, 255, 255, .08); }
.clients .tm-go { display: grid; place-items: center; width: 64px; height: 100%; border-left: 1px solid rgba(255, 255, 255, .08); transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease); }
.clients .tm-go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.clients .tm-card:hover .tm-go { background: var(--green); color: var(--ink); }
@media (max-width: 900px) { .clients .tm-card { width: 72vw; } }
@media (max-width: 560px) { .clients .tm-card { width: 86vw; } .clients .tm-who { grid-template-columns: 1fr; } .clients .tm-who span { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); } }

/* ---------- Footer: four columns ---------- */
.foot-cols--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .foot-cols--4 { grid-template-columns: 1fr 1fr; } .foot-cols--4 .foot-col:nth-child(2) { border-right: 0; } }
@media (max-width: 600px) { .foot-cols--4 { grid-template-columns: 1fr; } }

/* ---------- Footer logo: an outline drawing that an ink blot under the pointer fills in ---------- */
.foot-mark { position: relative; }
.foot-mark.is-ink { cursor: default; user-select: none; }
.foot-mark.is-ink .foot-logo { fill: transparent; }
#logo-mark, #logo-word { vector-effect: non-scaling-stroke; }
.foot-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.foot-ink .ink-line { fill: none; stroke: var(--ink); stroke-width: 1px; }
.foot-ink .ink-fill { fill: var(--ink); }
.foot-ink .ink-guide { stroke: var(--ink); stroke-width: 1px; stroke-dasharray: 1 7; opacity: .45; }

/* ---------- Free audit: a panel that slides in from the right (as the AI site's contact drawer) ---------- */
html:has(.audit-panel[open]) { overflow: hidden; }
.audit-panel { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(520px, 100%); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: -30px 0 80px -40px rgba(18, 18, 22, .5); transform: translateX(100%); transition: transform var(--d2) var(--ease); }
.audit-panel[open] { display: flex; flex-direction: column; }
.audit-panel.is-open { transform: none; }
.audit-panel::backdrop { background: rgba(18, 18, 22, .45); opacity: 0; transition: opacity var(--d2) var(--ease); }
.audit-panel.is-open::backdrop { opacity: 1; }
.ap-bar { flex: none; display: flex; justify-content: space-between; height: var(--bar); border-bottom: 1px solid var(--line); }
.ap-label { display: flex; align-items: center; gap: 10px; padding: 0 var(--pad); color: var(--mid); }
.ap-label::before { content: ""; width: 8px; height: 8px; background: var(--purple); }
.ap-close { position: relative; width: var(--bar); border-left: 1px solid var(--line); transition: background-color var(--d1) var(--ease); }
.ap-close:hover { background: var(--grey); }
.ap-close span::before, .ap-close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; background: var(--ink); translate: -50% -50%; rotate: 45deg; }
.ap-close span::after { rotate: -45deg; }
.ap-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px var(--pad) 28px; }
.ap-head h2 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.08; letter-spacing: -0.025em; }
.ap-head p { margin-top: 8px; color: var(--mid); font-size: 14px; line-height: 1.45; }
.ap-form { display: grid; gap: 14px; }
.ap-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ap-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ap-field > .mono, .ap-field legend { padding: 0; color: var(--mid); font-size: 10px; }
.ap-field legend { margin-bottom: 6px; }
.ap-field input, .ap-field textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; transition: border-color var(--d1) var(--ease); }
.ap-field textarea { min-height: 76px; resize: vertical; }
.ap-field input::placeholder, .ap-field textarea::placeholder { color: #A1A1AA; }
.ap-field input:hover, .ap-field textarea:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.ap-field input:focus, .ap-field textarea:focus { outline: 0; border-color: var(--purple); }
.ap-choice { display: flex; flex-wrap: wrap; gap: 5px; }
.ap-choice label { position: relative; cursor: pointer; }
/* the box covers its chip, so a click lands on it directly and never sends focus (and the page) elsewhere */
.ap-choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ap-choice span { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease), border-color var(--d1) var(--ease); }
.ap-choice label:hover span { border-color: var(--ink); }
.ap-choice input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--paper); }
.ap-choice input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.ap-form .hp { position: absolute; left: -9999px; }
.ap-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.ap-send .btn { height: 40px; padding: 0 14px 0 16px; font-size: 14px; }
.ap-send p { flex: 1; min-width: 12em; color: var(--mid); font-size: 12px; }
.ap-form[aria-busy="true"] .ap-send .btn { opacity: .6; pointer-events: none; }
.ap-fail { color: #C0265A; font-size: 14px; }
.ap-fail a { text-decoration: underline; text-underline-offset: 3px; }
.ap-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
.ap-done[hidden], .ap-fail[hidden], .ap-form[hidden] { display: none; }
.ap-done-mark { width: 40px; height: 40px; background: var(--green); box-shadow: 14px 14px 0 -6px var(--purple); }
.ap-done h3 { margin-top: 12px; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.08; letter-spacing: -0.025em; }
.ap-done p { color: var(--mid); font-size: 14px; }
.ap-call { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 var(--pad); background: var(--purple); color: var(--paper); }
.ap-call span { display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.ap-call b { color: var(--paper); font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.ap-call i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--green); color: var(--ink); transition: transform var(--d1) var(--ease); }
.ap-call:hover i { transform: translateX(4px); }
@media (max-width: 480px) { .ap-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .audit-panel, .audit-panel::backdrop { transition: none; } }

/* ---------- Strings: cells on lines that slide in and can be pulled (script) ---------- */
.threads.is-live .threads-row::before { display: none; }
.threads-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.threads-lines path { fill: none; stroke: color-mix(in srgb, var(--ink) 16%, transparent); stroke-width: 1px; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease); }
.threads.is-in .threads-lines path { stroke-dashoffset: 0; }
.threads.is-live .thread { z-index: 1; opacity: 0; transform: translateX(var(--from, 0)); transition: opacity .7s var(--ease) calc(var(--i, 0) * 70ms + 200ms), transform 1s var(--ease) calc(var(--i, 0) * 70ms + 200ms), background-color var(--d1) var(--ease), color var(--d1) var(--ease); cursor: grab; touch-action: none; user-select: none; }
.threads.is-live .thread:hover { background: var(--paper); color: var(--ink); }
.threads.is-live .thread.is-key:hover { background: var(--ink); color: var(--paper); }
.threads.is-live .thread.is-held { cursor: grabbing; }
.threads.is-in .thread { opacity: 1; transform: none; }
@media (max-width: 600px) { .threads-lines { display: none; } .threads.is-live .thread { cursor: default; touch-action: auto; } }
@media (prefers-reduced-motion: reduce) { .threads.is-live .thread { opacity: 1; transform: none; transition: none; } .threads-lines path { transition: none; stroke-dashoffset: 0; } }

.thread .ti { flex: none; width: auto; height: 16px; }
.thread .ti-line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Service pictures (services/art.mjs): one card of oferta.css .ui on a colour panel, plain words and
   a few rows, on the home page, the service pages and the tool pages ---------- */
.art-panel { background: var(--bg); }
.art-panel .ui { width: min(100%, 420px); }
.art-panel .ui-row .tag { white-space: nowrap; }
.ui-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 18px 18px; border-bottom: 1px solid var(--line); }
.ui-hero b { font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.ui-hero span { color: var(--mid); font-size: 13px; }
.ui-hero em { margin-top: 10px; padding: 8px 14px; background: var(--ink); color: var(--paper); font-size: 13px; font-style: normal; font-weight: 500; }
.ui-score { display: flex; align-items: baseline; gap: 8px; padding: 26px 18px 18px; border-bottom: 1px solid var(--line); }
.ui-score b { font-family: 'Geist Display', var(--sans); font-size: 88px; font-weight: 500; line-height: .8; letter-spacing: -0.05em; }
.ui-score span { color: var(--mid); font-size: 16px; }
.ui-q { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; }
.ui-q i { width: 11px; height: 11px; border: 2px solid var(--mid); border-radius: 50%; }
