/* Strona główna: retro i 8-bit. Malowanie pikselami w hero, karty z dolnych rogów, tablica, monitor CRT. */
:root {
  --dark: #10052a;
  --dark-2: #1b0b42;
  --dark-3: #231050;
  --cyan: #00aeff;
  --pink: #d0136a;
  --pink-2: #e0257f;
  --white: #ffffff;
  --grey: #eeeef2;
  --ink: #10052a;
  --phosphor: #6fe6ff;
  --cyan-hi: #8fdcff;
  --cyan-lo: #0079b8;
  --cyan-hov: #4cc8ff;
  --pink-hi: #ff7ab8;
  --pink-lo: #8f0d4b;
  --deep: #2a1560;
  --line: #3f2d73;
  --muted: #b3a6d6;
  --mkt: #0b2a6b;
  --violet: #4a2a9c;
  --card-dark: #1c0d44;
  --dark-rgb: 16, 5, 42;
  --hue: 0deg; /* o tyle obracane są kolory rysowane w canvasach */
  --m: clamp(16px, 2.6vw, 44px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sans: 'Space Grotesk', system-ui, 'Segoe UI', Arial, sans-serif;
  --px-bold: 'Jersey 10', 'Space Grotesk', Impact, sans-serif;
  --px-thin: 'Micro 5', 'Jersey 10', 'Space Grotesk', sans-serif;
  --crt: 'VT323', ui-monospace, Consolas, monospace;
  /* narożniki jak w pixel arcie: schodki i wycięcia, na zmianę w trzech układach */
  --p: clamp(6px, 0.55vw, 9px);
  --corners-a: polygon(0 calc(2 * var(--p)), calc(1 * var(--p)) calc(2 * var(--p)), calc(1 * var(--p)) calc(1 * var(--p)), calc(2 * var(--p)) calc(1 * var(--p)), calc(2 * var(--p)) 0, calc(100% - 1 * var(--p)) 0, calc(100% - 1 * var(--p)) calc(1 * var(--p)), 100% calc(1 * var(--p)), 100% calc(100% - 2 * var(--p)), calc(100% - 1 * var(--p)) calc(100% - 2 * var(--p)), calc(100% - 1 * var(--p)) calc(100% - 1 * var(--p)), calc(100% - 2 * var(--p)) calc(100% - 1 * var(--p)), calc(100% - 2 * var(--p)) 100%, calc(2 * var(--p)) 100%, calc(2 * var(--p)) calc(100% - 2 * var(--p)), 0 calc(100% - 2 * var(--p)));
  --corners-b: polygon(0 calc(2 * var(--p)), calc(2 * var(--p)) calc(2 * var(--p)), calc(2 * var(--p)) 0, calc(100% - 3 * var(--p)) 0, calc(100% - 3 * var(--p)) calc(1 * var(--p)), calc(100% - 2 * var(--p)) calc(1 * var(--p)), calc(100% - 2 * var(--p)) calc(2 * var(--p)), calc(100% - 1 * var(--p)) calc(2 * var(--p)), calc(100% - 1 * var(--p)) calc(3 * var(--p)), 100% calc(3 * var(--p)), 100% calc(100% - 1 * var(--p)), calc(100% - 1 * var(--p)) calc(100% - 1 * var(--p)), calc(100% - 1 * var(--p)) 100%, calc(2 * var(--p)) 100%, calc(2 * var(--p)) calc(100% - 1 * var(--p)), calc(1 * var(--p)) calc(100% - 1 * var(--p)), calc(1 * var(--p)) calc(100% - 2 * var(--p)), 0 calc(100% - 2 * var(--p)));
  --corners-c: polygon(0 calc(1 * var(--p)), calc(1 * var(--p)) calc(1 * var(--p)), calc(1 * var(--p)) 0, calc(100% - 2 * var(--p)) 0, calc(100% - 2 * var(--p)) calc(1 * var(--p)), calc(100% - 1 * var(--p)) calc(1 * var(--p)), calc(100% - 1 * var(--p)) calc(2 * var(--p)), 100% calc(2 * var(--p)), 100% calc(100% - 2 * var(--p)), calc(100% - 2 * var(--p)) calc(100% - 2 * var(--p)), calc(100% - 2 * var(--p)) 100%, calc(3 * var(--p)) 100%, calc(3 * var(--p)) calc(100% - 1 * var(--p)), calc(2 * var(--p)) calc(100% - 1 * var(--p)), calc(2 * var(--p)) calc(100% - 2 * var(--p)), calc(1 * var(--p)) calc(100% - 2 * var(--p)), calc(1 * var(--p)) calc(100% - 3 * var(--p)), 0 calc(100% - 3 * var(--p)));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--dark); color: var(--white); overflow-x: clip;
  font: 500 clamp(1rem, 0.9rem + 0.35vw, 1.25rem)/1.22 var(--sans); letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, canvas { display: block; }
img, video { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--white); }
/* scrollbar z kratek: ciemna szyna z podziałką, kanciasty suwak z jasną i ciemną krawędzią */
html::-webkit-scrollbar { width: 14px; }
html::-webkit-scrollbar-track { background: repeating-linear-gradient(180deg, var(--deep) 0 12px, var(--dark) 12px 16px); box-shadow: inset 4px 0 0 var(--dark), inset -4px 0 0 var(--dark); }
html::-webkit-scrollbar-thumb { background: var(--cyan); box-shadow: inset 0 3px 0 var(--cyan-hi), inset 0 -3px 0 var(--cyan-lo); border: 2px solid var(--dark); }
html::-webkit-scrollbar-thumb:hover { background: var(--cyan-hov); }
html::-webkit-scrollbar-thumb:active { background: var(--pink-2); box-shadow: inset 0 3px 0 var(--pink-hi), inset 0 -3px 0 var(--pink-lo); }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: var(--cyan) var(--dark); } }
/* Firefox: ten sam scrollbar rysuje app/footer.js (.fxbar); natywny jest ukryty tylko wtedy, gdy skrypt działa */
html.fx-bar { scrollbar-width: none; }
html.fx-bar body { margin-right: 14px; }
html.fx-bar .nav { right: 14px; }
.fxbar { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: 14px; background: repeating-linear-gradient(180deg, var(--deep) 0 12px, var(--dark) 12px 16px); box-shadow: inset 4px 0 0 var(--dark), inset -4px 0 0 var(--dark); }
.fxbar[hidden] { display: none; }
.fxbar__thumb { position: absolute; top: 0; left: 0; right: 0; box-sizing: border-box; background: var(--cyan); box-shadow: inset 0 3px 0 var(--cyan-hi), inset 0 -3px 0 var(--cyan-lo); border: 2px solid var(--dark); touch-action: none; }
.fxbar__thumb:hover { background: var(--cyan-hov); }
.fxbar__thumb.is-active { background: var(--pink-2); box-shadow: inset 0 3px 0 var(--pink-hi), inset 0 -3px 0 var(--pink-lo); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* piksele za kursorem */
.is-drawing { user-select: none; -webkit-user-select: none; }
.trail { position: fixed; inset: 0; z-index: 40; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }

/* małe znaki rysowane z pikseli */
.chev { display: inline-block; flex: none; width: 6px; height: 10px; background-repeat: no-repeat; background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-size: 2px 10px, 2px 6px, 2px 2px; background-position: 0 0, 2px 2px, 4px 4px; transition: transform 0.25s var(--ease); }
.slash { display: flex; align-items: center; gap: 10px; font-size: 0.8em; text-transform: uppercase; }
.slash::before {
  content: ''; width: 18px; height: 12px; flex: none; color: var(--pink); background-repeat: no-repeat;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 4px 4px; background-position: 0 8px, 4px 4px, 8px 0, 8px 8px, 12px 4px, 16px 0;
}
.svc--cyan .slash::before, .svc--pink .slash::before { color: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  background: var(--dark); color: var(--white); border-radius: 6px; font-size: 0.82em; text-transform: uppercase;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.chip:hover { transform: translateY(-2px); }
.chip:hover .chev { transform: translateX(3px); }
.chip:active { transform: scale(0.97); }

/* ── nawigacja: HUD ze starej gry; bez tła, same pikselowe ramki wokół logo, menu i języków ── */
.nav {
  --corner: polygon(3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px, 3px 3px);
  position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 62px; padding: 0 var(--m); pointer-events: none;
  display: flex; align-items: center; gap: clamp(6px, 0.8vw, 12px);
  color: var(--white);
  font: 400 clamp(1.35rem, 1.75vw, 1.7rem)/1 var(--px-bold); letter-spacing: 0.02em; text-transform: uppercase;
}
.nav__brand, .nav__links, .nav__langs { /* pikselowe ramki tylko tam, gdzie coś jest */
  pointer-events: auto; background: rgba(var(--dark-rgb), 0.94); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34); clip-path: var(--corner);
}
.nav a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
/* pasek chowa się przy przewijaniu w dół i wraca przy przewijaniu w górę (na każdej stronie; logika w app/footer.js) */
.nav { transition: transform 0.28s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - 8px)); }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px 0 12px; white-space: nowrap; }
.nav__brand:hover { color: var(--cyan); }
.pxlogo { width: auto; height: 30px; flex: none; }
.nav__links { display: flex; align-items: center; gap: clamp(0px, 0.5vw, 8px); min-height: 46px; padding: 0 4px; }
.nav__links > a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px 0 20px; }
.nav__links > a:not(.nav__cta)::before { /* kursor jak w menu gry */
  content: ''; position: absolute; left: 6px; top: 50%; width: 8px; height: 14px; margin-top: -7px; background: var(--pink-2); visibility: hidden;
  clip-path: polygon(0 0, 2px 0, 2px 2px, 4px 2px, 4px 4px, 6px 4px, 6px 6px, 8px 6px, 8px 8px, 6px 8px, 6px 10px, 4px 10px, 4px 12px, 2px 12px, 2px 14px, 0 14px);
}
.nav__links > a:hover { color: var(--cyan); }
.nav__links > a:hover::before, .nav__links > a[aria-current]::before { visibility: visible; }
.nav__links > .nav__cta {
  min-height: 36px; margin-left: 6px; padding: 0 14px 2px; background: var(--cyan); color: var(--ink); clip-path: var(--corner);
  box-shadow: inset 0 3px 0 var(--cyan-hi), inset 0 -4px 0 var(--cyan-lo);
}
.nav__links > .nav__cta:hover { background: var(--cyan-hov); color: var(--ink); }
.nav__links > .nav__cta:active { transform: translateY(2px); box-shadow: inset 0 4px 0 var(--cyan-lo); }
.nav__langs { display: flex; align-items: center; gap: 4px; min-height: 46px; margin-left: auto; padding: 0 5px; }
.nav__langs a { /* języki jak pola w ekwipunku */
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 36px; padding: 0 4px;
  color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); clip-path: var(--corner);
}
.nav__langs a:hover { color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.nav__langs a[aria-current] { background: var(--white); color: var(--ink); box-shadow: none; }

/* ── hero: tło, po którym kursor maluje piksele, hasło i pikselowe biuro ─── */
.pin { position: relative; }
.hero {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--dark);
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); align-items: center; gap: clamp(8px, 2vw, 32px); padding: 76px var(--m) 20px;
}
.hero__paint { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hero__text { position: relative; z-index: 1; }
.hero h1 { font: 400 clamp(4.2rem, min(11vw, calc((100svh - 410px) / 2.4)), 13rem)/0.8 var(--px-bold); letter-spacing: 0; } /* hasło nie rośnie ponad wysokość okna: trzy linie, opis i przyciski mają się zmieścić */
.hero h1 span { display: block; }
.hero h1 span { min-height: 0.8em; white-space: nowrap; } /* pusta linia w czasie pisania nie zapada się */
.hero h1 span > span { display: inline; }
.hero h1 .caret { display: inline-block; width: 0.24em; height: 0.72em; margin-left: 0.08em; background: currentColor; vertical-align: baseline; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.l1 { color: var(--cyan); }
.l2 { color: var(--pink-2); }
.l3 { color: var(--white); }
.hero__sub { margin-top: clamp(20px, 3vh, 36px); max-width: 27em; font-size: clamp(1.05rem, min(1.35vw, 2.6svh), 1.5rem); line-height: 1.2; }
.hero__actions { margin-top: clamp(20px, 3vh, 36px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; background: var(--cyan); color: var(--ink); text-transform: uppercase; transition: background-color 0.2s, transform 0.25s var(--ease); }
.btn:hover { background: var(--cyan-hov); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.more { padding: 6px 0; border-bottom: 2px solid var(--pink-2); text-transform: uppercase; font-size: 0.9em; transition: color 0.2s; }
.more:hover { color: var(--cyan); }
.room { position: relative; z-index: 1; display: block; perspective: 1400px; cursor: pointer; }
.room__tilt { position: relative; display: block; transform: rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg)); transition: transform 0.5s var(--ease); }
.room__img { width: 100%; height: auto; max-height: calc(100svh - 96px); object-fit: contain; image-rendering: pixelated; }
.room__img--lit { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 0.5s steps(5); }
.room:hover .room__img--lit, .room:focus-visible .room__img--lit, .room.is-lit .room__img--lit { opacity: 1; }

/* ── karty: wjeżdżają na zmianę z lewej i z prawej ─────────── */
.scenes { position: relative; z-index: 2; background: var(--dark); }
.motion .scenes { height: 985vh; margin-top: -100vh; margin-top: -100svh; background: none; pointer-events: none; }
.motion .scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.motion .svc, .motion .panel { pointer-events: auto; }
.anchor { position: absolute; top: 0; }
.motion .anchor { top: 100vh; }
.svc {
  overflow: hidden; border-radius: 18px; padding: clamp(84px, 11vh, 120px) clamp(20px, 3.4vw, 60px) 40px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(20px, 3vw, 48px); align-content: start; position: relative; min-height: 100svh;
}
.motion .scene > .svc { position: absolute; inset: 0; min-height: 0; border-radius: 0; will-change: transform; transform: translate(-115%, 115%); }
.svc--white { --num: #d8c8f1; background: var(--white); color: var(--ink); }
.svc--cyan { --num: var(--cyan-lo); background: var(--cyan); color: var(--ink); }
.svc--dark { --num: var(--violet); background: var(--card-dark); color: var(--white); }
.svc--pink { --num: #96094a; background: var(--pink); color: var(--white); }
/* karty mają pikselowe rogi tylko w trakcie wjazdu: skrypt zmniejsza --p do zera, gdy karta dojedzie */
.svc { --p: 0px; }
.svc--white { clip-path: polygon(0 calc(2 * var(--p)), calc(1 * var(--p)) calc(2 * var(--p)), calc(1 * var(--p)) calc(1 * var(--p)), calc(2 * var(--p)) calc(1 * var(--p)), calc(2 * var(--p)) 0, calc(100% - 1 * var(--p)) 0, calc(100% - 1 * var(--p)) calc(1 * var(--p)), 100% calc(1 * var(--p)), 100% calc(100% - 2 * var(--p)), calc(100% - 1 * var(--p)) calc(100% - 2 * var(--p)), calc(100% - 1 * var(--p)) calc(100% - 1 * var(--p)), calc(100% - 2 * var(--p)) calc(100% - 1 * var(--p)), calc(100% - 2 * var(--p)) 100%, calc(2 * var(--p)) 100%, calc(2 * var(--p)) calc(100% - 2 * var(--p)), 0 calc(100% - 2 * var(--p))); }
.svc--cyan { clip-path: polygon(0 calc(2 * var(--p)), calc(2 * var(--p)) calc(2 * var(--p)), calc(2 * var(--p)) 0, calc(100% - 3 * var(--p)) 0, calc(100% - 3 * var(--p)) calc(1 * var(--p)), calc(100% - 2 * var(--p)) calc(1 * var(--p)), calc(100% - 2 * var(--p)) calc(2 * var(--p)), calc(100% - 1 * var(--p)) calc(2 * var(--p)), calc(100% - 1 * var(--p)) calc(3 * var(--p)), 100% calc(3 * var(--p)), 100% calc(100% - 1 * var(--p)), calc(100% - 1 * var(--p)) calc(100% - 1 * var(--p)), calc(100% - 1 * var(--p)) 100%, calc(2 * var(--p)) 100%, calc(2 * var(--p)) calc(100% - 1 * var(--p)), calc(1 * var(--p)) calc(100% - 1 * var(--p)), calc(1 * var(--p)) calc(100% - 2 * var(--p)), 0 calc(100% - 2 * var(--p))); }
.svc--dark { clip-path: polygon(0 calc(1 * var(--p)), calc(1 * var(--p)) calc(1 * var(--p)), calc(1 * var(--p)) 0, calc(100% - 2 * var(--p)) 0, calc(100% - 2 * var(--p)) calc(1 * var(--p)), calc(100% - 1 * var(--p)) calc(1 * var(--p)), calc(100% - 1 * var(--p)) calc(2 * var(--p)), 100% calc(2 * var(--p)), 100% calc(100% - 2 * var(--p)), calc(100% - 2 * var(--p)) calc(100% - 2 * var(--p)), calc(100% - 2 * var(--p)) 100%, calc(3 * var(--p)) 100%, calc(3 * var(--p)) calc(100% - 1 * var(--p)), calc(2 * var(--p)) calc(100% - 1 * var(--p)), calc(2 * var(--p)) calc(100% - 2 * var(--p)), calc(1 * var(--p)) calc(100% - 2 * var(--p)), calc(1 * var(--p)) calc(100% - 3 * var(--p)), 0 calc(100% - 3 * var(--p))); }
.svc--pink { clip-path: polygon(0 calc(2 * var(--p)), calc(1 * var(--p)) calc(2 * var(--p)), calc(1 * var(--p)) calc(1 * var(--p)), calc(2 * var(--p)) calc(1 * var(--p)), calc(2 * var(--p)) 0, calc(100% - 1 * var(--p)) 0, calc(100% - 1 * var(--p)) calc(1 * var(--p)), 100% calc(1 * var(--p)), 100% calc(100% - 2 * var(--p)), calc(100% - 1 * var(--p)) calc(100% - 2 * var(--p)), calc(100% - 1 * var(--p)) calc(100% - 1 * var(--p)), calc(100% - 2 * var(--p)) calc(100% - 1 * var(--p)), calc(100% - 2 * var(--p)) 100%, calc(2 * var(--p)) 100%, calc(2 * var(--p)) calc(100% - 2 * var(--p)), 0 calc(100% - 2 * var(--p))); }
/* ruchome pikselowe tło karty */
.svc__fx { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.svc--dark { -webkit-mask-size: 64px 64px; mask-size: 64px 64px; }
.panel--sites > :not(.svc__fx) { position: relative; }
.svc__num { position: absolute; left: 2vw; bottom: -2vh; font: 400 min(30vh, 17vw)/0.72 var(--px-bold); color: var(--num); pointer-events: none; }
.svc__head, .svc__body { position: relative; }
.svc h2 { margin-top: 10px; font: 400 clamp(3rem, 5.4vw, 6rem)/0.86 var(--px-bold); letter-spacing: 0; } /* ten sam pikselowy krój co tytuły paneli */
.svc__text { margin-top: clamp(16px, 2.6vh, 26px); max-width: 24em; }
.svc .chip { margin-top: clamp(16px, 2.8vh, 28px); position: relative; z-index: 1; }
.svc--dark .chip { background: var(--white); color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px 4px; max-width: 42em; }
.pills li {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 999px; transform: rotate(var(--r, 0deg));
  background: var(--pink); color: var(--white); font-size: 0.74em; text-transform: uppercase; transition: transform 0.25s var(--ease);
}
.pills li:hover { transform: rotate(0deg) scale(1.05); }
.svc--cyan .pills li, .svc--pink .pills li { background: var(--dark); color: var(--white); }
/* talia grafik: bez tła, każda w swoich proporcjach; nowa nachodzi na poprzednią, a tamta się rozmywa */
.svc__pic { position: absolute; right: clamp(16px, 3vw, 54px); bottom: clamp(48px, 8vh, 84px); display: block; cursor: zoom-in; aspect-ratio: 16 / 9; height: min(calc(100svh - 300px), 30vw); }
.svc__pic .svc__shot {
  position: absolute; left: 50%; top: 50%; width: auto; height: auto; max-width: 100%; max-height: 100%;
  transform: translate(-50%, -50%) translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg));
  transition: transform 0.65s var(--ease), opacity 0.4s ease, filter 0.5s ease;
}
.svc__pic .svc__shot:nth-child(3n+1) { clip-path: var(--corners-a); }
.svc__pic .svc__shot:nth-child(3n+2) { clip-path: var(--corners-b); }
.svc__pic .svc__shot:nth-child(3n) { clip-path: var(--corners-c); }
/* podpis pracy z wierzchu talii */
.svc__cap { position: absolute; right: clamp(16px, 3vw, 54px); bottom: clamp(14px, 3vh, 40px); font: 400 clamp(1.3rem, 1.7vw, 1.8rem)/1 var(--px-bold); letter-spacing: 0.02em; text-transform: uppercase; }
.svc__pic .svc__shot.is-under { filter: blur(6px) brightness(0.72); }
.svc__pic .svc__shot.is-off { opacity: 0; transform: translate(-50%, -50%) translate(46%, 30%) rotate(calc(var(--r, 0deg) + 9deg)); pointer-events: none; }

/* trzy kafle stron: AnyServ na wierzchu, reszta za nim */
.svc__fan { position: absolute; right: clamp(16px, 3vw, 54px); bottom: clamp(20px, 5vh, 56px); aspect-ratio: 16 / 9; height: min(calc(100svh - 300px), 30vw); }
.fan { position: absolute; display: block; width: 62%; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--dark); clip-path: var(--corners-a); transition: transform 0.35s var(--ease); }
.fan img { width: 100%; height: 100%; object-fit: cover; }
.fan span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; background: var(--dark); color: var(--white); font-size: 0.78em; text-transform: uppercase; }
.fan--office { left: 0; top: 2%; transform: rotate(-6deg); z-index: 1; clip-path: var(--corners-b); }
.fan--pelum { right: 0; top: 2%; transform: rotate(6deg); z-index: 2; clip-path: var(--corners-c); }
.fan--any { left: 17%; bottom: 0; width: 66%; transform: rotate(-1deg); z-index: 3; }
.fan:hover, .fan:focus-visible { transform: translateY(-10px) rotate(0deg); z-index: 4; }
/* układ karty na szerokim ekranie: wszystko o usłudze w lewej kolumnie, cała prawa strona dla prac */
@media (min-width: 861px) {
  .svc { display: block; }
  .svc__head, .svc__body { width: min(36vw, 600px); }
  .svc__body { margin-top: clamp(18px, 3vh, 30px); }
  .svc__pic { top: clamp(84px, 11vh, 112px); width: 55vw; height: auto; aspect-ratio: auto; }
  .svc__fan { bottom: auto; top: 50%; transform: translateY(-46%); height: min(calc(100svh - 260px), 31vw); }
}

/* ostatnia karta zajmuje cały ekran, a potem ekran jedzie w prawo */
.motion .track { position: absolute; left: 0; top: 0; height: 100%; width: 300vw; display: flex; flex-direction: row; will-change: transform; transform: translateX(120vw); transform-origin: 50vw 50%; }
.panel { position: relative; width: 100%; min-height: 100svh; flex: none; }
.motion .panel { width: 100vw; height: 100%; min-height: 0; }
.track .svc { border-radius: 0; }
.panel--how, .panel--sites { display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 56px); padding: 92px clamp(20px, 4vw, 72px) 40px; }
.panel--how { background: var(--dark-3); color: var(--white); }
.panel--sites { background: var(--cyan); color: var(--ink); }
/* marketing: wjeżdża z prawej w miejsce karty 02; ciemny błękit, żeby karta i panel miały dwa kolory */
.panel--mkt { background: var(--mkt); color: var(--white); }
.motion .scene > .panel--mkt { position: absolute; inset: 0; width: auto; height: auto; will-change: transform; transform: translateX(100%); visibility: hidden; box-shadow: -6px 0 0 var(--mkt); } /* cień zasłania szczelinę w czasie przejazdu; przed nim panel jest ukryty */
.panel__title { font: 400 clamp(3.4rem, 9vw, 10rem)/0.8 var(--px-bold); letter-spacing: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 44px); counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 400 clamp(5rem, 9vw, 11rem)/0.8 var(--px-bold); color: var(--cyan); }
.steps h3 { margin: 14px 0 10px; font-size: clamp(1.3rem, 2.1vw, 2.3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; text-transform: uppercase; }
.panel__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.ptabs { display: flex; gap: 4px; padding: 4px; background: rgba(var(--dark-rgb), 0.14); }
.ptabs button { min-height: 40px; padding: 0 16px; text-transform: uppercase; font-size: 0.86em; transition: background-color 0.2s; }
.ptabs button:hover { background: rgba(var(--dark-rgb), 0.16); }
.ptabs button.is-on { background: var(--dark); color: var(--white); }
.sites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.sites[hidden] { display: none; }
.site { display: block; color: inherit; }
.site__pic { position: relative; display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--dark); }
.site__pic img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; transition: transform 0.5s var(--ease); }
a.site:hover img { transform: scale(1.04); }
.site b { display: block; margin-top: 12px; font: 400 clamp(1.8rem, 3.2vw, 3.6rem)/0.9 var(--px-bold); letter-spacing: 0; }
.site span.t { display: block; margin-top: 6px; font-size: 0.9em; line-height: 1.15; }

