/* Inter z wlasnego serwera (bez Google Fonts: zero zapytan do obcych serwerow, bez zgody na transfer IP) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/inter-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(assets/fonts/inter-latin.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; }
/* KIODEM — obsydian, grafit, kosc sloniowa. Zadnych innych barw: glebia zastepuje kolor. */
:root {
  --obsidian: #080A0F;
  --graphite: #121722;
  --ivory: #F1EEE7;
  --ink-70: rgba(241, 238, 231, .72);
  --ink-45: rgba(241, 238, 231, .46);
  --ink-18: rgba(241, 238, 231, .18);
  --ink-10: rgba(241, 238, 231, .10);
  --ink-06: rgba(241, 238, 231, .06);
  --cell-w: 300px;
  --cell-h: 230px;
  --wm-w: clamp(210px, 44vw, 600px);
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --sa-t: env(safe-area-inset-top, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
@media (max-width: 820px) {
  :root { --cell-w: 200px; --cell-h: 156px; --wm-w: min(66vw, 320px); }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* wyswietlacz: system (SF na Macu i iPhonie), Inter wszedzie indziej; ciasne swiatlo jak w Apple */
.display {
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-wrap: balance;
}

/* ─── loader ─────────────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--obsidian);
  display: grid; place-items: center;
  overflow: hidden;
}
.loader__stage {
  position: relative;
  width: min(92vw, 640px); height: 260px;
  display: grid; place-items: center;
  perspective: 900px;
}
.loader__stage > * { grid-area: 1 / 1; }
/* cienka linia od lewej do prawej: postep powitan, potem odslania znak */
.loader__line {
  width: min(64vw, 440px); height: 1px; align-self: center;
  background: var(--ink-10);
  transform: translateY(48px);
  position: relative;
}
.loader__line-fill {
  position: absolute; inset: 0; display: block;
  background: var(--ivory);
  transform: scaleX(0); transform-origin: 0 50%;
}
.loader__word {
  font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(26px, 4.4vw, 42px); line-height: 1.2;
  white-space: nowrap;
  height: 1.2em; overflow: hidden;                 /* maska rolki: widac jedno slowo naraz */
}
.loader__strip span { display: block; height: 1.2em; line-height: 1.2em; text-align: center; }
.loader__flip { transform-style: preserve-3d; display: grid; place-items: center; }
.loader__mark {
  width: 118px; height: 90px; color: var(--ivory);
  opacity: 0;
  --sweep: 0%;
  -webkit-mask: linear-gradient(90deg, #000 var(--sweep), transparent 0);
          mask: linear-gradient(90deg, #000 var(--sweep), transparent 0);
}
/* logotyp wchodzi z rozmycia: ostrosc ustawia sie jak w obiektywie, bez wycierania */
.loader__wordmark {
  width: var(--wm-w); height: auto; aspect-ratio: 1246 / 228.44; color: var(--ivory);
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.06);
  will-change: filter, transform, opacity;
}
.loader.is-done { display: none; }

/* ─── gorny pasek ────────────────────────────────────────────────────────── */
.top {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + var(--sa-t)) 22px 0;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__home { display: block; line-height: 0; padding: 6px; margin: -6px; }
.top__mark { width: 40px; height: 31px; color: var(--ivory); transition: transform .5s var(--ease-out); }
.top__home:hover .top__mark { transform: translateY(-1px); }
.lang { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; }
.lang__btn { color: var(--ink-45); padding: 6px 1px; transition: color .25s; }
@media (max-width: 420px) { .lang { gap: 5px; font-size: 11.5px; } .lang__sep { display: none; } .lang__btn { padding: 6px 3px; } }
.lang__btn[aria-pressed="true"] { color: var(--ivory); }
.lang__btn:hover { color: var(--ivory); }
.lang__sep { width: 1px; height: 14px; background: var(--ink-18); transform: rotate(18deg); }

/* ─── pole kafelkow ─────────────────────────────────────────────────────── */
.viewport {
  position: fixed; inset: 0; z-index: 10;
  perspective: 1100px; perspective-origin: 50% 50%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.viewport.is-dragging { cursor: grabbing; }
/* miekkie sciemnienie u gory i u dolu: znak, jezyki i menu zawsze leza na ciemnym, bez zadnej ramki */
.viewport::before, .viewport::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 4; pointer-events: none;
}
.viewport::before { top: 0; height: 110px; background: linear-gradient(to bottom, rgba(8, 10, 15, .92), rgba(8, 10, 15, 0)); }
.viewport::after { bottom: 0; height: 150px; background: linear-gradient(to top, rgba(8, 10, 15, .94), rgba(8, 10, 15, 0)); }
.viewport.is-blurred { filter: blur(14px); }
.field {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.tile {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 12px 14px;
  background: var(--graphite);
  border: 0;
  color: var(--ivory);
  text-align: left;
  will-change: transform;
  contain: layout style paint;
  transition: background-color .35s;
  overflow: hidden;
}
/* zadnych ramek: kafelek to bryla w glebi, nie okienko z obwodka */
.tile::after { content: ""; position: absolute; inset: 0; background: var(--ink-06); opacity: 0; transition: opacity .35s; pointer-events: none; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:focus-visible { outline-offset: 0; }
.tile__t { font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
.tile__s { font-size: 12px; line-height: 1.35; color: var(--ink-70); margin-top: 4px; }

.tile--work { justify-content: flex-end; padding: 0; }
.tile--work:not(:has(img)) .tile__cap { border-top: 0; }
/* obraz w polu jest juz czarno-bialy w pliku (-bw.webp): zadnych filtrow CSS w ruchu */
.tile--work img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: 0;
  transition: opacity .6s;
}
.tile--work img.is-loaded { opacity: .78; }
.tile--work:hover img.is-loaded { opacity: 1; }
.tile__cap {
  position: relative; width: 100%;
  padding: 8px 11px 9px;
  background: var(--graphite);
  border-top: 1px solid var(--ink-10);
}
.tile--work .tile__t { font-size: 14px; }
.tile--work .tile__s { margin-top: 2px; font-size: 11.5px; }

/* obszar pracy: tytul i jedno zdanie, u dolu kafelka */
.tile--area .tile__t { font-size: 19px; }
.tile--area .tile__s { max-width: 24ch; }

/* sekcja: wiekszy kafelek z tytulem u gory i jednym zdaniem u dolu */
.tile--section { justify-content: space-between; padding: 14px 16px; background: var(--ivory); color: var(--obsidian); }
.tile--section .tile__t { font-size: 24px; }
.tile--section .tile__s { font-size: 12.5px; color: rgba(8, 10, 15, .62); }
.tile--section::after { background: rgba(8, 10, 15, .06); }

/* srodek: logotyp i jedno zdanie, nad polem, nie w polu */
.hero {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  transform: translate(-50%, -50%);
  transform-origin: 50% 0;
  width: min(92vw, 720px);
  text-align: center;
  pointer-events: none;
  will-change: transform;
}
.hero.is-docked { top: calc(18px + var(--sa-t)); transform: translate(-50%, 0) scale(.28); }
.hero.is-docked .hero__line, .hero.is-docked .hero__hint { opacity: 0; }
.hero__wordmark {
  display: block; margin: 0 auto;
  width: var(--wm-w); height: auto; aspect-ratio: 1246 / 228.44;
  color: var(--ivory);
}
.hero__line {
  margin: 22px auto 0; max-width: 34ch;
  font-size: clamp(14px, 1.3vw, 16px); color: var(--ink-70);
  text-wrap: balance;
}
.hero__hint {
  margin: 34px 0 0; font-size: 12px; color: var(--ink-45); letter-spacing: .02em;
  transition: opacity .8s;
}
.hero__hint.is-hidden { opacity: 0; }
.hero.is-quiet { opacity: 0; transition: opacity .5s; }

/* ─── nawigacja: same slowa u dolu ekranu, bez ramki; litery skladaja sie z kawalkow ─── */
.dock {
  position: fixed; left: 50%; bottom: calc(24px + var(--sa-b)); z-index: 60;
  transform: translateX(-50%);
  display: flex; gap: clamp(18px, 3.2vw, 44px);
  white-space: nowrap;
}
.dock__btn {
  position: relative; padding: 8px 0; display: inline-block; text-decoration: none;
  font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
  color: var(--ink-70);
  transition: color .25s;
}
.dock__btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--ivory);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.dock__btn:hover, .dock__btn[aria-current="true"] { color: var(--ivory); }
.dock__btn[aria-current="true"]::after { transform: scaleX(1); }
.dock__ch { display: inline-block; will-change: transform; }
.dock__btn:hover .dock__ch { animation: dock-lift .5s var(--ease-out) both; animation-delay: calc(var(--i) * 22ms); }
@keyframes dock-lift { 40% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
@media (max-width: 420px) { .dock { gap: 15px; } .dock__btn { font-size: 12.5px; } }

/* ─── sekcja: rozmycie calego pola, tresc wplywa jedna po drugiej ───────── */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 10, 15, .62);
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--ease-out), visibility 0s linear .55s;
  overflow-y: auto; overscroll-behavior: contain;
}
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .55s var(--ease-out); }
.overlay__inner {
  max-width: 1480px; margin: 0 auto;
  padding: calc(84px + var(--sa-t)) clamp(16px, 4vw, 56px) calc(120px + var(--sa-b));
}
.overlay__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.overlay__title { margin: 0; font-size: clamp(40px, 6.4vw, 72px); }
.overlay__close {
  flex: none; width: 44px; height: 44px; margin-top: 8px;
  position: relative;
  transition: transform .5s var(--ease-out), opacity .25s;
  opacity: .7;
}
.overlay__close:hover { opacity: 1; transform: rotate(90deg); }
.overlay__close span { position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; background: var(--ivory); }
.overlay__close span:first-child { transform: rotate(45deg); }
.overlay__close span:last-child { transform: rotate(-45deg); }
/* tresc rozsiana: siatka 12 kolumn, kazdy blok w innym miejscu; na telefonie jedna kolumna */
.overlay__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 44px); row-gap: 28px; align-items: start; }
.overlay__body > * { grid-column: 1 / -1; min-width: 0; max-width: 62ch; }
.overlay__body > #brief { max-width: none; }
@media (min-width: 900px) {
  .overlay__body > .lead { grid-column: 1 / span 7; }
  .overlay__body > *:nth-child(6n+2) { grid-column: 1 / span 5; }
  .overlay__body > *:nth-child(6n+3) { grid-column: 7 / span 5; margin-top: 64px; }
  .overlay__body > *:nth-child(6n+4) { grid-column: 3 / span 5; }
  .overlay__body > *:nth-child(6n+5) { grid-column: 8 / span 5; margin-top: 44px; }
  .overlay__body > *:nth-child(6n+6) { grid-column: 1 / span 5; }
  .overlay__body > *:nth-child(6n+7) { grid-column: 6 / span 6; margin-top: 56px; }
  .overlay__body > #brief { grid-column: 1 / -1; margin-top: 0; }
}
/* uslugi, o mnie, kontakt: spokojnie, dwie kolumny bez przesuniec; rozrzut zostaje w realizacjach */
@media (min-width: 900px) {
  .overlay__body.is-calm > * { grid-column: auto / span 6; margin-top: 0; }
  .overlay__body.is-calm > .lead { grid-column: 1 / -1; }
}
@media (min-width: 1300px) {
  .overlay__body > *:nth-child(6n+2) { grid-column: 1 / span 4; }
  .overlay__body > *:nth-child(6n+3) { grid-column: 6 / span 4; }
  .overlay__body > *:nth-child(6n+4) { grid-column: 9 / span 4; margin-top: 80px; }
  .overlay__body > *:nth-child(6n+5) { grid-column: 2 / span 4; margin-top: 0; }
  .overlay__body > *:nth-child(6n+6) { grid-column: 7 / span 4; margin-top: 48px; }
  .overlay__body > *:nth-child(6n+7) { grid-column: 3 / span 5; margin-top: 24px; }
}
.overlay__body p { margin: 0 0 14px; color: var(--ink-70); }
.overlay__body p.lead { color: var(--ivory); font-size: 18px; margin-bottom: 30px; }
.overlay__body h3 { margin: 0 0 6px; font-size: 24px; }

