/* kurcj.us — typografia, galerie, SMARTBLEND, płynne linie w tle (WebGL, strona.js). */

/* Fonty z własnego serwera (SIL OFL 1.1, licencje w fonts/). Tylko latin + latin-ext. */
@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo-latin.woff2) format("woff2");
  font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
  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;
}
@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo-latin-ext.woff2) format("woff2");
  font-weight: 400 800; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(fonts/plexmono-400-latin.woff2) format("woff2");
  font-weight: 400; font-display: swap;
  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;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(fonts/plexmono-400-latin-ext.woff2) format("woff2");
  font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(fonts/plexmono-500-latin.woff2) format("woff2");
  font-weight: 500; font-display: swap;
  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;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(fonts/plexmono-500-latin-ext.woff2) format("woff2");
  font-weight: 500; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --tlo: #f4f3ef;
  --tekst: #161614;
  --szary: #6f6d66;
  --linia: #dedcd5;
  --karta: #fbfaf8;
  --obrys: rgb(22 22 20 / .09);
  --linie-tla: 22 22 20;   /* rgb dla shadera */
  --linie-tla-a: .12;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --szer: 1180px;
  --bok: clamp(20px, 5vw, 56px);
  --lagodnie: cubic-bezier(.16, 1, .3, 1);
  --sprezyna: cubic-bezier(.34, 1.2, .64, 1);
  --cien-ekran: 0 0 0 1px rgb(0 0 0 / .05), 0 2px 4px rgb(0 0 0 / .04), 0 28px 70px -28px rgb(0 0 0 / .38);
}
@media (prefers-color-scheme: dark) {
  :root {
    --tlo: #0f0f0e;
    --tekst: #ecebe6;
    --szary: #95938b;
    --linia: #252523;
    --karta: #191918;
    --obrys: rgb(236 235 230 / .1);
    --linie-tla: 236 235 230;
    --linie-tla-a: .095;
    --cien-ekran: 0 0 0 1px rgb(255 255 255 / .06), 0 28px 70px -28px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font: 400 17px/1.55 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--tekst); color: var(--tlo); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

#tlo {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
}
#tlo.gotowe { opacity: 1; }

/* ---------- pasek: jedna szklana belka ---------- */
.pasek {
  position: fixed; top: 12px; left: 50%; z-index: 20;
  width: min(calc(var(--szer) + 8px), calc(100% - 24px));
  transform: translateX(-50%);
}
.pasek-w {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  height: 60px; padding: 0 8px 0 18px;
  border-radius: 20px;
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color .6s ease, box-shadow .6s ease, height .6s var(--lagodnie), -webkit-backdrop-filter .6s ease, backdrop-filter .6s ease;
}
.przewiniety .pasek-w, .menu-otwarte .pasek-w {
  height: 54px;
  background: color-mix(in srgb, var(--karta) 72%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--obrys), 0 1px 2px rgb(0 0 0 / .04), 0 18px 40px -22px rgb(0 0 0 / .35);
}
.pasek.na-ciemnym {
  --karta: #17181c; --tekst: #ecebe6; --szary: #a3a19a; --obrys: rgb(236 235 230 / .12); --tlo: #0c0d10;
  color: var(--tekst);
}
.pasek.na-ciemnym .pasek-w { transition: background-color .4s ease, box-shadow .4s ease, height .6s var(--lagodnie); }
.logo {
  display: inline-flex; align-items: baseline;
  margin-right: auto;
  font-size: 21px; font-weight: 650; letter-spacing: -.045em;
}
.logo span { display: inline-block; color: var(--akcent, var(--szary)); transition: transform .7s var(--sprezyna), color .6s ease; }
.logo:hover span { transform: translateY(-.2em); }

.menu { position: relative; display: flex; }
.menu a {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  height: 38px; padding: 0 15px;
  border-radius: 12px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  color: var(--szary);
  transition: color .35s ease;
}
.menu a:hover, .menu a[aria-current="true"] { color: var(--tekst); }
.menu-znacznik {
  position: absolute; top: 50%; left: 0; height: 38px; margin-top: -19px;
  width: var(--w, 0px);
  transform: translateX(var(--x, 0px));
  border-radius: 12px;
  background: color-mix(in srgb, var(--tekst) 7%, transparent);
  opacity: 0;
  transition: transform .7s var(--lagodnie), width .7s var(--lagodnie), opacity .4s ease;
}
.menu.ma-znacznik .menu-znacznik { opacity: 1; }
.menu.bez-animacji .menu-znacznik { transition: opacity .4s ease; }
.pasek-kontakt {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; margin-left: 6px; padding: 0 16px 0 18px;
  border-radius: 13px;
  background: var(--tekst); color: var(--tlo);
  font-size: 15px; font-weight: 550; letter-spacing: -.01em;
  transition: transform .5s var(--lagodnie), box-shadow .5s ease;
}
.pasek-kontakt svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--lagodnie); }
.pasek-kontakt:hover { box-shadow: 0 10px 24px -10px rgb(0 0 0 / .45); }
.pasek-kontakt:hover svg { transform: translate(2px, -2px); }
.pasek-postep {
  position: absolute; left: 18px; right: 18px; bottom: 0; height: 1.5px;
  border-radius: 2px;
  background: var(--akcent, var(--tekst));
  transform: scaleX(var(--postep, 0)); transform-origin: left;
  opacity: 0; transition: opacity .6s ease, background-color .8s ease;
}
.przewiniety .pasek-postep { opacity: .55; }
.pasek-menu {
  display: none;
  align-items: center; gap: 10px;
  height: 40px; padding: 0 14px;
  border: 0; border-radius: 13px;
  background: color-mix(in srgb, var(--tekst) 7%, transparent);
  font-size: 15px; font-weight: 550;
  cursor: pointer;
}
.pasek-menu i { position: relative; width: 16px; height: 10px; }
.pasek-menu i::before, .pasek-menu i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--lagodnie), top .5s var(--lagodnie);
}
.pasek-menu i::before { top: 1px; }
.pasek-menu i::after { top: 7.5px; }
.menu-otwarte .pasek-menu i::before { top: 4.2px; transform: rotate(45deg); }
.menu-otwarte .pasek-menu i::after { top: 4.2px; transform: rotate(-45deg); }