/* każda grafika ma pikselowe rogi */
.wcard:nth-child(3n+1) .wcard__pic, .sites li:nth-child(3n+1) .site__pic { clip-path: var(--corners-a); }
.wcard:nth-child(3n+2) .wcard__pic, .sites li:nth-child(3n+2) .site__pic { clip-path: var(--corners-b); }
.wcard:nth-child(3n) .wcard__pic, .sites li:nth-child(3n) .site__pic { clip-path: var(--corners-c); }
.px-sweep { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }

/* ── prace ─────────────────────────────────────────────────── */
.work { position: relative; z-index: 3; margin-top: -22px; background: var(--white); color: var(--ink); padding: clamp(84px, 11vh, 120px) 0 clamp(72px, 9vw, 130px); border-radius: 22px 22px 0 0; overflow: hidden; }
.work__head { padding: 0 var(--m); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.work__head h2 { font: 400 clamp(3.4rem, 8vw, 9rem)/0.8 var(--px-bold); letter-spacing: 0; }
.work__head p { max-width: 26em; font-size: clamp(1.05rem, 1.35vw, 1.5rem); line-height: 1.18; }
.filter { margin-top: clamp(24px, 3vw, 40px); padding: 0 var(--m); display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.9em; text-transform: uppercase; }
.filter button { position: relative; min-height: 40px; color: #5c5570; text-transform: uppercase; transition: color 0.2s; }
.filter button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 0.25s steps(4); }
.filter button:hover { color: var(--ink); }
.filter button.is-on { color: var(--ink); }
.filter button.is-on::after { transform: scaleX(1); }

.rail { margin-top: 28px; display: flex; align-items: flex-start; gap: clamp(14px, 1.8vw, 26px); padding: 4px var(--m) 64px; overflow-x: auto; scroll-padding-left: var(--m); scrollbar-width: none; cursor: grab; }
@media (pointer: coarse) { .rail { scroll-snap-type: x proximity; } }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag .wcard { pointer-events: none; }
.wcard { flex: none; display: block; width: clamp(230px, 23vw, 370px); scroll-snap-align: start; }
.wcard:nth-child(even) { margin-top: 56px; }
.wcard[hidden] { display: none; }
.wcard__pic { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--grey); }
.wcard img, .wcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
/* szerokie obrazy nie mieszczą się w kadrze: powoli jadą od lewej do prawej i wracają */
.wcard img.pan {
  inset: 0 auto auto 0; width: auto; height: 100%; max-width: none; aspect-ratio: var(--ar); object-fit: fill;
  animation: pan var(--dur, 16s) ease-in-out var(--wait, 0s) infinite alternate paused; will-change: transform;
}
.wcard.in-view img.pan { animation-play-state: running; }
.rail.is-moving .wcard img.pan { animation-play-state: paused; }
@keyframes pan { to { transform: translateX(calc((1 - 0.75 / var(--ar)) * -100%)); } }
.wcard__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 0.86em; color: #5c5570; }
.wcard__cap b { font-weight: 500; color: var(--ink); }
.wcard__link { color: var(--pink); }
.progress { margin: 0 var(--m); height: 8px; background: var(--grey); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--pink); }