/* Realizacje jako lista: numer, nazwa, branza; klik rozwija szczegoly */
.overlay__body:not(.is-calm) > .case { grid-column: 1 / -1; max-width: none; margin-top: 0; }
.case { border-top: 1px solid var(--ink-10); scroll-margin-top: 20px; }
.overlay__body > .case:last-child { border-bottom: 1px solid var(--ink-10); }
.case__h3 { margin: 0 !important; font-size: inherit !important; }
.case__row { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, .9fr) 24px; align-items: baseline; gap: 16px;
  padding: 20px 0; text-align: left; cursor: pointer; }
.case__nr { font-size: 12.5px; color: var(--ink-45); font-variant-numeric: tabular-nums; }
.case__name { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.15; transition: transform .5s var(--ease-out); }
.case__row:hover .case__name, .case.is-open .case__name { transform: translateX(10px); }
.case__sector { font-size: 13.5px; color: var(--ink-45); }
.case__plus { position: relative; width: 14px; height: 14px; align-self: center; justify-self: end; }
.case__plus::before, .case__plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ivory); transition: transform .45s var(--ease-out); }
.case__plus::after { transform: rotate(90deg); }
.case.is-open .case__plus::after { transform: rotate(0deg); }
.case__body { padding: 0 0 26px 60px; max-width: 70ch; }
.case__thumb { display: block; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--ink-10); margin: 0 0 16px; }
@media (hover: hover) and (pointer: fine) { .case__body .case__thumb { display: none; } }
@media (max-width: 640px) {
  .case__row { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 10px; }
  .case__sector { grid-column: 2; grid-row: 2; }
  .case__plus { grid-column: 3; grid-row: 1; }
  .case__body { padding-left: 0; }
}
/* miniatura przy kursorze: skala od zera (zoom), bez przezroczystosci */
.work-peek { position: fixed; left: 0; top: 0; z-index: 70; width: clamp(240px, 24vw, 340px); aspect-ratio: 4 / 3; pointer-events: none; }
.work-peek img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border: 1px solid var(--ink-18);
  transform: scale(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); background: var(--graphite); }