/* menu na telefonie: pełny ekran, duże pozycje */
.menu-tel {
  position: fixed; inset: 0; z-index: 19;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 96px 24px 40px;
  background: color-mix(in srgb, var(--tlo) 86%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s .5s;
}
.menu-otwarte .menu-tel { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.menu-tel a {
  font-size: clamp(38px, 11vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .8s var(--lagodnie);
}
.menu-tel small { display: block; margin: 22px 0 6px; font-size: 14px; color: var(--szary); opacity: 0; transition: opacity .6s ease; }
.menu-otwarte .menu-tel a, .menu-otwarte .menu-tel small { opacity: 1; transform: none; }
.menu-tel a:nth-child(2) { transition-delay: .04s; } .menu-tel a:nth-child(3) { transition-delay: .08s; }
.menu-tel a:nth-child(4) { transition-delay: .12s; } .menu-tel a:nth-child(5) { transition-delay: .16s; }
.menu-tel a:nth-child(6) { transition-delay: .2s; }
@media (max-width: 820px) {
  .menu, .pasek-kontakt { display: none; }
  .pasek-menu { display: inline-flex; }
}
@media (min-width: 821px) { .menu-tel { display: none; } }
body.zablokowany { overflow: hidden; }

/* ---------- start ---------- */
.start {
  max-width: var(--szer);
  margin: 0 auto;
  min-height: 100svh;
  padding: 140px var(--bok) 12vh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(28px, 4vw, 44px);
}
h1 {
  font-size: clamp(64px, 13.5vw, 196px);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.055em;
  margin-left: -.04em;
}
.maska { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.maska > span { display: block; }
.start-dol {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 6vw, 96px); align-items: end;
}
.start-lead {
  max-width: 21em;
  font-size: clamp(22px, 2.5vw, 33px); font-weight: 500;
  line-height: 1.24; letter-spacing: -.026em;
}
.start-lead .slowo { display: inline-block; }
.start-opis { display: grid; gap: 14px; }
.start-opis p { max-width: 34em; font-size: 16.5px; line-height: 1.62; color: var(--szary); }
.start-dalej {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin-top: 6px;
  font-size: 14.5px; font-weight: 550; letter-spacing: -.01em;
}
.start-dalej i { position: relative; width: 24px; height: 38px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tekst) 38%, transparent); transition: box-shadow .4s ease; }
.start-dalej i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: kolko 2s var(--lagodnie) infinite; }
.start-dalej:hover i { box-shadow: inset 0 0 0 1.5px var(--tekst); }
@keyframes kolko { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) { .start-dol { grid-template-columns: 1fr; } }

.js .start .maska > span { animation: wznies 1.6s var(--lagodnie) both; }
.js .start .maska + .maska > span { animation-delay: .09s; }
.js .start-lead .slowo { animation: slowo 1.1s var(--lagodnie) both; animation-delay: calc(.3s + var(--i) * 26ms); }
.js .start-opis > * { animation: wejscie 1.3s var(--lagodnie) both; }
.js .start-opis > :nth-child(1) { animation-delay: .75s; }
.js .start-opis > :nth-child(2) { animation-delay: .85s; }
.js .start-opis > :nth-child(3) { animation-delay: 1s; }
@keyframes wznies { from { transform: translateY(108%) rotate(2deg); } }
@keyframes wejscie { from { opacity: 0; transform: translateY(18px); } }
@keyframes slowo { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } }

/* ---------- projekty ---------- */
.projekt {
  max-width: var(--szer);
  margin: 0 auto;
  padding: clamp(90px, 15vh, 170px) var(--bok) 0;
}
.projekt-glowa {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  padding-bottom: 36px;
}
.projekt h2, .sekcja h2 {
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.048em;
}
.projekt-glowa p { font-size: 18px; line-height: 1.5; max-width: 30em; letter-spacing: -.005em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0; }
.meta li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  color: var(--szary);
  box-shadow: inset 0 0 0 1px var(--obrys);
}
@media (max-width: 760px) {
  .projekt-glowa { grid-template-columns: 1fr; padding-bottom: 28px; }
}

/* galeria: natywne przewijanie z przyciąganiem (płynne na dotyku i gładziku) */
.galeria { position: relative; }
.scena {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 24px;
  background: var(--scena);
  aspect-ratio: 16 / 10;
  outline-offset: 4px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .03);
}
.scena::-webkit-scrollbar { display: none; }
@media (prefers-color-scheme: dark) { .scena { background: var(--scena-c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .04); } }
.slajd {
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid; place-items: center;
  min-width: 0; height: 100%;
  overflow: hidden;
}
.slajd img { will-change: transform; }
.slajd.ekran { padding: clamp(14px, 5%, 56px); }
.slajd.ekran img {
  max-height: 100%; width: auto;
  border-radius: 10px;
  box-shadow: var(--cien-ekran);
}
.slajd.telefony { display: flex; justify-content: center; align-items: center; gap: 4.5%; padding: 3% 6%; }