/* ── tablica szkolna 8-bit ─────────────────────────────────── */
.board { position: relative; z-index: 4; margin-top: -22px; background: var(--dark); padding: clamp(16px, 2.4vw, 40px) clamp(10px, 2.4vw, 40px); border-radius: 22px 22px 0 0; }
.chalk {
  position: relative; min-height: min(88vh, 62vw); padding: clamp(28px, 4vw, 64px) clamp(24px, 4vw, 72px) 96px; overflow: hidden; color: #f4f7ef;
  background: #174838; box-shadow: inset 0 0 0 clamp(10px, 1.2vw, 18px) #8a5426, inset 0 0 0 clamp(14px, 1.6vw, 24px) #5e3715;
  clip-path: polygon(0 16px, 8px 16px, 8px 8px, 16px 8px, 16px 0, calc(100% - 16px) 0, calc(100% - 16px) 8px, calc(100% - 8px) 8px, calc(100% - 8px) 16px, 100% 16px, 100% calc(100% - 16px), calc(100% - 8px) calc(100% - 16px), calc(100% - 8px) calc(100% - 8px), calc(100% - 16px) calc(100% - 8px), calc(100% - 16px) 100%, 16px 100%, 16px calc(100% - 8px), 8px calc(100% - 8px), 8px calc(100% - 16px), 0 calc(100% - 16px));
}
.chalk__dust, .chalk__draw { position: absolute; inset: clamp(14px, 1.6vw, 24px); width: calc(100% - 2 * clamp(14px, 1.6vw, 24px)); height: calc(100% - 2 * clamp(14px, 1.6vw, 24px)); image-rendering: pixelated; }
.chalk__draw { cursor: crosshair; touch-action: pan-y; }
.chalk__title, .chalk__notes { position: relative; pointer-events: none; }
.chalk__title { display: inline-block; font: 400 clamp(3.4rem, 8vw, 9rem)/0.8 var(--px-bold); letter-spacing: 0; padding-bottom: 12px; background: repeating-linear-gradient(90deg, currentColor 0 12px, transparent 12px 20px) 0 100% / 100% 4px no-repeat; }
.chalk__notes { margin-top: clamp(24px, 4vh, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px) clamp(24px, 5vw, 80px); max-width: 78em; }
.chalk__notes li { font: 400 clamp(1.9rem, 3.3vw, 3.8rem)/0.92 var(--px-bold); letter-spacing: 0; display: flex; gap: 0.35em; }
.chalk__notes li::before { content: ''; flex: none; width: 0.35em; height: 0.35em; margin-top: 0.22em; background: currentColor; }
.chalk__notes li:nth-child(4n+2) { color: #9fe7ff; }
.chalk__notes li:nth-child(4n+3) { color: #ffb4d6; }
.chalk__tray { position: absolute; left: clamp(14px, 1.6vw, 24px); right: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 24px); height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: #6d4119; box-shadow: inset 0 4px 0 #8a5426; }
.stick { position: relative; flex: none; width: 48px; height: 32px; }
.stick::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 10px; background: var(--chalk, #f6f6ee); box-shadow: 4px 0 0 rgba(0, 0, 0, 0.2); transition: transform 0.15s steps(2); }
.stick--c { --chalk: #9fe7ff; width: 36px; }
.stick--m { --chalk: #ffb4d6; width: 30px; }
.stick:hover::before { transform: translateY(-3px); }
.stick.is-on::before { transform: translateY(-9px); box-shadow: 4px 0 0 rgba(0, 0, 0, 0.2), 0 13px 0 -4px rgba(0, 0, 0, 0.28); } /* wybrana kreda jest podniesiona z półki */
.chalk__draw.is-sponge { cursor: cell; }
.chalk__hint { margin-left: auto; font: 400 clamp(1.1rem, 1.6vw, 1.7rem)/1 var(--px-bold); letter-spacing: 0; color: #f0d9b8; }
.eraser { min-height: 34px; padding: 0 14px; background: #f2c84b; box-shadow: inset 0 -9px 0 #2f2a24, inset 0 3px 0 #ffe08a; color: #2f2a24; padding-bottom: 8px; font: 400 clamp(1.1rem, 1.6vw, 1.7rem)/1 var(--px-bold); letter-spacing: 0; transition: transform 0.15s steps(2); }
.eraser:hover { transform: translateY(-3px); }
.eraser.is-on { transform: translateY(-9px); }

/* ── kontakt: stary monitor CRT z terminalem VHS ───────────── */
.contact { position: relative; z-index: 3; background: var(--dark); padding: clamp(40px, 5vw, 80px) 0 clamp(64px, 7vw, 110px); overflow: hidden; }
.big { font-weight: 400; letter-spacing: 0; white-space: nowrap; line-height: 0.8; }
.thin { font-family: var(--px-thin); }
.big--contact { display: grid; }
.big--contact .thin { font-size: 15vw; justify-self: center; color: var(--cyan); }
.contact__grid { position: relative; margin-top: clamp(-120px, -7vw, -40px); padding: 0 var(--m); display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); align-items: end; gap: clamp(16px, 3vw, 48px); }
/* naklejka do odklejenia: w spoczynku lekko odgięty róg, pod spodem zostaje ślad */
.sticker-slot { position: relative; z-index: 4; width: 200px; height: 156px; margin: 0 0 clamp(14px, 2vw, 28px) clamp(0px, 13vw, 200px); }
.sticker__scraps { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.sticker__scraps[hidden] { display: none; }
/* pod naklejką: czerwony przycisk, którego nie wolno dotykać */
.nuke-btn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: repeating-linear-gradient(135deg, #f2c84b 0 10px, #1e1b17 10px 20px); box-shadow: inset 0 0 0 6px #1e1b17, inset 0 0 0 60px #2a2333; }
.nuke-btn i { width: 78px; height: 78px; background: #e0182f; border-radius: 50%; box-shadow: inset 0 -8px 0 #8f0d1e, inset 0 6px 0 #ff6b7c, 0 6px 0 #1e1b17, 0 0 0 5px #6b6470; transition: transform 0.08s steps(2), box-shadow 0.08s steps(2); }
.nuke-btn:not(:disabled):hover i { background: #ff2a42; }
.nuke-btn:not(:disabled):active i { transform: translateY(5px); box-shadow: inset 0 -4px 0 #8f0d1e, inset 0 6px 0 #ff6b7c, 0 1px 0 #1e1b17, 0 0 0 5px #6b6470; }
.nuke-btn b { font: 400 1.7rem/1 var(--px-bold); letter-spacing: 0.04em; color: #f2c84b; }
/* wybuch: pełnoekranowa warstwa z pikselowym grzybem */
.nuke { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; pointer-events: none; }
.nuke.is-boom { pointer-events: auto; background: var(--dark); }
.nuke canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; visibility: hidden; }
.nuke.is-boom canvas { visibility: visible; }
.nuke__count { position: relative; font: 400 min(60vh, 46vw)/0.8 var(--px-bold); color: #e0182f; text-shadow: 0.04em 0.04em 0 var(--dark); }
.nuke__count.is-pop { animation: nuke-pop 0.3s steps(4); }
@keyframes nuke-pop { from { transform: scale(1.5); } }
.nuke__end { position: relative; width: 100%; padding: clamp(18px, 4vh, 44px) 16px; text-align: center; background: rgba(8, 2, 16, 0.82); animation: nuke-in 1.6s steps(8) both; }
.nuke__end[hidden] { display: none; }
@keyframes nuke-in { from { opacity: 0; } }
.nuke__end h2 { font: 400 clamp(4rem, 14vw, 13rem)/0.8 var(--px-bold); letter-spacing: 0.06em; color: #c2142a; }
.nuke__end p { margin-top: 14px; font-size: clamp(1rem, 1.5vw, 1.4rem); color: #e7e1f6; }
.nuke__end button { margin-top: 20px; min-height: 48px; padding: 0 22px 2px; background: var(--cyan); color: var(--ink); font: 400 clamp(1.4rem, 2vw, 1.9rem)/1 var(--px-bold); letter-spacing: 0.02em; text-transform: uppercase; box-shadow: inset 0 3px 0 var(--cyan-hi), inset 0 -4px 0 var(--cyan-lo); }
.nuke__end button:hover { background: var(--cyan-hov); }
/* odbudowa strony z klocków */
.nuke.is-out { opacity: 0; transition: opacity 0.6s steps(6); pointer-events: none; }
.build { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 18px); width: 100%; padding: clamp(16px, 3vh, 32px) 16px; background: rgba(8, 2, 16, 0.86); text-align: center; }
.build[hidden], .build__load[hidden], .build__bricks[hidden], .build__hint[hidden] { display: none; }
.build h2 { font: 400 clamp(2.4rem, 5.4vw, 4.6rem)/0.9 var(--px-bold); letter-spacing: 0.02em; color: var(--white); }
.build__hint { font-size: clamp(0.95rem, 1.3vw, 1.2rem); color: #cfc6ea; }
.build__page { display: grid; grid-template-rows: 46px 110px 46px; gap: 8px; width: min(340px, 84vw); padding: 10px; background: #160a36; box-shadow: inset 0 0 0 3px var(--line); }
.build__slot { position: relative; display: grid; place-items: center; border: 3px dashed #5b46a0; color: #8f80bb; font: 400 1.3rem/1 var(--px-bold); letter-spacing: 0.04em; text-transform: uppercase; }
.build__slot.is-full { border-color: transparent; }
.build__slot.is-full > span { display: none; }
.build__bricks { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; min-height: 70px; padding-top: 10px; }
.brick { position: relative; z-index: 2; min-width: 132px; min-height: 46px; padding: 0 14px 2px; background: var(--brick, var(--cyan)); color: var(--ink); font: 400 1.4rem/1 var(--px-bold); letter-spacing: 0.04em; text-transform: uppercase; cursor: grab; touch-action: none; box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 0 rgba(0, 0, 0, 0.3); transition: transform 0.2s steps(4); }
.brick::before { content: ''; position: absolute; left: 10px; right: 10px; top: -7px; height: 7px; background: repeating-linear-gradient(90deg, var(--brick, var(--cyan)) 0 16px, transparent 16px 26px); filter: brightness(1.15); } /* wypustki klocka */
.brick--nav { --brick: var(--cyan); }
.brick--main { --brick: #ffffff; min-width: 170px; min-height: 60px; }
.brick--foot { --brick: var(--pink-2); color: var(--white); }
.brick.is-drag { cursor: grabbing; transition: none; z-index: 5; filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.5)); }
.brick.is-no { animation: nudge 0.3s steps(4); }
.brick.is-set { position: absolute; inset: 0; min-width: 0; min-height: 0; width: 100%; height: 100%; cursor: default; animation: brick-in 0.25s steps(3); }
.brick.is-set::before { display: none; }
@keyframes brick-in { from { transform: translateY(-14px); } }
.build__load { display: grid; gap: 8px; justify-items: center; }
.build__load b { font: 400 1.8rem/1 var(--px-bold); letter-spacing: 0.04em; color: var(--white); }
.build__load i { display: block; width: 276px; height: 22px; background: repeating-linear-gradient(90deg, var(--deep) 0 16px, transparent 16px 20px); }
.build__load i::after { content: ''; display: block; height: 100%; width: calc(var(--n, 0) * 20px - 4px); max-width: 100%; background: repeating-linear-gradient(90deg, var(--cyan) 0 16px, transparent 16px 20px); }
html.is-shaking body { animation: nuke-shake 0.16s steps(2) infinite; }
@keyframes nuke-shake { 0% { transform: translate(5px, -3px); } 50% { transform: translate(-6px, 4px); } 100% { transform: translate(3px, 5px); } }
html.is-nuked { overflow: hidden; }
/* karta 02 pokazuje wykres zamiast podpisu pracy */
.svc--cyan .svc__cap { display: none; }
.sticker { position: absolute; inset: 0; z-index: 2; display: block; cursor: grab; touch-action: none; } /* nad śladem kleju, który odsłania się w trakcie zrywania */
.sticker.is-grabbed { cursor: grabbing; }
.sticker.is-off { pointer-events: none; }
.sticker.is-off canvas { transform: translateY(70vh) rotate(16deg); opacity: 0; transition: transform 0.7s cubic-bezier(0.5, 0, 0.9, 0.6), opacity 0.2s linear 0.5s; }
.sticker[hidden] { display: none; }
.sticker canvas { position: absolute; max-width: none; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.5)); }
.sticker:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.contact__word { font: 400 18vw/0.74 var(--px-bold); letter-spacing: 0; white-space: nowrap; width: max-content; margin-left: -0.3vw; }
.contact__text { margin-top: clamp(16px, 2vw, 32px); max-width: 24em; font-size: clamp(1.05rem, 1.5vw, 1.6rem); line-height: 1.14; }
.contact__mail { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--cyan); }
.contact__mail > * { text-decoration: underline; text-underline-offset: 0.2em; }

.crt { position: relative; display: flex; flex-direction: column; align-items: center; }
.crt__case { width: 100%; padding: clamp(14px, 2vw, 30px) clamp(14px, 2vw, 30px) 0; background: #cfc6b0; border-radius: 22px 22px 14px 14px; box-shadow: inset 0 6px 0 #e6dfcc, inset 0 -10px 0 #a89e86, inset 6px 0 0 #dcd4bf, inset -6px 0 0 #b4aa92; }
.crt__bezel { padding: clamp(12px, 1.6vw, 24px); background: #1e1b17; border-radius: 26px; box-shadow: inset 0 0 0 3px #38332b; }
.crt__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; padding: 5% 6%; border-radius: 7% / 9%; color: var(--phosphor);
  background: radial-gradient(ellipse at 50% 45%, #0c2a33 0%, #05141b 62%, #020709 100%);
  font: 400 clamp(1.15rem, 2vw, 2.2rem)/1.04 var(--crt); letter-spacing: 0; text-shadow: 0 0 6px rgba(111, 230, 255, 0.65), 2px 0 0 rgba(224, 37, 127, 0.35), -1px 0 0 rgba(0, 174, 255, 0.35);
  animation: crt-flicker 3.4s steps(12) infinite;
}
@keyframes crt-flicker { 0%, 100% { opacity: 1; } 47% { opacity: 0.94; } 50% { opacity: 1; } 52% { opacity: 0.9; } 54% { opacity: 1; } }
.crt__osd { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; }
.crt__boot { min-height: 3.2em; margin-top: 2.5%; white-space: pre-line; opacity: 0.85; }
.crt__scan, .crt__band { position: absolute; inset: 0; pointer-events: none; }
.crt__scan { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.32) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.55) 100%); }
.crt__band { height: 14%; bottom: auto; background: rgba(160, 230, 255, 0.1); animation: crt-band 5.2s linear infinite; }
@keyframes crt-band { from { transform: translateY(-120%); } to { transform: translateY(760%); } }
.term { position: relative; z-index: 1; margin-top: 2%; }
.term label { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); align-items: baseline; gap: 4px; padding: 3px 0; }
.term label > span::before { content: '> '; color: var(--pink-2); }
.term input, .term textarea { width: 100%; padding: 2px 4px; background: none; border: 0; border-bottom: 2px dashed rgba(111, 230, 255, 0.4); outline: 0; color: #eaffff; font: inherit; text-shadow: inherit; caret-color: var(--pink-2); resize: none; }
.term input:focus, .term textarea:focus { border-bottom-color: var(--pink-2); background: rgba(111, 230, 255, 0.08); }
.term ::placeholder { color: rgba(111, 230, 255, 0.55); opacity: 1; }
.term__trap { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.term__foot { margin-top: 2%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.term__foot p { min-width: 0; }
.term__foot p.is-ok { color: #8dffb0; }
.term__foot p.is-err { color: #ff9cc7; }
.term__send { flex: none; padding: 4px 10px; color: var(--ink); background: var(--phosphor); text-shadow: none; font: inherit; }
.term__send:hover { background: #fff; }
.term__send:disabled { opacity: 0.55; cursor: progress; }
.crt__panel { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: clamp(36px, 4vw, 58px); padding: 0 8px 6px; color: #5c5442; }
.crt__badge { margin-right: auto; font: 400 clamp(1.1rem, 1.6vw, 1.7rem)/1 var(--px-bold); letter-spacing: 0.04em; }
.crt__knob { width: 16px; height: 16px; background: #5c5442; box-shadow: inset 0 0 0 3px #857b66; }
.crt__led { width: 10px; height: 10px; background: var(--cyan); animation: led 2s steps(2) infinite; }
@keyframes led { 50% { background: #0a6a9a; } }
.crt__neck { display: block; width: 44%; height: 14px; background: #a89e86; box-shadow: inset 0 -5px 0 #8f8570; }
/* monitor z lat 90.: kratka wentylacyjna u góry, wypukłe szkło z odblaskiem */
.crt__case::before { content: ''; display: block; height: 8px; margin: -2px 22% 10px; background: repeating-linear-gradient(90deg, #a89e86 0 6px, transparent 6px 12px); }
.crt__screen::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: linear-gradient(128deg, rgba(255, 255, 255, 0.13) 0 16%, rgba(255, 255, 255, 0.04) 16% 22%, transparent 22%); box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.7), inset 0 0 0 2px rgba(0, 0, 0, 0.5); }
.crt__game { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; background: #05141b; }
.crt__game[hidden] { display: none; }
.crt__screen.is-game > .crt__osd, .crt__screen.is-game > .crt__boot, .crt__screen.is-game > .term { visibility: hidden; }
/* komputer pod monitorem: stacja dyskietek, power i kratki */
.pc { position: relative; display: flex; align-items: center; gap: clamp(8px, 1.4vw, 20px); width: 100%; min-height: 92px; padding: 12px clamp(12px, 1.6vw, 24px) 16px; background: #cfc6b0; border-radius: 6px; box-shadow: inset 0 5px 0 #e6dfcc, inset 0 -9px 0 #a89e86, inset 5px 0 0 #dcd4bf, inset -5px 0 0 #b4aa92; color: #5c5442; }
.pc__vents { flex: none; width: clamp(40px, 7vw, 110px); height: 44px; background: repeating-linear-gradient(0deg, #a89e86 0 4px, transparent 4px 10px); }
.pc__badge { font: 400 clamp(1rem, 1.3vw, 1.4rem)/1 var(--px-bold); letter-spacing: 0.04em; white-space: nowrap; }
.pc__power { display: flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; text-align: left; font: 400 clamp(1rem, 1.25vw, 1.35rem)/1 var(--px-bold); letter-spacing: 0.02em; color: #5c5442; }
.pc__power i { flex: none; width: 30px; height: 30px; background: #857b66; box-shadow: inset 0 0 0 3px #5c5442, inset 0 0 0 6px #b4aa92, inset 0 0 0 30px #6d6452; }
.pc__power.is-on i { box-shadow: inset 0 0 0 3px #5c5442, inset 0 0 0 6px #b4aa92, inset 0 0 0 30px var(--pink-2); }
.pc__power:hover i { transform: translateY(1px); }
.pc__power:not(.is-on) span { opacity: 0.55; }
.pc__drive { position: relative; flex: none; width: clamp(120px, 13vw, 176px); height: 50px; background: #b4aa92; box-shadow: inset 0 0 0 3px #8f8570; }
.pc__slot { position: absolute; left: 12px; right: 12px; top: 14px; height: 8px; background: #1e1b17; box-shadow: 0 2px 0 #e6dfcc; }
.pc__eject { position: absolute; right: 12px; bottom: 8px; width: 16px; height: 8px; background: #5c5442; }
.pc__led { position: absolute; left: 12px; bottom: 9px; width: 8px; height: 6px; background: #4d6b3a; }
.pc__drive.is-busy .pc__led { background: #8dffb0; animation: led 0.5s steps(2) infinite; }
.pc__drive.is-busy .pc__slot { background: linear-gradient(90deg, #1e1b17 0 8%, #2f3a9c 8% 92%, #1e1b17 92%); }
.pc__drive.is-over { box-shadow: inset 0 0 0 3px var(--cyan), 0 0 0 3px var(--cyan); }
/* dyskietki leżą pod komputerem; trzeba je przeciągnąć do stacji */
.disks { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 12px clamp(10px, 1.6vw, 22px); width: 100%; margin-top: 16px; }
.disks__hint { flex-basis: 100%; text-align: center; font: 400 clamp(1.2rem, 1.6vw, 1.7rem)/1 var(--px-bold); letter-spacing: 0.02em; color: var(--muted); }
.disks__hint.is-nudge { animation: nudge 0.4s steps(4); color: var(--white); }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.disk { position: relative; z-index: 5; flex: none; width: 84px; height: 84px; padding: 0; background: var(--disk, #2f3a9c); cursor: grab; touch-action: none; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.28); transition: transform 0.25s steps(5); }
.disk::before { content: ''; position: absolute; left: 20px; right: 24px; top: 0; height: 26px; background: #c9c9d2; box-shadow: inset 12px 0 0 #c9c9d2, inset 22px 0 0 #2a2a33; } /* metalowa zasuwka */
.disk b { position: absolute; left: 9px; right: 9px; bottom: 7px; height: 38px; display: flex; align-items: center; justify-content: center; background: #f2eefb; color: var(--dark); font: 400 1.05rem/0.9 var(--px-bold); letter-spacing: 0; box-shadow: inset 0 5px 0 var(--stripe, var(--pink-2)); padding-top: 5px; }
.disk--a { --disk: #2f3a9c; --stripe: var(--cyan); transform: rotate(-4deg); }
.disk--b { --disk: #1e1b2e; --stripe: var(--pink-2); transform: rotate(3deg); }
.disk--c { --disk: #8f1352; --stripe: #b79cff; transform: rotate(-2deg); }
.disk:hover { filter: brightness(1.12); }
.disk.is-drag { cursor: grabbing; transition: none; z-index: 20; filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.45)); }
.disk.is-in { visibility: hidden; }
/* sterowanie dotykiem: tylko gdy gra jest włączona i urządzenie nie ma myszy */
.pad { display: none; }
@media (pointer: coarse) {
  .pad:not([hidden]) { display: flex; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; }
  .pad button { width: 56px; height: 56px; background: var(--deep); color: var(--white); font-size: 1.3rem; box-shadow: inset 0 -5px 0 var(--dark), inset 0 3px 0 var(--violet); touch-action: none; }
  .pad .pad__a { margin-left: 12px; background: var(--pink); box-shadow: inset 0 -5px 0 var(--pink-lo), inset 0 3px 0 var(--pink-hi); font: 400 1.8rem/1 var(--px-bold); }
}

/* ── stopka: duża i bogata ─────────────────────────────────── */

/* ── podgląd i przejście ───────────────────────────────────── */
.box { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(var(--dark-rgb), 0.97); color: var(--white); }
.box::backdrop { background: var(--dark); }
.box__close { position: absolute; z-index: 2; top: 16px; right: var(--m); min-height: 44px; padding: 0 16px; background: var(--pink); border-radius: 6px; text-transform: uppercase; font-size: 0.8em; }
.box__body { width: 100%; height: 100%; display: grid; place-items: center; padding: 72px var(--m) 24px; }
.box__body img, .box__body video { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 96px); }
.wipe { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; display: none; }

/* cienki pikselowy krój: litery rysowane w kodzie */

@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::before { font-size: clamp(3.6rem, 7vh, 5rem); }
  .steps h3 { margin: 8px 0 6px; }
}
@media (max-width: 860px) {
  .nav { height: 58px; padding: 0 8px; gap: 5px; font-size: 1.3rem; }
  .nav__brand { min-height: 42px; padding: 0 8px; }
  .nav__links, .nav__langs { min-height: 42px; }
  .pxlogo { height: 30px; }
  .nav__links > a { padding: 0 6px; }
  .nav__links > a:not(.nav__cta)::before { display: none; } /* kursor tylko przy myszy; na telefonie brak miejsca */
  .nav__links > a[aria-current]:not(.nav__cta) { color: var(--cyan); }
  .nav__links > .nav__skills { display: none; }
  .nav__links > .nav__cta { margin-left: 2px; padding: 0 10px 2px; }
  .nav__langs { gap: 3px; }
  .nav__langs a { min-width: 32px; min-height: 34px; }

  .hero { position: sticky; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 16px; padding: 72px 20px 20px; }
  .hero h1 { font-size: 25vw; }
  .room { flex: 0 1 40svh; min-height: 96px; } /* biuro oddaje miejsce dłuższemu opisowi na niskich ekranach */
  .room__tilt { height: 100%; }
  .room__img { height: 100%; max-height: none; }

  .svc { display: block; padding: 76px 20px 24px; }
  .svc__body { margin-top: 18px; }
  .svc__num { left: auto; right: 4vw; bottom: -1vh; font-size: 42vw; }
  .svc__pic { position: relative; right: auto; bottom: auto; display: block; width: 100%; height: 56vw; margin-top: 16px; }
  .svc__cap { position: relative; right: auto; bottom: auto; margin-top: 12px; font-size: 1.3rem; }
  .svc__fan { position: relative; right: auto; bottom: auto; height: auto; width: 100%; margin-top: 18px; }
  .svc__text { margin-top: 16px; }
  .svc .chip { margin-top: 16px; }
  .pills li { min-height: 28px; padding: 0 10px; }
  .panel--how, .panel--sites { padding: 72px 20px 20px; justify-content: flex-start; gap: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 10px; }
  .steps li::before { grid-row: span 2; font-size: 4.4rem; }
  .steps h3 { margin: 0 0 4px; font-size: 1.1rem; }
  .sites { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .panel__top { align-items: center; }
  .panel--how, .panel--sites { overflow-y: auto; }
  .site { display: grid; grid-template-columns: 34% minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .site__pic { grid-row: span 2; }
  .site b { margin-top: 0; font-size: 1.7rem; }

  .work__head h2 { font-size: 18vw; }
  .filter { gap: 2px 16px; }
  .wcard { width: 62vw; }
  .wcard:nth-child(even) { margin-top: 32px; }

  .chalk { padding: 28px 26px 80px; }
  .chalk__notes { grid-template-columns: minmax(0, 1fr); }
  .chalk__title { font-size: 16vw; }
  .chalk__hint { display: none; }
  .eraser { margin-left: auto; }

  .big--contact .thin { font-size: 15vw; }
  .contact__grid { display: flex; flex-direction: column; align-items: stretch; margin-top: 16px; }
  .pc { gap: 8px; padding: 12px 10px 16px; }
  .pc__vents { display: none; }
  .pc__drive { width: 104px; }
  .pc__badge { font-size: 0.95rem; }
  .sticker-slot { margin: 0 0 18px auto; }
  .crt__screen { aspect-ratio: auto; min-height: 340px; font-size: 1.15rem; }
  .term label { grid-template-columns: minmax(0, 1fr); }
  .term input, .term textarea { font-size: 16px; }

}

@media (max-width: 600px) {
  .nav__brand { gap: 0; font-size: 0; } /* samo logo; nazwa zostaje dla czytników ekranu */
}
@media (max-width: 372px) {
  .nav { padding: 0 4px; gap: 3px; }
  .nav__brand { padding: 0 5px; }
  .nav__links, .nav__langs { padding: 0 3px; }
  .nav__links > a { padding: 0 4px; }
  .nav__links > .nav__cta { padding: 0 7px 2px; }
  .nav__langs { gap: 2px; }
  .nav__langs a { min-width: 28px; padding: 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ── ukryte palety kolorów: odblokowują się po odbudowie strony ── */
html[data-pal="mint"] { --dark: #05132a; --dark-2: #0b2042; --dark-3: #102850; --cyan: #00ffa6; --pink: #b813d0; --pink-2: #c425e0; --ink: #05132a; --phosphor: #6fffb8; --cyan-hi: #8fffd7; --cyan-lo: #00b87c; --cyan-hov: #4cffbf; --pink-hi: #ed7aff; --pink-lo: #7c0d8f; --deep: #153260; --line: #2d4a73; --muted: #a6b9d6; --mkt: #0b6a6b; --violet: #2a569c; --card-dark: #0d2344; --dark-rgb: 5, 19, 42; --hue: 320deg; }
html[data-pal="arcade"] { --dark: #2a0513; --dark-2: #420b20; --dark-3: #501028; --cyan: #a600ff; --pink: #d0b813; --pink-2: #e0c425; --ink: #2a0513; --phosphor: #b86fff; --cyan-hi: #d78fff; --cyan-lo: #7c00b8; --cyan-hov: #bf4cff; --pink-hi: #ffed7a; --pink-lo: #8f7c0d; --deep: #601532; --line: #732d4a; --muted: #d6a6b9; --mkt: #6b0b6a; --violet: #9c2a56; --card-dark: #440d23; --dark-rgb: 42, 5, 19; --hue: 80deg; }
html[data-pal="sunset"] { --dark: #132a05; --dark-2: #20420b; --dark-3: #285010; --cyan: #ffa600; --pink: #13d0b8; --pink-2: #25e0c4; --ink: #132a05; --phosphor: #ffb86f; --cyan-hi: #ffd78f; --cyan-lo: #b87c00; --cyan-hov: #ffbf4c; --pink-hi: #7affed; --pink-lo: #0d8f7c; --deep: #326015; --line: #4a732d; --muted: #b9d6a6; --mkt: #6a6b0b; --violet: #569c2a; --card-dark: #23440d; --dark-rgb: 19, 42, 5; --hue: 200deg; }
html[data-pal="term"] { --dark: #052a29; --dark-2: #0b4240; --dark-3: #10504e; --cyan: #04ff00; --pink: #3a13d0; --pink-2: #4825e0; --ink: #052a29; --phosphor: #86ff6f; --cyan-hi: #91ff8f; --cyan-lo: #00b802; --cyan-hov: #51ff4c; --pink-hi: #957aff; --pink-lo: #260d8f; --deep: #15605c; --line: #2d736e; --muted: #a6d6d3; --mkt: #0b6b2c; --violet: #2a9c96; --card-dark: #0d4441; --dark-rgb: 5, 42, 41; --hue: 280deg; }
html[data-pal="neon"] { --dark: #2a1005; --dark-2: #421b0b; --dark-3: #502310; --cyan: #ff00ae; --pink: #6ad013; --pink-2: #7fe025; --ink: #2a1005; --phosphor: #ff6fe6; --cyan-hi: #ff8fdc; --cyan-lo: #b80079; --cyan-hov: #ff4cc8; --pink-hi: #b8ff7a; --pink-lo: #4b8f0d; --deep: #602a15; --line: #733f2d; --muted: #d6b3a6; --mkt: #6b0b2a; --violet: #9c4a2a; --card-dark: #441c0d; --dark-rgb: 42, 16, 5; --hue: 120deg; }
html[data-pal] :is(.svc__fx, .trail, .wipe, .px-sweep, .pxlogo) { filter: hue-rotate(var(--hue)); }
.pal { position: relative; pointer-events: auto; }
.pal[hidden] { display: none; }
.pal__btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px 0 12px; text-transform: uppercase;
  background: rgba(var(--dark-rgb), 0.94); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34); clip-path: var(--corner);
}
.pal__btn:hover, .pal__btn[aria-expanded="true"] { color: var(--cyan); }
.pal__btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.pal__ico { display: grid; grid-template-columns: 8px 8px; gap: 2px; flex: none; } /* pikselowa paleta: cztery kolory aktualnego motywu */
.pal__ico b { width: 8px; height: 8px; }
.pal__ico b:nth-child(1) { background: var(--cyan); }
.pal__ico b:nth-child(2) { background: var(--pink-2); }
.pal__ico b:nth-child(3) { background: var(--white); }
.pal__ico b:nth-child(4) { background: var(--phosphor); }
.pal.is-new .pal__btn { animation: pal-new 0.5s steps(2) 8; }
@keyframes pal-new { 50% { color: var(--ink); background: var(--cyan); } }
.pal__menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 2; display: grid; gap: 2px; min-width: 250px; padding: 8px;
  background: rgba(var(--dark-rgb), 0.97); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.34); clip-path: var(--corner);
}
.pal__menu[hidden] { display: none; }
.pal__menu p { padding: 4px 8px 8px; font: 400 1.1rem/1.1 var(--crt); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pal__menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 10px; text-align: left; text-transform: uppercase; }
.pal__menu button:hover, .pal__menu button:focus-visible { background: rgba(255, 255, 255, 0.1); outline: none; }
.pal__menu button[aria-checked="true"] { background: var(--white); color: var(--ink); }
.pal__sw { display: flex; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.pal__sw i { width: 12px; height: 16px; }
@media (max-width: 860px) {
  .pal__btn { min-height: 42px; padding: 0 9px; }
  .pal__label { display: none; }
  .pal__menu { position: fixed; top: 62px; left: 8px; right: 8px; min-width: 0; }
}
@media (max-width: 420px) { /* z przyciskiem kolorów w wąskiej nawigacji robi się ciasno */
  html.pal-on .nav { gap: 3px; }
  html.pal-on .nav__links > a { padding: 0 4px; }
  html.pal-on .pal__btn { padding: 0 7px; }
  html.pal-on .nav__langs { gap: 2px; padding: 0 3px; }
  html.pal-on .nav__langs a { min-width: 28px; }
}

/* link „Blog” w nawigacji: na wąskich telefonach mniejsze odstępy, żeby PL/EN/DE nadal się mieściły */
@media (max-width: 430px) {
  .nav { font-size: 1.15rem; gap: 2px; padding: 0 3px; }
  .nav__links > a { padding: 0 3px; }
  .nav__links > .nav__cta { padding: 0 6px 2px; }
  .nav__langs a { min-width: 25px; }
}
@media (max-width: 350px) {
  .nav__links > a[href$="#portfolio"] { display: none; } /* Portfolio jest też pod przyciskiem „Zobacz prace” */
}

/* ── retro odtwarzacz filmów (app/player.js): obraz we wciętym ekranie i wypukłe pikselowe przyciski ── */
.vp { --bevel-hi: rgba(255, 255, 255, 0.16); --bevel-lo: rgba(0, 0, 0, 0.6);
  display: inline-flex; flex-direction: column; gap: 8px; max-width: 100%; padding: 10px; background: var(--dark-2); outline: none;
  box-shadow: inset 3px 3px 0 var(--bevel-hi), inset -3px -3px 0 var(--bevel-lo); /* obudowa: lekko wypukła */
}
.vp:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.vp__screen { position: relative; display: grid; place-items: center; padding: 6px; background: #05020d;
  box-shadow: inset 4px 4px 0 var(--bevel-lo), inset -3px -3px 0 var(--bevel-hi), inset 0 0 0 7px #05020d; /* ekran wcięty w obudowę */
}
.vp__video { display: block; max-width: 100%; background: #000; cursor: pointer; }
.vp__big { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; transform: translate(-50%, -50%); background: var(--cyan); color: var(--ink);
  box-shadow: inset 4px 4px 0 var(--cyan-hi), inset -4px -4px 0 var(--cyan-lo); transition: opacity 0.2s steps(2);
  clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)); } /* te same schodki na każdym rogu */
.vp__big svg { width: 36px; height: 36px; margin-left: 2px; } /* trójkąt optycznie lekko w prawo, jak w każdym przycisku play */
.vp__big:hover { background: var(--cyan-hov); }
.vp.is-playing .vp__big { opacity: 0; pointer-events: none; }
.vp__bar { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 5px; background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 2px 2px 0 var(--bevel-lo), inset -2px -2px 0 var(--bevel-hi); }
.vp__btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; flex: none; min-width: 36px; height: 32px; padding: 0 6px; background: var(--dark-3); color: var(--white);
  box-shadow: inset 2px 2px 0 var(--bevel-hi), inset -3px -3px 0 var(--bevel-lo); }
.vp__btn b { font: 400 1.05rem/1 var(--px-bold); }
.vp__btn:hover { color: var(--cyan); }
.vp__btn:active { box-shadow: inset 3px 3px 0 var(--bevel-lo), inset -2px -2px 0 var(--bevel-hi); transform: translateY(1px); } /* wciśnięty */
.vp__btn:focus-visible, .vp__big:focus-visible, .vp__seek:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.vp__btn[data-act="play"] { background: var(--pink-2); }
.vp__seek { position: relative; flex: 1; min-width: 60px; height: 18px; background: #05020d; cursor: pointer; touch-action: none;
  box-shadow: inset 2px 2px 0 var(--bevel-lo), inset -2px -2px 0 var(--bevel-hi); }
.vp__seek i { position: absolute; left: 3px; top: 4px; bottom: 4px; max-width: calc(100% - 6px); pointer-events: none; }
.vp__buf { background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 8px); }
.vp__fill { background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 8px); } /* pasek z pikselowych kratek */
.vp__time { flex: none; min-width: 9.5ch; font: 400 1.25rem/1 var(--crt); letter-spacing: 0; color: var(--phosphor); text-align: center; text-shadow: 0 0 6px rgba(111, 230, 255, 0.5); }
/* pełny ekran: film mieści się w ekranie nad paskiem, przyciski zostają widoczne */
.vp:fullscreen { width: 100vw; height: 100vh; max-width: none; padding: 12px; }
.vp:fullscreen .vp__screen { flex: 1 1 0; min-height: 0; width: 100%; overflow: hidden; }
.vp.vp:fullscreen .vp__video { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); max-width: none; max-height: none; aspect-ratio: auto; object-fit: contain; }
.vp:fullscreen .vp__bar { flex: none; }
.box__body .vp__video { width: auto; max-height: calc(100dvh - 170px); }
@media (max-width: 520px) {
  .vp { padding: 6px; }
  .vp__bar { gap: 4px; }
  .vp__btn { min-width: 32px; padding: 0 4px; }
  .vp__btn[data-act="back"] b, .vp__btn[data-act="fwd"] b { display: none; }
  .vp__time { min-width: 0; font-size: 1.05rem; }
}

/* ── historia stron: kilka scen jednej strony w wachlarzu, który rozkłada się po najechaniu ── */
.sites li .site__pic--stack { overflow: visible; background: none; clip-path: none; }
.site__pic--stack img { position: absolute; inset: 0; clip-path: var(--corners-a); box-shadow: 0 0 0 2px var(--dark); transition: transform 0.4s var(--ease), filter 0.4s ease; }
.site__pic--stack img:nth-child(1) { z-index: 3; }
.site__pic--stack img:nth-child(2) { z-index: 2; transform: translate(10px, -10px) rotate(3deg); filter: brightness(0.7); clip-path: var(--corners-b); }
.site__pic--stack img:nth-child(3) { z-index: 1; transform: translate(20px, -20px) rotate(6deg); filter: brightness(0.5); clip-path: var(--corners-c); }
a.site:hover .site__pic--stack img:nth-child(1), a.site:focus-visible .site__pic--stack img:nth-child(1) { transform: translateX(-22%) rotate(-6deg) scale(0.8); }
a.site:hover .site__pic--stack img:nth-child(2), a.site:focus-visible .site__pic--stack img:nth-child(2) { transform: translateY(-6%) scale(0.8); filter: none; }
a.site:hover .site__pic--stack img:nth-child(3), a.site:focus-visible .site__pic--stack img:nth-child(3) { transform: translateX(22%) rotate(6deg) scale(0.8); filter: none; }
a.site:hover .site__pic--stack img { animation: none; }

/* ── Coming soon: mały 8-bitowy komunikat w miejscu kliknięcia ── */
.soon { position: fixed; z-index: 60; display: grid; gap: 6px; justify-items: center; max-width: min(320px, calc(100vw - 20px)); padding: 16px 20px 18px; background: var(--dark); color: var(--white); text-align: center;
  box-shadow: inset 0 0 0 3px var(--cyan), inset 0 0 0 6px var(--dark), inset 0 0 0 8px var(--pink-2); clip-path: var(--corners-a); animation: soon-in 0.3s steps(3); cursor: pointer; }
.soon b { font: 400 clamp(2.2rem, 3vw, 2.8rem)/0.9 var(--px-bold); letter-spacing: 0.04em; color: var(--cyan); text-shadow: 3px 3px 0 var(--pink-2); }
.soon span { font: 400 1.2rem/1 var(--px-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.soon p { font: 400 1.25rem/1.1 var(--crt); letter-spacing: 0; color: var(--phosphor); }
.soon i { display: inline-block; width: 0.55em; height: 1em; margin-left: 4px; vertical-align: -0.15em; background: currentColor; animation: soon-blink 0.8s steps(1) infinite; }
.soon.is-out { opacity: 0; transform: translateY(-8px); transition: opacity 0.3s steps(3), transform 0.3s steps(3); }
@keyframes soon-in { from { opacity: 0; transform: scale(0.6); } }
@keyframes soon-blink { 50% { opacity: 0; } }

/* ── doświadczenie i umiejętności: dla osób, które rekrutują ── */
.exp { position: relative; z-index: 2; width: min(100%, 1480px); margin: 0 auto; padding: clamp(56px, 10vh, 120px) var(--m) clamp(40px, 8vh, 96px); }
.exp__h { font: 400 clamp(3.4rem, 7vw, 7rem)/0.86 var(--px-bold); letter-spacing: 0; color: var(--cyan); }
.exp__lead { max-width: 36em; margin-top: 14px; color: var(--soft, #cfc6ea); }
.exp__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(28px, 5vh, 56px); align-items: start; }
.exp__col > h3 { margin-bottom: 18px; font: 400 clamp(1.8rem, 2.4vw, 2.4rem)/1 var(--px-bold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--pink-2); }
.exp__list { display: grid; gap: 0; }
.exp__list > li { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 0 0 26px; }
.exp__list > li::before { content: ''; position: absolute; left: 112px; top: 6px; bottom: 0; width: 4px; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 12px); } /* pikselowa oś czasu */
.exp__list > li:last-child::before { display: none; }
.exp__list > li > div { position: relative; padding-left: 20px; }
.exp__list > li > div::before { content: ''; position: absolute; left: -12px; top: 4px; width: 12px; height: 12px; background: var(--cyan); box-shadow: 0 0 0 3px var(--dark), 0 0 0 5px var(--cyan); }
.exp__when { padding-top: 2px; font: 400 1.5rem/1 var(--px-bold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); text-align: right; }
.exp__list h3 { font: 400 clamp(1.7rem, 2.2vw, 2.2rem)/1 var(--px-bold); letter-spacing: 0.01em; }
.exp__place { margin-top: 4px; color: var(--cyan); font-size: 0.95em; }
.exp__list ul { display: grid; gap: 4px; margin-top: 10px; }
.exp__list ul li { position: relative; padding-left: 16px; color: var(--soft, #cfc6ea); line-height: 1.3; }
.exp__list ul li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; background: var(--pink-2); }
.exp__skills { display: grid; gap: 18px; padding: clamp(16px, 2vw, 24px); background: var(--dark-2); clip-path: var(--corners-b); }
.exp__group h4 { margin-bottom: 10px; font: 400 1.4rem/1 var(--px-bold); letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.exp__group .pills li { background: var(--dark-3); color: var(--white); }
@media (max-width: 860px) {
  .exp__grid { grid-template-columns: 1fr; }
  .exp__list > li { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .exp__list > li::before { left: 72px; }
  .exp__when { font-size: 1.2rem; }
}

/* oś nauki pod doświadczeniem: różowe punkty, żeby było widać, że to osobna część */
.exp__sub { margin: clamp(10px, 2vh, 24px) 0 18px; font: 400 clamp(1.8rem, 2.4vw, 2.4rem)/1 var(--px-bold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--pink-2); }
.exp__list--learn > li > div::before { background: var(--pink-2); box-shadow: 0 0 0 3px var(--dark), 0 0 0 5px var(--pink-2); }
.exp__text { margin-top: 6px; color: var(--soft, #cfc6ea); line-height: 1.35; }
@media (min-width: 861px) { .exp__col:last-child { position: sticky; top: 84px; } } /* umiejętności zostają na widoku, gdy oś czasu się wydłuża */
.exp h4 { margin: 0; } /* h4 nie jest zerowany w resecie, więc odstępy w osi były za duże */

/* jedna oś doświadczenia i nauki: na start 5 wpisów, reszta po „Zobacz więcej” */
.exp__list:not(.is-open) > li:nth-child(n+7) { display: none; }
.exp__more { margin-top: 6px; cursor: pointer; }
.exp__more[hidden] { display: none; }
.exp__skills { gap: 14px; }
.exp__group .pills { gap: 5px 4px; }
/* umiejętności: zwarte kafelki, żeby cała kolumna mieściła się na ekranie; gdyby nie, da się ją przewinąć kółkiem, ale bez widocznego paska */
.exp__skills { gap: 11px; padding: 16px 20px; }
.exp__group h4 { margin-bottom: 6px; font-size: 1.3rem; }
.exp__group .pills li { min-height: 28px; padding: 0 11px; font-size: 0.7em; transform: none; }
.exp__group .pills { gap: 5px 4px; }
@media (min-width: 861px) {
  .exp__col:last-child { max-height: calc(100svh - 100px); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .exp__col:last-child::-webkit-scrollbar { display: none; }
}
@media (min-width: 861px) and (max-width: 1100px) { /* z menem kolorów w navbarze robi się ciasno: skracamy */
  html.pal-on .nav__links > .nav__skills:first-child { display: none; }
}

/* „Zobacz więcej”: duży różowy przycisk z licznikiem i skaczącą strzałką, żeby zachęcał do kliknięcia */
.exp__list:not(.is-open) { position: relative; }
.exp__list:not(.is-open)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(to bottom, transparent, var(--dark)); pointer-events: none; }
.exp .exp__more { display: inline-flex; align-items: center; gap: 12px; min-height: 64px; margin-top: 0; padding: 0 22px 2px; background: var(--pink-2); color: var(--white);
  font: 400 clamp(1.6rem, 2vw, 2rem)/1 var(--px-bold); letter-spacing: 0.03em; text-transform: uppercase; clip-path: var(--corners-a);
  box-shadow: inset 0 4px 0 var(--pink-hi), inset 0 -5px 0 var(--pink-lo); transition: transform 0.2s steps(3); }
.exp .exp__more:hover { background: var(--pink); transform: translateY(-3px); }
.exp .exp__more:active { transform: translateY(1px); box-shadow: inset 0 5px 0 var(--pink-lo); }
.exp .exp__more:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.exp__n { display: inline-block; color: var(--white); font: inherit; animation: exp-pulse 2.6s ease-in-out infinite; } /* sam licznik, bez tła */
.exp__arr { width: 16px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 25%, 87.5% 25%, 87.5% 50%, 75% 50%, 75% 75%, 62.5% 75%, 62.5% 100%, 37.5% 100%, 37.5% 75%, 25% 75%, 25% 50%, 12.5% 50%, 12.5% 25%, 0 25%); animation: exp-bob 0.9s steps(2) infinite; }
.exp__arr.is-up { transform: rotate(180deg); animation: none; }
@keyframes exp-bob { 50% { transform: translateY(4px); } }
@keyframes exp-pulse { 50% { transform: scale(1.18); } } /* delikatne „oddychanie” zamiast migania kolorem */
@media (prefers-reduced-motion: reduce) { .exp__n, .exp__arr { animation: none; } }

/* certyfikaty pod osią i umiejętnościami */
.exp__certs { margin-top: clamp(32px, 6vh, 64px); }
.exp__certs[hidden] { display: none; }
.exp__certs > h3 { margin-bottom: 16px; font: 400 clamp(1.8rem, 2.4vw, 2.4rem)/1 var(--px-bold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--pink-2); }
.exp__certs ul { display: flex; flex-wrap: wrap; gap: 14px; }
.cert { display: flex; align-items: center; gap: 16px; min-width: min(100%, 420px); padding: 16px 20px; background: var(--dark-2); clip-path: var(--corners-c); transition: background 0.2s; }
.cert:hover { background: var(--dark-3); }
.cert:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.cert__badge { flex: none; width: 44px; height: 55px; transition: transform 0.25s steps(3); }
.cert:hover .cert__badge { transform: translateY(-3px) rotate(-4deg); }
.cert span { display: grid; gap: 4px; }
.cert b { font: 400 clamp(1.6rem, 2vw, 2rem)/1 var(--px-bold); letter-spacing: 0.01em; }
.cert small { color: var(--muted); font-size: 0.9em; }
.cert em { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 12px; font: 400 1.2rem/1 var(--px-bold); font-style: normal; letter-spacing: 0.03em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }
@media (max-width: 520px) { .cert { flex-wrap: wrap; } .cert em { margin-left: 60px; padding-left: 0; } }

/* złote punkty: najważniejsze rzeczy dla kogoś, kto czyta w biegu */
.exp__list ul li.is-key { color: var(--white); }
.exp__list ul li.is-key::before { top: 0.4em; width: 9px; height: 9px; left: -1px; background: #ffc83d; box-shadow: 0 0 0 2px rgba(255, 200, 61, 0.25); }
.exp__legend { position: relative; margin: -8px 0 18px; padding-left: 18px; font-size: 0.85em; color: var(--muted); }
.exp__legend::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 9px; height: 9px; background: #ffc83d; }

/* ── easter egg: tablica spada, za nią dziura w ścianie i kot (app/cat.js) ── */
.board.is-cat { z-index: 30; }
.cathole { position: absolute; z-index: 0; }
.cathole canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; touch-action: pan-y; }
.cathole canvas.is-pet { cursor: grab; } /* ręka do głaskania */
@media (prefers-reduced-motion: reduce) { .chalk.is-shake { animation: none; } }
.chalk.is-shake { z-index: 2; animation: chalk-shake 0.45s steps(2); }
@keyframes chalk-shake { 25% { transform: rotate(-1deg); } 50% { transform: rotate(1.2deg); } 75% { transform: translateY(4px) rotate(2deg); } }
.chalk.is-loose { z-index: 25; transform-origin: 50% 50%; will-change: transform; cursor: grab; touch-action: none; user-select: none; filter: drop-shadow(10px 14px 0 rgba(0, 0, 0, 0.45)); }
.chalk.is-loose.is-held { cursor: grabbing; filter: drop-shadow(18px 26px 0 rgba(0, 0, 0, 0.35)); }
.chalk.is-loose * { pointer-events: none; }
.cathole__bubble { position: absolute; z-index: 2; padding: 8px 12px 9px; background: var(--white); color: var(--ink); font: 400 clamp(1.4rem, 2vw, 2rem)/1 var(--px-bold); letter-spacing: 0.04em; white-space: nowrap; clip-path: var(--corners-a); pointer-events: none; }
.cathole__bubble.is-pop { animation: soon-in 0.25s steps(3); }
.cat-rec { position: fixed; z-index: 70; right: 16px; bottom: 16px; padding: 10px 14px; background: var(--cyan); color: var(--ink); font: 400 1.4rem/1 var(--px-bold); }
.work__more { display: flex; justify-content: center; margin-top: 28px; padding: 0 var(--m); }