.work-peek.is-on img { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .work-peek { display: none; } }
.case__meta { margin: 0 0 8px !important; font-size: 13px; color: var(--ink-45) !important; }
.case__what { margin: 0 0 10px !important; }
.case__h { margin: 14px 0 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-45); letter-spacing: .01em; }
.list--tight li { padding: 6px 0 6px 18px; font-size: 14px; line-height: 1.45; }
.list--tight li::before { top: 16px; }
.case__link { display: inline-block; margin-top: 14px; font-size: 13.5px; text-decoration: none; border-bottom: 1px solid var(--ink-45); padding-bottom: 1px; }
.case__link:hover { border-bottom-color: var(--ivory); }
.case.is-target { border-top-color: var(--ivory); }

.service { padding: 22px 0 0; border-top: 1px solid var(--ink-10); }
.service p:last-child { margin-bottom: 0; }
.list { margin: 6px 0 4px; padding: 0; list-style: none; }
.list li { position: relative; padding: 8px 0 8px 20px; border-top: 1px solid var(--ink-06); color: var(--ink-70); }
.list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 1px; background: var(--ink-45); }

/* wykresy: cienkie slupki, jedna skala, dwie serie rozne jasnoscia, kreskowanie jako drugi kod */
.chart { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--ink-06); }
.chart__title { margin: 0 0 12px !important; color: var(--ivory) !important; font-size: 13.5px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chart .lbl { fill: var(--ink-70); }
.chart .val { fill: var(--ivory); opacity: 0; transition: opacity .25s; }
.chart .bar-a { fill: var(--ink-45); }
.chart .bar-b { fill: var(--ivory); }
.chart .bar-h { stroke: var(--ink-45); stroke-width: 1; }
.chart .hatch { stroke: var(--ink-45); stroke-width: 1.5; }
.chart .base { stroke: var(--ink-18); stroke-width: 1; }
.chart .row { transition: opacity .3s; outline: none; cursor: default; }
.chart .row:hover .val, .chart .row:focus .val, .chart .row.is-on .val, .chart .val.is-on { opacity: 1; }
.chart svg:hover .row:not(:hover) { opacity: .45; }
.chart .row:focus .lbl { fill: var(--ivory); }
.chart__legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; font-size: 12.5px; color: var(--ink-45); }
.chart__legend .sw { display: inline-block; width: 16px; height: 9px; margin-right: 7px; vertical-align: -1px; }
.chart__legend .sw-a { background: var(--ink-45); }
.chart__legend .sw-b { background: var(--ivory); }
.chart__legend .sw-h { background: repeating-linear-gradient(45deg, var(--ink-45) 0 1px, transparent 1px 4px); border: 1px solid var(--ink-45); }
.chart figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-45); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chart svg.is-narrow { font-size: 21px; }
.chart__readout { margin: 12px 0 0 !important; color: var(--ivory) !important; font-size: 13.5px; min-height: 1.5em; }