/* iPhone rysowany w CSS (wektorowo — ostry w każdej rozdzielczości); jednostki cqw = % szerokości telefonu */
.iphone {
  position: relative;
  flex: none;
  width: 19.5%;
  container-type: inline-size;
  border-radius: 16.4% / 7.6%;
  background:
    linear-gradient(160deg, rgb(255 255 255 / .55), transparent 22% 70%, rgb(255 255 255 / .25)),
    linear-gradient(90deg, #8f8c86, #d8d5cf 6%, #a9a6a0 12% 88%, #dcd9d3 94%, #84817b);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .35),
    inset 0 0 0 2px rgb(0 0 0 / .25),
    0 2px 3px rgb(0 0 0 / .12),
    0 30px 60px -22px rgb(0 0 0 / .45),
    0 60px 90px -50px rgb(0 0 0 / .35);
}
.iphone.srodek { width: 21.5%; z-index: 1; }
.iphone::before, .iphone::after {   /* przyciski boczne */
  content: ""; position: absolute; width: 1.3%;
  border-radius: 2px;
  background: linear-gradient(90deg, #6f6c67, #c9c6c0);
}
.iphone::before {   /* przycisk czynności + głośność */
  left: -1.1%; top: 15%; height: 22%;
  background:
    linear-gradient(#0000 0 0) ,
    linear-gradient(180deg, #a6a39d 0 14%, transparent 14% 30%, #a6a39d 30% 61%, transparent 61% 69%, #a6a39d 69% 100%);
}
.iphone::after { right: -1.1%; top: 25%; height: 13%; background: #a6a39d; }
.iphone-ekran {
  position: relative;
  margin: 4.6cqw;
  border-radius: 12.4cqw;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 3.2cqw #070707;
}
.iphone-ekran::before {   /* Dynamic Island */
  content: ""; position: absolute; z-index: 2;
  top: 2.9cqw; left: 50%;
  width: 30cqw; height: 8.6cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}
.iphone-ekran::after {   /* pasek „home” */
  content: ""; position: absolute; z-index: 2;
  bottom: 2.2cqw; left: 50%;
  width: 34cqw; height: 1.3cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgb(0 0 0 / .82);
}
.iphone-pasek {
  display: flex; align-items: center; justify-content: space-between;
  height: 14cqw; padding: 0 7.5cqw 0 10cqw;
  background: var(--pasek, #fff);
  color: #0b0b0b;
  font: 600 4.3cqw/1 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.01em;
}
.iphone-pasek span { margin-right: auto; }
.iphone-pasek i {
  width: 11.5cqw; height: 3.4cqw; margin-right: 1.8cqw;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 14'%3E%3Cg fill='%230b0b0b'%3E%3Crect x='0' y='9' width='3' height='5' rx='1'/%3E%3Crect x='5' y='6.5' width='3' height='7.5' rx='1'/%3E%3Crect x='10' y='3.5' width='3' height='10.5' rx='1'/%3E%3Crect x='15' y='0.5' width='3' height='13.5' rx='1'/%3E%3Cpath d='M33.5 2.2c3.3 0 6.3 1.2 8.6 3.3l1.6-1.7C41 1.3 37.4 0 33.5 0s-7.5 1.4-10.2 3.8l1.6 1.7c2.3-2.1 5.3-3.3 8.6-3.3zm0 4.6c2 0 3.9.7 5.3 2l1.6-1.7c-1.9-1.7-4.3-2.6-6.9-2.6s-5 1-6.9 2.6l1.6 1.7c1.4-1.3 3.3-2 5.3-2zm0 4.5c.8 0 1.6.3 2.1.8L33.5 14l-2.1-1.9c.5-.5 1.3-.8 2.1-.8z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.iphone-pasek b {
  position: relative;
  width: 7.4cqw; height: 3.6cqw;
  border-radius: 1.1cqw;
  box-shadow: inset 0 0 0 .35cqw rgb(11 11 11 / .45);
}
.iphone-pasek b::before { content: ""; position: absolute; inset: .75cqw 1.6cqw .75cqw .75cqw; border-radius: .5cqw; background: #0b0b0b; }
.iphone-pasek b::after { content: ""; position: absolute; right: -1cqw; top: 1.1cqw; width: .6cqw; height: 1.4cqw; border-radius: 0 1px 1px 0; background: rgb(11 11 11 / .45); }
.iphone-ekran img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .iphone { width: 28%; } .iphone.srodek { width: 31%; } .slajd.telefony { gap: 2.5%; } }
.slajd.render { padding: 3% 6%; }
.slajd.render > img { max-height: 100%; width: auto; }

/* strzałki (tylko mysz) */
.strzalka {
  position: absolute; top: 0; z-index: 2;
  width: 48px; height: 48px; margin-top: -24px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--karta) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--obrys), 0 10px 26px -10px rgb(0 0 0 / .3);
  cursor: pointer;
  opacity: 0;
  transition: opacity .4s ease, transform .5s var(--lagodnie);
}
.strzalka svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.strzalka.wstecz { left: 18px; transform: translateX(8px); }
.strzalka.dalej { right: 18px; transform: translateX(-8px); }
.galeria:hover .strzalka:not(:disabled) { opacity: 1; transform: none; }
.strzalka:hover { background: var(--karta); }
.strzalka:active { transform: scale(.94) !important; }
.strzalka:disabled { pointer-events: none; }
@media (hover: none), (max-width: 760px) { .strzalka { display: none; } }

.galeria-pasek {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px;
  min-height: 44px;
}
.podpis {
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  transition: opacity .35s ease, transform .5s var(--lagodnie);
}
.podpis.zmiana { opacity: 0; transform: translateY(6px); }
.miniatury { display: flex; gap: 8px; }
.miniatury button {
  width: 68px; height: 42px; padding: 0;
  border: 0; border-radius: 8px;
  background: var(--scena) center / cover no-repeat;
  cursor: pointer;
  opacity: .45;
  box-shadow: 0 0 0 1px var(--obrys);
  transition: opacity .4s ease, transform .5s var(--lagodnie), box-shadow .4s ease;
}
.miniatury button:hover { opacity: .8; transform: translateY(-2px); }
.miniatury button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 1.5px var(--tlo), 0 0 0 3px var(--tekst); }
@media (max-width: 560px) {
  .miniatury button { width: 7px; height: 7px; border-radius: 99px; background: var(--szary) !important; box-shadow: none !important; transition: width .5s var(--lagodnie), opacity .4s ease; }
  .miniatury button[aria-current="true"] { width: 22px; background: var(--tekst) !important; }
  .miniatury { gap: 6px; }
}

/* porównanie dzień / noc */
.slajd:has(> .porownanie) { padding: 0; }
.porownanie { position: relative; width: 100%; height: 100%; }
.porownanie img { width: 100%; height: 100%; object-fit: cover; }
.porownanie-noc { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.porownanie-uchwyt {
  position: absolute; top: 0; bottom: 0; left: var(--p);
  width: 1.5px; background: rgb(255 255 255 / .9);
  transform: translateX(-50%);
  pointer-events: none;
}
.porownanie-uchwyt::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgb(255 255 255 / .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161614' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgb(0 0 0 / .25);
}
.porownanie input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
}

/* ---------- SMARTBLEND ---------- */
.sb {
  border-radius: 24px;
  background: var(--scena);
  padding: clamp(18px, 3.4vw, 44px);
}
@media (prefers-color-scheme: dark) { .sb { background: var(--scena-c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .04); } }
.sb-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.sb-lewo { display: grid; gap: 12px; min-width: 0; }
.sb-opis {
  border-radius: 16px;
  background: var(--karta);
  padding: 16px 20px 18px;
  box-shadow: inset 0 0 0 1px var(--obrys), 0 14px 34px -22px rgb(0 0 0 / .3);
}
.sb-etykieta { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--szary); }
.sb-opis p { font-size: clamp(17px, 1.55vw, 20px); font-weight: 500; letter-spacing: -.012em; line-height: 1.4; min-height: 2.8em; }
.sb-kursor {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 2px;
  vertical-align: -.17em;
  background: currentColor;
  animation: mrugaj 1.05s steps(1) infinite;
}
@keyframes mrugaj { 50% { opacity: 0; } }

.sb-kod {
  border-radius: 16px;
  background: #141413;
  color: #e9e7e1;
  padding: 18px 22px 20px;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5);
  min-width: 0;
}
@media (prefers-color-scheme: dark) { .sb-kod { background: #10100f; box-shadow: inset 0 0 0 1px #2a2a28; } }
.sb-kod pre { margin: 0; overflow-x: auto; scrollbar-width: none; }
.sb-kod code {
  display: grid; align-content: start;
  min-height: calc(17 * 1.7em);
  font: 500 13.5px/1.7 var(--mono);
  font-variant-ligatures: none;
}
.sb-kod .w { white-space: pre; }
.sb-kod .plik { font: 500 12.5px/1.7 var(--sans); color: #8b8981; letter-spacing: .01em; }
.sb-kod .plik + .w { margin-top: 2px; }
.sb-kod .odstep { height: .9em; }
.sb-kod b { font-weight: 500; color: #9d9a91; }
.sb-kod s { text-decoration: none; color: #b9d7a6; }
.sb-kod u { text-decoration: none; color: #f2c58b; }
.sb-kod i { font-style: normal; color: #77756e; }
.sb-kod .w.nowa { animation: linia .7s var(--lagodnie) both; }
@keyframes linia { from { opacity: 0; transform: translateX(-8px); filter: blur(3px); } }

.sb-obrot {
  position: relative;
  aspect-ratio: 1;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.sb-obrot:active { cursor: grabbing; }
.sb-obrot::before {   /* miękki cień pod obiektem */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 10%; height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .2), transparent);
  filter: blur(6px);
}
@media (prefers-color-scheme: dark) { .sb-obrot::before { background: radial-gradient(closest-side, rgb(0 0 0 / .6), transparent); } }
.sb-obrot canvas, .sb-klatka {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.sb-klatka { transition: opacity .5s ease; }
.sb-obrot canvas { opacity: 0; transition: opacity .5s ease; }
.sb-obrot.gotowy canvas { opacity: 1; }
.sb-obrot.gotowy .sb-klatka { opacity: 0; }
.sb-obrot.zmiana canvas, .sb-obrot.zmiana .sb-klatka { opacity: 0; transition-duration: .25s; }
.sb-wskazowka {
  position: absolute; left: 50%; bottom: 0;
  display: flex; align-items: center; gap: 8px;
  transform: translateX(-50%);
  font-size: 13px; font-weight: 500; color: var(--szary);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .6s ease;
}
.sb-wskazowka span { width: 26px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; animation: wahaj 2.4s ease-in-out infinite; }
@keyframes wahaj { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.sb-obrot.ruszony .sb-wskazowka { opacity: 0; }

.sb-wybor {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin-top: clamp(20px, 3vw, 34px);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--obrys);
}
.sb-wybor button {
  display: grid; justify-items: center; gap: 6px;
  padding: 10px 4px 12px;
  border: 0; border-radius: 16px;
  background: transparent;
  color: var(--szary);
  font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background-color .4s ease, color .4s ease;
}
.sb-wybor img { width: 100%; max-width: 92px; aspect-ratio: 1; object-fit: contain; transition: transform .6s var(--lagodnie); }
.sb-wybor button:hover { color: var(--tekst); }
.sb-wybor button:hover img { transform: translateY(-4px) scale(1.04); }
.sb-wybor button[aria-selected="true"] {
  color: var(--tekst);
  background: color-mix(in srgb, var(--karta) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--obrys);
}

@media (max-width: 860px) {
  .sb-panel { grid-template-columns: 1fr; }
  .sb-obrot { max-width: 440px; width: 100%; justify-self: center; order: -1; }
  .sb-wybor { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .sb { padding: 14px; }
  .sb-kod { padding: 16px; }
  .sb-kod code { font-size: 12px; }
}


/* ---------- nagłówki sekcji, „O projekcie” ---------- */
.sekcja-glowa {
  max-width: var(--szer); margin: 0 auto;
  padding: clamp(110px, 18vh, 200px) var(--bok) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end;
}
.sekcja .sekcja-glowa { padding: 0; }
.sekcja-duza { grid-template-columns: 1fr; }
.sekcja-duza h2 { font-size: clamp(72px, 14vw, 200px); font-weight: 600; line-height: .86; letter-spacing: -.06em; }
.sekcja-glowa p { color: var(--szary); font-size: 18px; line-height: 1.5; max-width: 30em; }
@media (max-width: 760px) { .sekcja-glowa { grid-template-columns: 1fr; } }
.wiecej {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 22px; padding: 11px 16px 11px 18px;
  border-radius: 14px;
  font-size: 15px; font-weight: 550; letter-spacing: -.01em;
  background: var(--tekst); color: var(--tlo);
  transition: transform .5s var(--lagodnie), box-shadow .5s ease, background-color .4s ease;
}
.wiecej svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--lagodnie); }
.wiecej:hover { box-shadow: 0 14px 30px -14px rgb(0 0 0 / .5); }
.wiecej:hover svg { transform: translateX(4px); }
.wiecej:active { transform: scale(.97); }
.projekt h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .7s var(--lagodnie); }
.projekt h2 a:hover { background-size: 100% 3px; }

/* numer projektu nad nazwą */
#projekty { counter-reset: projekt; }
.projekt { counter-increment: projekt; }
.projekt-glowa h2 { position: relative; }
.projekt-glowa h2::before {
  content: counter(projekt, decimal-leading-zero);
  position: absolute; left: .08em; bottom: calc(100% + 14px);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; line-height: 1;
  color: rgb(var(--odcien));
  transition: opacity 1s .3s var(--lagodnie), transform 1.2s .3s var(--lagodnie);
}
.js .projekt-glowa h2:not(.widac)::before { opacity: 0; transform: translateY(10px); }

/* ---------- WORKSPACE: osobna sekcja nad projektami ---------- */
.ws { position: relative; padding: clamp(70px, 12vh, 140px) 0 0; }
.ws::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 10%, rgb(var(--odcien) / .14), transparent 70%);
}
.ws-sr { position: relative; max-width: var(--szer); margin: 0 auto; padding: 0 var(--bok); }
.ws-gora { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "znak znak" "tytul tytul" "lead premiera"; gap: 0 56px; align-items: end; }
.ws-glowa { display: contents; }
.ws-znak { grid-area: znak; }
.ws h2 { grid-area: tytul; }
.ws-lead { grid-area: lead; align-self: start; }
.ws-premiera { grid-area: premiera; margin-top: 22px; }
.ws-znak { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: rgb(var(--odcien)); }
.ws-znak span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: premiera 2.4s ease-in-out infinite; }
@keyframes premiera { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--odcien) / .45); } 60% { box-shadow: 0 0 0 9px rgb(var(--odcien) / 0); } }
.ws h2 { margin-top: 14px; font-size: clamp(34px, 12.6vw, 176px); font-weight: 600; line-height: .9; letter-spacing: -.055em; }
.ws h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 4px no-repeat; transition: background-size .7s var(--lagodnie); }
.ws h2 a:hover { background-size: 100% 4px; }
.ws-lead { margin-top: 22px; max-width: 32em; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; }
.ws-premiera {
  padding: 22px 22px 20px; border-radius: 24px;
  background: radial-gradient(90% 120% at 100% 0%, rgb(var(--odcien) / .16), transparent 70%), var(--karta);
  box-shadow: inset 0 0 0 1px rgb(var(--odcien) / .28), 0 30px 70px -44px rgb(var(--odcien) / .8);
}
.ws-premiera > p { margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--szary); }
.ws-premiera > p b { font-weight: 650; color: rgb(var(--odcien)); }
.licznik { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.licznik div { padding: 14px 4px 11px; border-radius: 14px; text-align: center; overflow: hidden; background: var(--tlo); box-shadow: inset 0 0 0 1px var(--obrys); }
.licznik b { display: block; font-size: clamp(30px, 3.5vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.licznik b.zmiana { animation: cyfra .55s var(--lagodnie); }
@keyframes cyfra { from { transform: translateY(-45%); opacity: 0; filter: blur(4px); } }
.licznik span { display: block; margin-top: 7px; font-size: 12px; color: var(--szary); }
.ws-tekst { margin-top: clamp(40px, 5vw, 60px); column-count: 2; column-gap: clamp(32px, 5vw, 64px); }
.ws-tekst p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--szary); break-inside: avoid; }
.ws-tekst p:first-child { color: var(--tekst); }
.ws-akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding-top: 4px; break-inside: avoid; }
.ws-akcje .wiecej, .ws-akcje .meta { margin: 0; }
@media (max-width: 860px) { .ws-gora { grid-template-columns: minmax(0, 1fr); grid-template-areas: "znak" "tytul" "lead" "premiera"; } .ws-tekst { column-count: 1; } }