/* ─── brief: jedno pytanie na ekran, odpowiedzi jako kafelki ─────────────── */
.brief__progress { display: flex; gap: 4px; margin: 0 0 28px; }
.brief__progress i { flex: 1; height: 2px; background: var(--ink-18); transition: background-color .4s; }
.brief__progress i.is-done { background: var(--ink-70); }
.brief__progress i.is-now { background: var(--ivory); }
.brief__q { margin: 0 0 8px; font-size: clamp(26px, 4vw, 34px); }
.brief__hint { margin: 0 0 8px !important; font-size: 13px; color: var(--ink-45) !important; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 18px 0 24px; }
.brief__q { max-width: 22ch; }
.opt {
  position: relative; min-height: 104px; padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  text-align: left; background: var(--graphite); border: 1px solid var(--ink-18); color: var(--ivory);
  transition: transform .35s var(--ease-out), border-color .25s, background-color .25s, color .25s;
}
.opt:hover { transform: translateY(-3px); border-color: var(--ink-45); }
.opt.is-on { background: var(--ivory); color: var(--obsidian); border-color: var(--ivory); }
.opt__n { font-size: 12px; color: var(--ink-45); font-variant-numeric: tabular-nums; }
.opt.is-on .opt__n { color: rgba(8, 10, 15, .55); }
.opt__t { font-weight: 600; letter-spacing: -.02em; font-size: 16px; line-height: 1.2; text-wrap: balance; }
/* uwaga: `.field` to kontener kafelkow - wiersze formularza maja wlasna nazwe */
.brief__field { margin: 0 0 18px; }
.brief__field label { display: block; font-size: 12.5px; color: var(--ink-45); margin-bottom: 4px; }
.input {
  display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink-45);
  color: var(--ivory); font: inherit; font-size: 18px; padding: 8px 0; outline: none; transition: border-color .25s;
}
.input:focus { border-bottom-color: var(--ivory); }
.input::placeholder { color: var(--ink-18); }
textarea.input { resize: vertical; min-height: 72px; line-height: 1.4; }
.brief__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.link { color: var(--ink-70); border-bottom: 1px solid var(--ink-45); padding-bottom: 1px; font-size: 14px; transition: color .25s, border-color .25s; }
.link:hover { color: var(--ivory); border-color: var(--ivory); }
.brief__key { margin: 22px 0 0 !important; font-size: 12px; color: var(--ink-45) !important; }
.brief__err { margin: 0 0 12px !important; font-size: 13px; color: var(--ivory) !important; }
.summary { border-top: 1px solid var(--ink-10); padding-top: 6px; }
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 16px 0 24px; }
.summary dt { color: var(--ink-45); font-size: 13px; padding-top: 3px; }
.summary dd { margin: 0; }
.brief__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.brief__note { margin: 18px 0 0 !important; font-size: 13.5px; color: var(--ivory) !important; }
@media (max-width: 480px) { .summary dl { grid-template-columns: 1fr; gap: 4px 0; } .summary dt { padding-top: 8px; } }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--ink-10); }
.facts dt { color: var(--ink-45); font-size: 13px; padding-top: 2px; }
.facts dd { margin: 0; }