/* przepływy kart: zawsze ciemna konsola */
.pp-ramka {
  --pp-t: #e8ece9; --pp-s: #7f8c88;
  margin: clamp(36px, 5vw, 60px) 0 clamp(16px, 2.2vw, 26px);
  border-radius: 24px; overflow: hidden; color: var(--pp-t);
  background: radial-gradient(60% 80% at 10% 0%, rgb(var(--odcien) / .18), transparent 70%), #0b100f;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), 0 40px 90px -50px rgb(0 0 0 / .8);
}
.pp-pasek { display: flex; align-items: center; gap: 10px; padding: 14px clamp(16px, 2.4vw, 28px); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid rgb(255 255 255 / .06); }
.pp-pasek small { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--pp-s); }
.pp-kropka { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--odcien)); animation: premiera 2s ease-in-out infinite; }
.przeplywy { display: grid; grid-template-columns: 200px minmax(0, 1fr); padding: 18px clamp(16px, 2.4vw, 28px) 4px; }
.pp-glowa { grid-column: 2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding-bottom: 6px; text-align: center; }
.pp-glowa b { display: block; font-size: 13.5px; font-weight: 600; }
.pp-glowa b em { display: none; font-style: normal; }
.pp-glowa b i { font-style: normal; }
.pp-chip:empty { display: none; }
.pp-glowa span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--pp-s); }
.pp-nazwa { align-self: center; padding-right: 16px; }
.pp-nazwa b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.pp-nazwa span { font-size: 12.5px; color: var(--pp-s); }
.pp-linia { position: relative; height: 66px; --c: var(--odcien); }
.pp-linia::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 50%; height: 2px; margin-top: -1px; background: rgb(255 255 255 / .08); }
.pp-postep { position: absolute; left: calc(100% / 14); top: 50%; width: 0; height: 2px; margin-top: -1px; border-radius: 2px; background: rgb(var(--c)); opacity: .85; }
.pp-wezel { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #0b100f; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .16); transition: background .4s ease, box-shadow .4s ease; }
.pp-wezel.byl { box-shadow: inset 0 0 0 2px rgb(var(--c)); }
.pp-wezel.tu { background: rgb(var(--c)); box-shadow: 0 0 0 5px rgb(var(--c) / .2); }
.pp-luk { position: absolute; left: calc(100% * 2.5 / 7); width: calc(100% / 7); top: 8px; height: 25px; border: 1.5px dashed rgb(255 255 255 / .16); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; transition: border-color .4s ease; }
.pp-luk.tu { border-color: #e0654c; }
.pp-zeton { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgb(var(--k, var(--c))); box-shadow: 0 0 16px 2px rgb(var(--k, var(--c)) / .6); transition: background-color .35s ease, box-shadow .35s ease, opacity .5s ease; }
.pp-zeton.blad, .pp-zeton.blok { --k: 224 101 76; }
.pp-zeton.uwaga { --k: 226 168 70; }
.pp-zeton.przejecie { --k: 132 150 255; }
.pp-zeton.blok { animation: potrzas .45s ease; }
.pp-zeton.znika { opacity: 0; }
@keyframes potrzas { 20%, 60% { translate: -4px 0; } 40%, 80% { translate: 4px 0; } }
.pp-chip {
  position: absolute; left: 7px; bottom: calc(100% + 9px);
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  font: 600 11px/1.1 var(--mono); letter-spacing: .04em; color: #0b100f; background: var(--pp-t);
  transition: background-color .35s ease, color .35s ease;
}
.pp-zeton.blad .pp-chip, .pp-zeton.blok .pp-chip, .pp-zeton.uwaga .pp-chip, .pp-zeton.przejecie .pp-chip { background: rgb(var(--k)); color: #0b100f; }
.pp-log {
  display: flex; flex-direction: column; justify-content: flex-end;
  height: calc(1.65em * 6 + 26px); margin: 10px clamp(16px, 2.4vw, 28px) 0; padding: 13px 15px; overflow: hidden;
  border-radius: 14px; background: rgb(0 0 0 / .32); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05);
  font: 12.5px/1.65 var(--mono); color: #b9c4c0;
}
.pp-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: wpis .5s var(--lagodnie) both; transition: opacity .6s ease; }
.pp-log div:nth-last-child(n + 4) { opacity: .5; }
.pp-log time { margin-right: 12px; color: #5d6b67; }
.pp-log b { font-weight: 500; color: rgb(var(--c)); }
@keyframes wpis { from { opacity: 0; transform: translateY(8px); } }
.pp-ramka figcaption { padding: 14px clamp(16px, 2.4vw, 28px) 18px; font-size: 13.5px; line-height: 1.5; color: var(--pp-s); }
@media (max-width: 760px) {
  .przeplywy { grid-template-columns: 1fr; }
  .pp-glowa { grid-column: 1; }
  .pp-glowa b i, .pp-glowa span { display: none; }
  .pp-glowa b em { display: inline; }
  .pp-nazwa { display: flex; align-items: baseline; gap: 8px; padding: 12px 0 0; }
  .pp-linia { height: 60px; }
  .pp-chip { font-size: 10px; padding: 3px 7px; }
  .pp-log { font-size: 11.5px; }
}

/* pomiary WORKSPACE */
.ws-pomiary { margin-top: clamp(28px, 4vw, 44px); }
.ws-pomiary h3 { font-size: 14px; font-weight: 600; color: var(--szary); }
.ws-pomiary ul { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ws-pomiary li { display: flex; flex-direction: column; padding: 20px 20px 18px; border-radius: 20px; background: var(--karta); box-shadow: inset 0 0 0 1px var(--obrys); }
.ws-pomiary b { font-size: clamp(36px, 3.6vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.05em; color: rgb(var(--odcien)); font-variant-numeric: tabular-nums; }
.ws-pomiary span { margin-top: 10px; font-size: 15px; font-weight: 550; line-height: 1.35; letter-spacing: -.01em; }
.ws-pomiary small { margin-top: auto; padding-top: 12px; font-size: 13px; line-height: 1.5; color: var(--szary); }
.ws-pomiary > p { margin-top: 14px; max-width: 62em; font-size: 13.5px; line-height: 1.55; color: var(--szary); }
@media (max-width: 960px) { .ws-pomiary ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ws-pomiary ul { grid-template-columns: 1fr; } .ws-pomiary li { padding: 16px 18px; } }
.p-pomiary b em { font-style: normal; color: rgb(var(--odcien, 62 150 140)); }

/* przepływy: dopiski */
.pp-zeton.lewo .pp-chip { left: auto; right: 7px; }
.pp-legenda { display: none; grid-column: 1 / -1; padding: 6px 0 2px; font-size: 11.5px; line-height: 1.5; color: var(--pp-s); }
@media (max-width: 760px) { .pp-legenda { display: block; } }
.pp-ramka { position: relative; isolation: isolate; }
.pp-ramka::before {   /* drobne ziarno, żeby konsola nie była płaska */
  content: ""; position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: ziarno 1.2s steps(4) infinite;
}
@keyframes ziarno { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
.pp-ramka::after {   /* linia skanu przesuwająca się po konsoli */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent, rgb(var(--odcien) / .06), transparent);
  animation: skan 7s linear infinite;
}
@keyframes skan { from { transform: translateY(-120px); } to { transform: translateY(900px); } }
@media (prefers-reduced-motion: reduce) { .pp-ramka::before, .pp-ramka::after { animation: none; } }

/* jednorazowa podpowiedź „Kliknij po szczegóły” */
.podpowiedz { position: absolute; z-index: 15; pointer-events: none; }
.pd-dymek {
  position: absolute; left: 50%; bottom: calc(100% + 14px);
  padding: 9px 14px; border-radius: 12px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: #fff; background: rgb(var(--odcien));
  box-shadow: 0 14px 34px -12px rgb(var(--odcien) / .8);
  animation: dymek 3.8s var(--lagodnie) both;
}
.pd-dymek::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px; border: 7px solid transparent; border-top-color: rgb(var(--odcien)); }
@keyframes dymek {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.9); }
  20%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -6px) scale(1); }
}
.pd-kursor { position: absolute; left: 72%; top: 58%; width: 24px; height: 24px; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .45)); animation: kursor 3.8s var(--lagodnie) both; }
.pd-kursor path { fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; }
@keyframes kursor {
  0% { opacity: 0; transform: translate(80px, 60px); }
  15% { opacity: 1; }
  34%, 38% { transform: translate(0, 0) scale(1); }
  42% { transform: translate(0, 0) scale(.8); }
  48% { transform: translate(0, 0) scale(1); }
  80% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(6px, 8px); }
}
.wiecej { position: relative; overflow: hidden; }
.wiecej.klik { animation: blysk 1.4s 1.4s ease-out; }
.wiecej.klik::after { content: ""; position: absolute; left: 72%; top: 58%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: currentColor; opacity: 0; animation: klik-fala .9s 1.55s ease-out; }
@keyframes klik-fala { from { opacity: .35; transform: scale(1); } to { opacity: 0; transform: scale(16); } }
@keyframes blysk { 0% { box-shadow: 0 0 0 0 rgb(var(--odcien) / .55); } 100% { box-shadow: 0 0 0 16px rgb(var(--odcien) / 0); } }