.contact__mail {
  display: inline-block; margin: 6px 0 18px;
  font-size: clamp(22px, 3.2vw, 30px); text-decoration: none;
  border-bottom: 1.5px solid var(--ink-45); padding-bottom: 2px;
  word-break: break-all;
}
.contact__mail:hover { border-bottom-color: var(--ivory); }
.contact__rows { display: grid; gap: 8px; margin: 0 0 26px; }
.contact__rows a { text-decoration: none; border-bottom: 1px solid var(--ink-18); padding-bottom: 1px; width: max-content; }
.contact__rows a:hover { border-bottom-color: var(--ivory); }
.btn {
  display: inline-block; padding: 13px 22px;
  background: var(--ivory); color: var(--obsidian); text-decoration: none;
  font-weight: 600; font-size: 14px;
  transition: transform .4s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.contact__note { margin-top: 26px !important; font-size: 13px; }

.noscript { position: fixed; inset: 0; z-index: 200; background: var(--obsidian); padding: 40px 24px; }
.noscript h1 { font-size: 40px; margin: 0 0 12px; }

@media (prefers-reduced-motion: reduce) {
  .tile--work img, .case__thumb, .overlay, .dock__btn, .top__mark { transition: none; }
  .dock__btn:hover .dock__ch { animation: none; }
  .loader__wordmark { filter: none; transform: none; }
  .hero { will-change: auto; }
}

/* ─── 23 IX: kafelki na zywo, miniatury w Realizacjach, kursor, nawigator, proces ─── */
.tile--live .tile__t { font-size: 19px; }
.tile--live .tile__s { max-width: 26ch; }
.tile__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ivory); margin-right: 8px; vertical-align: 3px; animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.tile__peek { position: absolute; left: 16px; right: 16px; top: 50px; height: 48px; display: flex; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); pointer-events: none; }
.tile__peek img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; object-position: top; border: 1px solid rgba(8, 10, 15, .18); }
.tile--section:hover .tile__peek, .tile--section:focus-visible .tile__peek { opacity: 1; transform: none; }

/* kursor: biala kropka i bialy napis bez tla; mix-blend-mode: difference odwraca kolor nad jasnym
   kafelkiem (kosc sloniowa -> prawie czern), wiec etykieta jest czytelna na kazdym tle */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 1; transition: opacity .2s; will-change: transform; }
.cursor__dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ivory); transition: transform .25s var(--ease-out), opacity .25s, background-color .15s; }
.cursor__label { position: absolute; left: 14px; top: -9px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ivory); white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--ease-out), color .15s; }
/* jasne tlo pod kropka albo pod dana litera (kafelek z kosci sloniowej, takze przygaszony do szarosci): ciemny kolor */
.cursor__label span { color: var(--ivory); transition: color .12s; }
.cursor__label span.is-dark { color: var(--obsidian); }
.cursor__dot.is-dark { background: var(--obsidian); }
.cursor[data-state="open"] .cursor__label, .cursor[data-state="drag"] .cursor__label { opacity: 1; transform: none; }
.cursor[data-state="open"] .cursor__dot { transform: scale(1.6); }
.cursor[data-state="grab"] .cursor__dot { transform: scale(2.2); opacity: .7; }
.cursor[data-state="off"], .cursor[data-state="ui"] { opacity: 0; }
body.has-cursor .viewport, body.has-cursor .viewport.is-dragging, body.has-cursor .tile { cursor: none; }