/* VIG: droga od SMARTBLEND */
.droga { list-style: none; margin: 0 0 clamp(16px, 2.2vw, 26px); padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.droga li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 30px 14px 0 0; }
.droga li::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: color-mix(in srgb, var(--tekst) 12%, transparent); }
.droga li.zrobione::before { background: rgb(var(--odcien)); }
.droga li.teraz::before { background: linear-gradient(90deg, rgb(var(--odcien)), color-mix(in srgb, var(--tekst) 12%, transparent) 70%); }
.droga i { position: absolute; left: 0; top: 2px; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--tlo); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tekst) 24%, transparent); }
.droga .zrobione i { background: rgb(var(--odcien)); box-shadow: none; }
.droga .teraz i { box-shadow: inset 0 0 0 2px rgb(var(--odcien)), 0 0 0 0 rgb(var(--odcien) / .3); animation: krok 2.2s ease-in-out infinite; }
@keyframes krok { 50% { box-shadow: inset 0 0 0 2px rgb(var(--odcien)), 0 0 0 8px rgb(var(--odcien) / 0); } }
.droga b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.droga span { font-size: 13.5px; line-height: 1.35; color: var(--szary); }
.droga small { margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--szary); }
.droga .zrobione small, .droga .teraz small { color: rgb(var(--odcien)); }
@media (max-width: 760px) {
  .droga { grid-template-columns: 1fr; gap: 16px; }
  .droga li { padding: 0 0 0 30px; }
  .droga li::before { left: 7px; right: auto; top: 18px; bottom: -18px; width: 2px; height: auto; }
  .droga li:last-child::before { display: none; }
}
.sb-znak { display: flex; align-items: center; gap: 10px; margin: 0 0 clamp(14px, 2vw, 22px); font-size: 14.5px; font-weight: 500; color: var(--szary); }
.sb-znak span { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: #fff; background: rgb(var(--odcien)); }

/* ---------- tło galerii: miękki gradient w kolorze projektu + ziarno ---------- */
.galeria, .sb { position: relative; isolation: isolate; }
.galeria::before, .sb::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  border-radius: 24px;
  background:
    radial-gradient(70% 90% at 12% 0%, rgb(var(--odcien) / .16), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgb(var(--odcien) / .12), transparent 70%),
    var(--scena);
}
.galeria::after, .sb::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  border-radius: 24px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: soft-light;
}
.galeria::before, .galeria::after { aspect-ratio: 16 / 10; }
.sb::before, .sb::after { bottom: 0; }
.galeria .scena { background: transparent; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .04); }
.sb { background: transparent; }
@media (prefers-color-scheme: dark) {
  .galeria::before, .sb::before {
    background:
      radial-gradient(70% 90% at 12% 0%, rgb(var(--odcien) / .24), transparent 70%),
      radial-gradient(60% 80% at 100% 100%, rgb(var(--odcien) / .15), transparent 70%),
      var(--scena-c);
  }
  .galeria .scena, .sb { background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05); }
}