.navi { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.navi__map { display: block; width: 132px; height: 98px; background: rgba(18, 23, 34, .72); border: 1px solid var(--ink-10); cursor: pointer; }
.navi__btn { font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-45); padding: 4px 2px; transition: color .25s; }
.navi__btn:hover, body.is-map .navi__btn { color: var(--ivory); }
@media (max-width: 820px), (pointer: coarse) { .navi { display: none; } }
body.is-map .viewport::after { height: 210px; background: linear-gradient(to top, rgba(8, 10, 15, .98) 35%, rgba(8, 10, 15, 0)); }
body.is-map .viewport::before { height: 130px; background: linear-gradient(to bottom, rgba(8, 10, 15, .98) 30%, rgba(8, 10, 15, 0)); }

.dock__btn, .top__home { will-change: transform; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 22px 0 14px 56px; border-top: 1px solid var(--ink-10); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 27px; font-size: 13px; color: var(--ink-45); letter-spacing: .04em; }
.step h3 { margin: 0 0 8px; font-size: clamp(22px, 2.6vw, 30px); }
@media (max-width: 600px) { .step { padding-left: 40px; } }

/* H1 strony glownej = logotyp (tekst dla czytnikow i wyszukiwarek w .sr-only) */
.hero__h1 { margin: 0; font-size: inherit; font-weight: inherit; line-height: 0; }
/* linki prawne: male, w lewym dolnym rogu; na waskim ekranie tylko w DOM (sa tez w stopkach podstron) */
.legal { position: fixed; left: 22px; bottom: calc(26px + var(--sa-b)); z-index: 60; display: flex; gap: 14px; font-size: 11.5px; }
.legal a { color: var(--ink-45); text-decoration: none; transition: color .25s; }
.legal a:hover { color: var(--ivory); }
@media (max-width: 1100px), (pointer: coarse) { .legal { display: none; } }

/* strefa klienta: link w gornym pasku, obok jezykow */
.top__right { display: flex; align-items: center; gap: 18px; }
.top__klient { font-size: 12.5px; font-weight: 500; letter-spacing: .02em; color: var(--ivory); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--ink-18); transition: border-color .25s; }
.top__klient:hover { border-color: var(--ivory); }
@media (max-width: 420px) { .top__right { gap: 10px; } .top__klient { font-size: 11.5px; } }

/* rysunki liniowe w O mnie i Kontakt: rysuja sie kreska */
.ilu { margin: 0 0 6px; color: var(--ivory); max-width: 360px; }
.ilu svg { display: block; width: 100%; height: auto; }
.ilu .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ilu-rysuj 1.1s var(--ease-out) forwards; animation-delay: calc(var(--d, 0s) + .35s); }
@keyframes ilu-rysuj { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ilu .d { animation: none; stroke-dashoffset: 0; } }

/* ekran ladowania: dyskretny przycisk, ktory przyspiesza sekwencje (nie ucina jej) */
.loader__skip { position: absolute; right: 22px; bottom: calc(24px + var(--sa-b)); font-size: 12px; letter-spacing: .06em; color: var(--ink-45);
  padding: 8px 2px; border-bottom: 1px solid var(--ink-18); transform: translateY(160%); transition: transform .6s var(--ease-out), color .25s; }
.loader__skip.is-on { transform: none; }
.loader__skip:hover { color: var(--ivory); }