/* ---------- SYMULACJA (WWORLD): zawsze ciemna, pełna szerokość ---------- */
.symulacja {
  --tlo-s: #0c0d10;
  --tekst: #ecebe6; --szary: #9c9a93; --obrys: rgb(236 235 230 / .12); --karta: #17181c;
  --scena: #15161a; --scena-c: #15161a; --odcien: 214 150 64;
  position: relative; overflow: hidden;
  margin: clamp(110px, 18vh, 200px) clamp(6px, 1.1vw, 16px) 0;
  padding: clamp(80px, 12vh, 140px) 0 clamp(90px, 14vh, 160px);
  border-radius: clamp(26px, 3.4vw, 48px);
  box-shadow: 0 -40px 120px -60px rgb(214 150 64 / .35), 0 60px 120px -70px rgb(0 0 0 / .6);
  background:
    radial-gradient(80% 60% at 85% 0%, rgb(214 150 64 / .16), transparent 70%),
    radial-gradient(60% 50% at 0% 40%, rgb(70 110 200 / .12), transparent 70%),
    var(--tlo-s);
  color: var(--tekst);
}
.symulacja::before {   /* siatka jak plan miasta */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 20%, #000, transparent);
  mask-image: radial-gradient(80% 60% at 50% 20%, #000, transparent);
}
.symulacja-tlo {
  position: absolute; left: 0; top: 0; width: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.symulacja::after {   /* ciepła łuna nad miastem, powoli oddycha */
  content: ""; position: absolute; left: 50%; top: -30%; width: 120%; height: 70%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgb(214 150 64 / .12), transparent);
  animation: luna 12s ease-in-out infinite alternate;
}
@keyframes luna { from { opacity: .6; scale: .95; } to { opacity: 1; scale: 1.05; } }
@media (prefers-reduced-motion: reduce) { .symulacja::after { animation: none; } }
.symulacja ::selection { background: #ecebe6; color: #0c0d10; }
.symulacja-w { position: relative; max-width: var(--szer); margin: 0 auto; padding: 0 var(--bok); }
.symulacja-glowa { max-width: 780px; margin-bottom: clamp(36px, 6vw, 64px); }
.symulacja-znak {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 550; color: #e6b46e; letter-spacing: .01em;
}
.symulacja-znak::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e6b46e; box-shadow: 0 0 0 4px rgb(230 180 110 / .18); animation: puls 2.4s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 9px rgb(230 180 110 / 0); } }
.symulacja h2 { margin-top: 14px; font-size: clamp(56px, 11vw, 150px); font-weight: 600; line-height: .9; letter-spacing: -.055em; }
.symulacja-lead { margin-top: 22px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: #c9c7c0; max-width: 34em; }
.symulacja .wiecej { background: #ecebe6; color: #0c0d10; }
.ww-pod { margin: clamp(56px, 8vw, 90px) 0 20px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.03em; }
.symulacja .miniatury button[aria-current="true"] { box-shadow: 0 0 0 1.5px var(--tlo-s), 0 0 0 3px #ecebe6; }
.ww-liczby { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: clamp(28px, 4vw, 40px); padding: 0; list-style: none; }
.ww-liczby b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ww-liczby span { display: block; margin-top: 6px; font-size: 14px; color: var(--szary); max-width: 13em; }
.ww-liczby { margin: 0 0 clamp(40px, 6vw, 64px); }
.ww-liczby li { padding-left: 18px; border-left: 1px solid rgb(230 180 110 / .35); }

/* mozaika scen z żywego świata */
.ww-sceny { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.ww-s {
  position: relative; grid-column: span 4; margin: 0; overflow: hidden; cursor: zoom-in;
  border-radius: 14px; background: #15161a; aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 30px 60px -30px rgb(0 0 0 / .8);
  transition: transform .6s var(--lagodnie), box-shadow .6s var(--lagodnie);
}
.ww-s.duza { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.ww-s.pol { grid-column: span 6; }
.ww-s.cw { grid-column: span 3; }
.ww-s img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--lagodnie), filter .6s var(--lagodnie); }
.ww-s figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  font-size: 14px; line-height: 1.4; color: #f1efe9;
  background: linear-gradient(transparent, rgb(8 9 12 / .82));
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--lagodnie), transform .45s var(--lagodnie);
}
.ww-s.duza figcaption { font-size: 16px; padding: 60px 24px 20px; opacity: 1; transform: none; }
.ww-s:hover, .ww-s:focus-visible { box-shadow: 0 0 0 1px rgb(230 180 110 / .5), 0 40px 80px -30px rgb(0 0 0 / .9); outline: none; }
.ww-s:hover img, .ww-s:focus-visible img { transform: scale(1.035); }
.ww-s:hover figcaption, .ww-s:focus-visible figcaption { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .ww-sceny { grid-template-columns: repeat(2, 1fr); }
  .ww-s, .ww-s.pol, .ww-s.trz { grid-column: span 2; }
  .ww-s.cw { grid-column: span 1; }
  .ww-s, .ww-s.duza { grid-row: auto; aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; }
  .ww-s.duza { grid-column: span 2; }
  .ww-s img { position: static; display: block; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); }
  .ww-s figcaption, .ww-s.duza figcaption { position: static; padding: 10px 2px 6px; background: none; opacity: 1; transform: none; font-size: 13px; color: var(--szary); }
  .ww-s.cw figcaption { display: none; }
}

/* podgląd pełnoekranowy */
.lupa {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: clamp(16px, 4vw, 48px); background: rgb(6 7 9 / .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .35s var(--lagodnie);
}
.lupa[hidden] { display: none; }
.lupa.otwarta { opacity: 1; }
.lupa img {
  max-width: 100%; max-height: calc(100vh - 140px); border-radius: 12px; box-shadow: 0 40px 120px -20px #000;
  transform: scale(.96); transition: transform .5s var(--lagodnie), opacity .25s;
}
.lupa.otwarta img { transform: none; }
.lupa p { margin-top: 18px; max-width: 60em; color: #dedcd5; font-size: 15px; text-align: center; }
.lupa button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; transition: background .2s;
}
.lupa button:hover { background: rgb(255 255 255 / .2); }
.lupa button[hidden] { display: none; }
.lupa button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lupa .lupa-x { top: 18px; right: 18px; }
.lupa .lupa-l { left: 18px; top: 50%; translate: 0 -50%; }
.lupa .lupa-p { right: 18px; top: 50%; translate: 0 -50%; }
@media (max-width: 760px) { .lupa .lupa-l, .lupa .lupa-p { top: auto; bottom: 18px; translate: none; } }

/* ---------- karty eksperymentów ---------- */
.karty {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 18px; margin-top: 48px;
}
.karta {
  position: relative; display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background: var(--karta);
  box-shadow: inset 0 0 0 1px var(--obrys);
  color: inherit;
  transition: transform .7s var(--lagodnie), box-shadow .6s ease;
}
.karta:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--obrys), 0 30px 60px -34px rgb(0 0 0 / .45); }
/* światło pod kursorem (karty eksperymentów i sceny WWORLD) */
.karty, .ww-sceny { perspective: 1400px; }
.karta::after, .ww-s::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .17), transparent 46%);
  opacity: 0; transition: opacity .45s ease;
}
.karta:hover::after, .ww-s:hover::after { opacity: 1; }
.iphone, .slajd.ekran img, .slajd.render > img { cursor: zoom-in; }
.karta-obraz {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background:
    radial-gradient(90% 90% at 20% 0%, rgb(var(--k) / .3), transparent 70%),
    radial-gradient(80% 80% at 100% 100%, rgb(var(--k) / .22), transparent 70%),
    color-mix(in srgb, var(--tekst) 5%, var(--karta));
}
.karta-obraz img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--lagodnie); }
.karta:hover .karta-obraz img { transform: scale(1.04); }
.karta-obraz .monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(54px, 7vw, 84px); font-weight: 650; letter-spacing: -.06em;
  color: rgb(var(--k) / .6);
}
.karta-tekst { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.karta h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.karta p { color: var(--szary); font-size: 15.5px; line-height: 1.45; }
.karta .meta { margin-top: auto; padding-top: 8px; }
.karta .meta li { font-size: 13px; padding: 5px 10px; }
.karta-strzalka {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--karta) 70%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--obrys);
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .4s ease, transform .6s var(--lagodnie);
}
.karta-strzalka svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.karta:hover .karta-strzalka, .karta:focus-visible .karta-strzalka { opacity: 1; transform: none; }

/* ---------- panel szczegółów projektu ---------- */
.panel { position: fixed; inset: 0; z-index: 30; }
.panel[hidden] { display: none; }
.panel-tlo {
  position: absolute; inset: 0;
  background: rgb(10 10 9 / .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .6s ease;
}
.panel-karta {
  position: absolute; top: 10px; right: 10px; bottom: 10px;
  width: min(880px, calc(100% - 20px));
  border-radius: 24px;
  background: var(--tlo);
  box-shadow: 0 0 0 1px var(--obrys), 0 40px 120px -30px rgb(0 0 0 / .6);
  overflow: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
  transform: translateX(calc(100% + 40px));
  transition: transform .85s var(--lagodnie);
  outline: none;
}
.panel.otwarty .panel-tlo { opacity: 1; }
.panel.otwarty .panel-karta { transform: none; }
@media (max-width: 760px) {
  .panel-karta { top: 8px; left: 8px; right: 8px; bottom: 0; width: auto; border-radius: 22px 22px 0 0; transform: translateY(105%); }
}
.panel-zamknij {
  position: sticky; top: 14px; float: right; z-index: 3;
  margin: 14px 14px 0 0;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--karta) 75%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--obrys);
  cursor: pointer;
  transition: transform .5s var(--lagodnie);
}
.panel-zamknij:hover { transform: rotate(90deg); }
.panel-zamknij svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.panel-tresc { padding: clamp(28px, 5vw, 56px); padding-top: clamp(30px, 4vw, 48px); }
.panel-tresc > * { animation: wejscie .9s var(--lagodnie) both; }
.panel-tresc > :nth-child(2) { animation-delay: .06s; } .panel-tresc > :nth-child(3) { animation-delay: .12s; }
.panel-tresc > :nth-child(4) { animation-delay: .18s; } .panel-tresc > :nth-child(n+5) { animation-delay: .24s; }
.panel h2 { margin-top: 18px; font-size: clamp(44px, 7vw, 76px); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.p-zdanie { margin-top: 18px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -.015em; max-width: 30em; }
.p-media {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px;
  margin: 32px calc(-1 * clamp(28px, 5vw, 56px)) 0; padding: 0 clamp(28px, 5vw, 56px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 clamp(28px, 5vw, 56px); scrollbar-width: none;
}
.p-media::-webkit-scrollbar { display: none; }
.p-media figure { margin: 0; scroll-snap-align: start; }
.p-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--obrys); background: var(--karta); }
.p-media figcaption { margin-top: 8px; font-size: 14px; color: var(--szary); }
.p-sekcja { margin-top: clamp(40px, 6vw, 60px); }
.p-sekcja h3 { font-size: 14px; font-weight: 600; color: var(--szary); letter-spacing: .01em; margin-bottom: 14px; }
.p-sekcja p, .p-sekcja li { font-size: 17.5px; line-height: 1.62; max-width: 38em; }
.p-sekcja p + p { margin-top: 12px; }
.p-sekcja ol, .p-sekcja ul { margin: 0; padding-left: 1.2em; }
.p-sekcja li + li { margin-top: 8px; }
.p-problemy { display: grid; gap: 12px; padding: 0 !important; list-style: none; counter-reset: pr; }
.p-problemy li {
  counter-increment: pr;
  position: relative; padding: 20px 22px 20px 64px;
  border-radius: 18px; background: var(--karta); box-shadow: inset 0 0 0 1px var(--obrys);
  max-width: none !important; margin: 0 !important;
}
.p-problemy li::before {
  content: counter(pr, decimal-leading-zero);
  position: absolute; left: 22px; top: 22px;
  font-size: 14px; font-weight: 600; color: var(--akcent, var(--szary));
  font-variant-numeric: tabular-nums;
}
.p-problemy b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 4px; }
.p-problemy span { display: block; color: color-mix(in srgb, var(--tekst) 80%, var(--szary)); font-size: 16.5px; line-height: 1.55; }
.p-fakty { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 0 !important; list-style: none; }
.p-fakty li { padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--obrys); font-size: 15.5px !important; line-height: 1.45 !important; margin: 0 !important; }
.p-tech { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; list-style: none; }
.p-tech li { margin: 0 !important; padding: 7px 12px; border-radius: 10px; background: color-mix(in srgb, var(--tekst) 6%, transparent); font-size: 14px !important; line-height: 1.2 !important; }
.p-nawigacja { display: flex; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 7vw, 72px); padding-top: 24px; border-top: 1px solid var(--obrys); }
.p-nawigacja a { display: grid; gap: 4px; font-size: 22px; font-weight: 600; letter-spacing: -.03em; transition: color .3s ease; }
.p-nawigacja a small { font-size: 13px; font-weight: 500; color: var(--szary); letter-spacing: 0; }
.p-nawigacja a:last-child { text-align: right; }
.p-nawigacja a:hover { color: var(--akcent, var(--tekst)); }

/* ---------- narzędzia, kontakt ---------- */
.sekcja {
  max-width: var(--szer);
  margin: 0 auto;
  padding: clamp(120px, 20vh, 220px) var(--bok) 0;
}
.sekcja-opis { margin-top: 16px; color: var(--szary); font-size: 18px; }
.narzedzia { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--linia); }
.narzedzia li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 6px 32px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--linia);
}
.narzedzia li::before {   /* tło podświetlenia wjeżdża od lewej */
  content: ""; position: absolute; inset: -1px -18px;
  border-radius: 14px;
  background: var(--karta);
  box-shadow: inset 0 0 0 1px var(--obrys);
  opacity: 0; transform: scaleX(.97);
  transition: opacity .45s ease, transform .6s var(--lagodnie);
  z-index: -1;
}
.narzedzia li:hover::before { opacity: 1; transform: none; }
.narzedzia h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.narzedzia p { color: var(--szary); }
.znaczek {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1;
  color: var(--szary);
  box-shadow: inset 0 0 0 1px var(--obrys);
}
@media (max-width: 760px) {
  .narzedzia li { grid-template-columns: 1fr auto; }
  .narzedzia p { grid-column: 1 / -1; grid-row: 2; }
  .narzedzia li::before { inset: -1px -10px; }
}

.kontakt { padding-bottom: clamp(120px, 20vh, 220px); }
.mail {
  display: inline-flex; align-items: center; gap: .25em;
  margin-top: 28px;
  font-size: clamp(30px, 5.4vw, 72px);
  font-weight: 600; letter-spacing: -.045em; line-height: 1.1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 6px;
  transition: background-size .7s var(--lagodnie);
}
.mail svg {
  width: .62em; height: .62em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--lagodnie);
}
.mail:hover { background-size: 100% 2px; }
.mail:hover svg { transform: translate(.08em, -.08em); }

.stopka {
  max-width: var(--szer); margin: 0 auto;
  padding: 28px var(--bok) 40px;
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--linia);
  font-size: 14px; color: var(--szary);
}
.stopka a { transition: color .3s ease; }
.stopka a:hover { color: var(--tekst); }

/* ---------- pojawianie przy przewijaniu (tylko z JS) ---------- */
.js [data-pokaz] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1.2s var(--lagodnie), transform 1.4s var(--lagodnie);
}
.js [data-pokaz].widac { opacity: 1; transform: none; }
.js h2[data-pokaz] { opacity: 1; transform: none; }
.js h2[data-pokaz] .maska > span { transform: translateY(108%) rotate(2deg); transition: transform 1.5s var(--lagodnie); }
.js h2[data-pokaz].widac .maska > span { transform: none; }
.js .galeria[data-pokaz], .js .sb[data-pokaz] { transform: translateY(56px) scale(.985); transition-duration: 1.4s, 1.8s; }
.js .galeria[data-pokaz] .scena { clip-path: inset(3% 2.5% round 32px); transition: clip-path 1.8s var(--lagodnie); }
.js .galeria[data-pokaz].widac { transform: none; }
.js .ww-s[data-pokaz] { transform: translateY(40px) scale(.97); transition: opacity 1.2s var(--lagodnie), transform 1.5s var(--lagodnie), box-shadow .6s var(--lagodnie); }
.js .ww-s[data-pokaz].widac { transform: none; }
.js .karta[data-pokaz], .js .ww-s[data-pokaz] { transition: opacity 1.2s var(--lagodnie), transform 1.5s var(--lagodnie), box-shadow .6s var(--lagodnie), rotate .55s cubic-bezier(.2, .7, .3, 1); }
.js .karta[data-pokaz].widac:hover { transform: translateY(-5px); }
.js .droga li[data-pokaz] { transform: translateY(16px); }
.js .droga li[data-pokaz].widac { transform: none; }
.js .pp-ramka[data-pokaz], .js .ws-premiera[data-pokaz] { transform: translateY(40px) scale(.985); }
.js .pp-ramka[data-pokaz].widac, .js .ws-premiera[data-pokaz].widac { transform: none; }
.js .galeria[data-pokaz].widac .scena { clip-path: inset(0 round 24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .start *, .sb-kod .w.nowa, .sb-kursor, .sb-wskazowka span { animation: none !important; }
  .js [data-pokaz], .js h2[data-pokaz] .maska > span, .js .galeria[data-pokaz] .scena { opacity: 1; transform: none; clip-path: none; transition: none; }
}
