/* Warsztat - laser-cut plywood models on a birch bench.
   Colors come from materials: birch, stained ply, burnt edges, graphite. */
:root {
  --blat: #e2cca1;
  --grafit: #2c2722;                       /* pencil text */
  --grafit-cichy: #574632;
  --wypalenie: #3e210b;                    /* pyrography */
  --wypalenie-poswiata: rgba(110, 52, 10, .28);
  --krawedz: #5b3317;                      /* laser-burnt edge */
  --listwa: #ead6ad;
  --swiatlo-klik: rgba(150, 52, 18, .85);   /* pointer light over clickable things */
  --winieta: rgba(80, 50, 15, .22);
  --focus: #0b4f9c;
  --lx: 0; --ly: 0;                        /* light direction, set by JS */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blat: #4f3b29;
    --grafit: #f1e5cf;
    --grafit-cichy: #d3c0a0;
    --wypalenie: #f4d29a;
    --wypalenie-poswiata: rgba(255, 170, 70, .25);
    --listwa: #6a5038;
    --swiatlo-kolor: rgba(255, 214, 140, .8);
    --swiatlo-klik: rgba(255, 140, 60, .9);
    --winieta: rgba(0, 0, 0, .55);
    --focus: #ffd27a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blat: #4f3b29; --grafit: #f1e5cf; --grafit-cichy: #d3c0a0;
  --wypalenie: #f4d29a; --wypalenie-poswiata: rgba(255, 170, 70, .25); --listwa: #6a5038;
  --swiatlo-kolor: rgba(255, 214, 140, .8); --swiatlo-klik: rgba(255, 140, 60, .9); --winieta: rgba(0, 0, 0, .55); --focus: #ffd27a; color-scheme: dark;
}

/* Local fonts (SIL OFL, licenses in czcionki/), subset to Latin + Polish */
@font-face { font-family: "Alegreya"; src: url("czcionki/alegreya-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("czcionki/atkinson-hyperlegible-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("czcionki/atkinson-hyperlegible-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("czcionki/atkinson-hyperlegible-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 96px; }

body {
  margin: 0; min-height: 100vh;
  font: 17px/1.55 "Atkinson Hyperlegible", system-ui, sans-serif;
  color: var(--grafit);
  background-color: var(--blat);
}
/* grain + vignette on one fixed layer: no tile seams, cheap to scroll */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, var(--winieta)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' preserveAspectRatio='none'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0011 0.022' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.27  0 0 0 0 0.1  0 0 0 0.75 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: auto, cover;
}
.defs { position: absolute; }

/* small light following the pointer with a slight lag (the native cursor stays), with a soft
   shadow around it; over anything clickable it slowly warms to burnt wood and fades to .7.
   Moved only with transform. */
.swiatlo {
  position: fixed; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  z-index: 50; pointer-events: none; border-radius: 50%;
  background: var(--swiatlo-kolor);
  /* halo in the dot's own colour (follows the colour change on hover) */
  box-shadow: 0 0 12px 6px color-mix(in srgb, var(--swiatlo-kolor) 45%, transparent);
  opacity: 0; transform: translate3d(-100px, -100px, 0);
  transition: opacity .45s ease, --swiatlo-kolor .45s ease;
  will-change: transform;
}
.swiatlo.jest { opacity: 1; }
.swiatlo.jest.nad-klikalnym { opacity: .7; }
.swiatlo.nad-klikalnym { --swiatlo-kolor: var(--swiatlo-klik); }
@property --swiatlo-kolor { syntax: "<color>"; inherits: true; initial-value: rgba(224, 160, 70, .75); }
@media (hover: none) { .swiatlo { display: none; } }

/* Lenis (smooth scroll): keep the scrollbar's place when scrolling is stopped (no page jump
   under the demo window), and keep demo iframes clickable - lenis.css disables them by default */
html { scrollbar-gutter: stable; }
html.lenis.lenis-stopped:not(.lenis-autoToggle) { overflow: hidden; }
.lenis.lenis-smooth .okno iframe { pointer-events: auto; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 3px; }
.tylko-czytnik { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pyrography: letters burned into the wood ---------- */
.wypalone {
  font-family: "Alegreya", Georgia, serif; font-weight: 700; color: var(--wypalenie);
  text-shadow: 0 0 1px var(--wypalenie-poswiata), 0 0 7px var(--wypalenie-poswiata);
}

/* ---------- Pencil link: a graphite stroke drawn under the word ---------- */
.olowek {
  position: relative; display: inline-block; padding: 4px 0; min-height: 32px;
  font: 700 16px/1.5 "Atkinson Hyperlegible", sans-serif; color: var(--grafit);
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.olowek::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 1px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.6 C40 2.2 80 4.4 120 3 S180 2.4 199 3.4' stroke='%232c2722' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat;
  /* drawn in from the left, and on leaving it runs on out to the right (origin swaps) */
  transform: scaleX(0); transform-origin: right center;
  transition: transform .55s cubic-bezier(.3, .7, .2, 1);
}
:root[data-theme="dark"] .olowek::after { filter: invert(1) sepia(.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .olowek::after { filter: invert(1) sepia(.4); } }
.olowek:hover::after, .olowek:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
/* resting state: a faint line, so links are recognisable without hover */
.olowek::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: currentColor; opacity: .35; transition: opacity .4s;
}
.olowek:hover::before, .olowek:focus-visible::before { opacity: 0; }

/* ---------- Top strip ---------- */
.listwa {
  position: sticky; top: 0; z-index: 20;
  background: var(--listwa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='120' preserveAspectRatio='none'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.09' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.27  0 0 0 0 0.1  0 0 0 0.8 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: cover;
  box-shadow: 0 6px 14px rgba(50, 30, 8, .22);
}
.listwa::after { /* plywood cross-section along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px;
  background: repeating-linear-gradient(180deg, #edd6a8 0 1.5px, #a77a45 1.5px 2.5px);
}
.listwa__srodek {
  width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 12px 0;
  display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap;
}
.listwa__kto { flex: 1; min-width: 0; }
.listwa__imie { margin: 0; font-size: 27px; line-height: 1.1; }
.listwa__zdanie { margin: 3px 0 0; font-size: 15.5px; }
/* the contact row keeps room for the full address from the start (width measured by JS),
   so revealing the e-mail never pushes or re-wraps anything else */
.listwa__kontakt { display: flex; gap: 22px; justify-content: flex-end; min-width: var(--kontakt-min, 0px); }

/* e-mail: the word slides away and the address grows into its place */
.mail { overflow: hidden; white-space: nowrap; text-align: left; vertical-align: bottom; }
.mail__slowo, .mail__adres { display: inline-block; }
.mail__adres { position: absolute; left: 0; top: 4px; opacity: 0; transform: translate3d(0, 6px, 0); }

/* ---------- Bench ---------- */
.pod-listwa { position: relative; }
.wiory {
  position: absolute; left: 0; top: 0; width: 100%; height: 520px; z-index: 0; pointer-events: none;
  /* shavings swept to the bottom or the sides fade into the bench instead of being cut off
     by the canvas edge (two masks, intersected) */
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 140px), transparent),
                      linear-gradient(to right, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 140px), transparent),
              linear-gradient(to right, transparent, #000 90px, #000 calc(100% - 90px), transparent);
  mask-composite: intersect;
}
.blat { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 120px 0 0; }

/* scroll parallax: upper plies travel a little more than lower ones; JS sets `translate`
   directly on these elements, each on its own GPU layer, so scrolling never repaints them */
.model .warstwa, .model .ramka { will-change: transform, translate; }

.warsztat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 96px 96px;
}
/* room for the shifted right column, only when a shifted model is the last one on the bench */
.warsztat:has(> .model:nth-child(odd):last-child) { padding-bottom: 130px; }
/* right column sits lower: the bench is not a spreadsheet */
.warsztat > .model:nth-child(odd) { translate: 0 130px; }

.o-mnie { grid-column: 1 / -1; max-width: 40em; }
.o-mnie h2 { font-size: 34px; margin: 0 0 12px; line-height: 1.1; }
.o-mnie p { margin: 0 0 14px; }

.model h2 { font-size: 30px; line-height: 1.15; margin: 22px 0 8px; }
.model p { margin: 0 0 10px; max-width: 36em; }
.drobne { font-size: 15px; color: var(--grafit-cichy); }
.w-budowie { font: italic 400 17px/1 "Atkinson Hyperlegible", sans-serif; color: var(--grafit-cichy); text-shadow: none; margin-left: 8px; }

/* ---------- Scene: a framed screenshot with a plywood model lying on it ---------- */
.scena {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10;
  padding: 0; border: 0; background: none; cursor: pointer; color: inherit; text-align: left;
}
.scena--budowa { cursor: default; aspect-ratio: 16 / 8; }

.ramka { /* screenshot in a plywood frame with a burnt inner edge */
  position: absolute; right: 0; bottom: 0; width: 68%; padding: 9px;
  background: #e7d0a2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='60'%3E%3Cpath d='M0 14 C120 9 260 20 400 12 M0 40 C130 45 260 34 400 41' stroke='%23c9a46e' stroke-width='1.2' fill='none' opacity='.6'/%3E%3C/svg%3E");
  border-radius: 2px;
  box-shadow: 0 2px 0 #9a6d3b, 4px 10px 16px rgba(45, 28, 6, .28);
  transform: translate3d(0, 0, 0);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), box-shadow .9s;
}
.ramka img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 2px var(--krawedz); filter: saturate(.92); transition: filter .9s; }
.ramka--pion { width: 30%; right: 14%; bottom: auto; top: -4%; }

.rzecz { /* the plywood model; layers share one viewBox */
  position: absolute; left: 0; top: 2%; width: 50%; aspect-ratio: 250 / 200;
}
.model--tapedo .rzecz { left: 2%; width: 48%; }
.model--budowa .rzecz { left: 14%; width: 62%; top: 0; }

.warstwa, .cien { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.warstwa {
  /* hard shadow = visible ply thickness, soft one = contact */
  filter: drop-shadow(0 2px 0 #8d5f2e) drop-shadow(0 3px 3px rgba(40, 22, 5, .25));
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s;
}
.cien {
  fill: #2a1806; opacity: .32; filter: blur(7px);
  transform: translate3d(8px, 11px, 0);   /* JS moves it away from the pointer light */
  will-change: transform;
  transition: opacity .8s, scale .8s cubic-bezier(.2, .8, .2, 1);
}
.kaw { stroke: var(--krawedz); stroke-width: 2.4; stroke-linejoin: round; }
.graw { fill: none; stroke: #7b4a20; stroke-width: 1.6; opacity: .75; stroke-linecap: round; }
.grawer-tekst { font: 700 17px "Alegreya", serif; fill: #6c3e17; letter-spacing: 2px; }
.licznik { font-size: 18px; letter-spacing: 1px; }

/* ---------- Hover: layers part like an exploded drawing; each model has its own small gesture ---------- */
.scena:hover .w2, .scena:focus-visible .w2 { transform: translate3d(0, -4px, 0); }
.scena:hover .w3, .scena:focus-visible .w3 { transform: translate3d(0, -9px, 0); }
.scena:hover .cien, .scena:focus-visible .cien { opacity: .2; scale: 1.05; }
.scena:hover .ramka, .scena:focus-visible .ramka { transform: translate3d(10px, 6px, 0); box-shadow: 0 2px 0 #9a6d3b, 8px 16px 22px rgba(45, 28, 6, .22); }
.scena:hover .ramka img, .scena:focus-visible .ramka img { filter: saturate(1.05); }

/* folder: the ads slide out */
.model--oferty .scena:hover .kartki, .model--oferty .scena:focus-visible .kartki { transform: translate3d(0, -26px, 0); }
/* dictaphone: the record key goes down instead of up */
.klawisz { transform-origin: 48.4% 70%; }
.model--tapedo .scena:hover .klawisz, .model--tapedo .scena:focus-visible .klawisz { transform: translate3d(0, 1px, 0) scale(.93); }
/* piggy bank: the coin travels into the slot */
.moneta { transform-origin: 12% 88%; }
.model--mikro .scena:hover .moneta, .model--mikro .scena:focus-visible .moneta {
  transform: translate3d(36%, -38%, 0) scale(.55); opacity: 0;
  transition-duration: 1.1s, .45s; transition-delay: 0s, .65s;
}
/* toy car: pulled back, then rolls forward */
.model--gra .warstwa.podwozie { transition: transform 1.1s cubic-bezier(.34, 1.4, .5, 1) 0s, opacity .7s ease var(--d, 0s), top .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.model--gra .scena:hover .w1, .model--gra .scena:focus-visible .w1 { transform: translate3d(16px, 0, 0); }
.model--gra .scena:hover .w2, .model--gra .scena:focus-visible .w2 { transform: translate3d(16px, -4px, 0); }
.model--gra .scena:hover .w3, .model--gra .scena:focus-visible .w3 { transform: translate3d(16px, -9px, 0); }
/* unglued abacus: pieces try to come together */
.model--budowa .listwa-g, .model--budowa .listwa-d, .model--budowa .listwa-l, .model--budowa .listwa-p, .model--budowa .luzem { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.model--budowa:hover .listwa-g { transform: translate(0, 6px); }
.model--budowa:hover .listwa-d { transform: translate(-4px, -6px); }
.model--budowa:hover .listwa-l { transform: translate(6px, 0); }
.model--budowa:hover .listwa-p { transform: translate(-6px, 2px); }
.model--budowa:hover .luzem { transform: translate(-8px, -6px); }

/* ---------- Arrival: the intro is laid down on load ---------- */
.wejscie { animation: poloz 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 120ms; }
@keyframes poloz { from { opacity: 0; transform: translate3d(0, -10px, 0) scale(1.015); } }
.model.wejscie { animation: none; }

/* ---------- On scroll: each model is glued together as it reaches the viewport ----------
   plies drop onto each other one by one, then the frame and the text appear.
   Uses top / opacity / scale so it never fights hover (transform) or parallax (translate).
   .na-blacie is added by JS (IntersectionObserver); without JS (.js missing) all is visible. */
.model .warstwa { transition: transform .8s cubic-bezier(.2, .8, .2, 1) 0s, opacity .7s ease var(--d, 0s), top .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.model .w2 { --d: .14s; }
.model .w3 { --d: .28s; }
.model .cien { transition: opacity .9s ease .3s, scale .8s cubic-bezier(.2, .8, .2, 1); }
.model .ramka { transition: transform .9s cubic-bezier(.2, .8, .2, 1), box-shadow .9s, opacity .8s ease .2s, scale .9s cubic-bezier(.2, .8, .2, 1) .2s; }
.model > h2, .model > p, .model > a { transition: opacity .8s ease .38s, transform .8s cubic-bezier(.2, .8, .2, 1) .38s; }
.js .model:not(.na-blacie) .w1 { opacity: 0; }
.js .model:not(.na-blacie) .w2 { opacity: 0; top: -22px; }
.js .model:not(.na-blacie) .w3 { opacity: 0; top: -44px; }
.js .model:not(.na-blacie) .cien { opacity: 0; }
.js .model:not(.na-blacie) .ramka { opacity: 0; scale: .96; }
.js .model:not(.na-blacie) > h2, .js .model:not(.na-blacie) > p, .js .model:not(.na-blacie) > a { opacity: 0; transform: translate3d(0, 14px, 0); }

/* footer: centred line with the same space above and below the text */
.stopka { position: relative; margin: 72px 0 0; padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--grafit) 22%, transparent); font-size: 14px; color: var(--grafit-cichy); text-align: center; }
.stopka p { margin: 0; }
.stopka__autor { color: var(--grafit); }
/* TEMPORARY preview note: sits above the line, out of the flow - delete it together with the HTML */
.stopka__tymczasowe { position: absolute; right: 0; bottom: 100%; margin-bottom: 10px; }

/* ---------- Demo window: plywood board with a cut-out ---------- */
.okno {
  width: min(1200px, calc(100vw - 48px)); height: min(840px, calc(100dvh - 48px));
  max-width: none; max-height: none; padding: 0 14px 14px; border: 0; border-radius: 3px;
  background: #e2c899 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120' preserveAspectRatio='none'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.003 0.1' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.27  0 0 0 0 0.1  0 0 0 0.8 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") center / cover;
  color: #2c2722;
  box-shadow: 0 3px 0 #9a6d3b, 0 30px 70px rgba(20, 10, 0, .5);
  display: none; flex-direction: column; overflow: hidden;
}
.okno[open] { display: flex; }
.okno:focus { outline: none; }   /* the window itself only holds focus after a mouse click */
.okno::backdrop { background: rgba(30, 18, 6, .5); opacity: 0; transition: opacity .45s ease; }
.okno.widoczne::backdrop { opacity: 1; }
.okno__pasek { flex: none; display: flex; align-items: center; gap: 16px; padding: 12px 2px; transition: opacity .4s ease; }
.okno__nazwa { margin: 0; font-size: 24px; color: #3e210b; text-shadow: 0 0 6px rgba(110, 52, 10, .25); white-space: nowrap; }
.okno__opis { margin: 0; flex: 1; min-width: 0; font-size: 15px; color: #4a3b2a; }
.okno__przycisk {
  font: 700 15px/1 "Atkinson Hyperlegible", sans-serif; padding: 10px 16px; min-height: 42px;
  display: inline-flex; align-items: center; white-space: nowrap; cursor: pointer;
  color: #3e210b; background-color: transparent; border: 2px solid #5b3317; border-radius: 2px;
  text-decoration: none; transition: background-color .4s ease, color .4s ease;
}
.okno__przycisk:hover { background-color: rgba(91, 51, 23, .14); }
.okno__przycisk--zamknij { background-color: #5b3317; color: #f6ead2; }
.okno__przycisk--zamknij:hover { background-color: #3e210b; }
.okno__wyciecie { /* the cut-out: burnt edge all around */
  position: relative; flex: 1; min-height: 0; background: #efe6d4; border-radius: 2px;
  box-shadow: 0 0 0 2.5px #5b3317, inset 0 3px 8px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.warstwa-okna { position: absolute; inset: 0; transition: opacity .6s ease; }
.podglad { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.podglad--zawiera { object-fit: contain; object-position: center; }
.ukryte { opacity: 0; }
.notka {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  margin: 0; padding: 10px 16px; width: max-content; max-width: calc(100% - 32px);
  background: rgba(36, 26, 16, .88); color: #f4ead6; font-size: 14px; border-radius: 2px;
}
.film-znak { /* play mark over the game screenshot */
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; background: rgba(246, 234, 210, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.film-znak::after { content: ""; position: absolute; left: 33px; top: 24px; border-left: 26px solid #3e210b; border-top: 18px solid transparent; border-bottom: 18px solid transparent; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 900px) {
  .warsztat, .warsztat:has(> .model:nth-child(odd):last-child) { grid-template-columns: 1fr; gap: 72px; padding-bottom: 0; }
  .warsztat > .model:nth-child(odd) { translate: none; }
  .o-mnie { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 120px; }
  .listwa__srodek { width: calc(100% - 28px); padding: 8px 0 8px; gap: 0 14px; }
  .listwa__kto { flex-basis: 100%; }
  .listwa__imie { font-size: 22px; }
  .listwa__zdanie { font-size: 13.5px; line-height: 1.4; }
  /* own row under the sentence: the address has room to grow to the right */
  .listwa__kontakt { gap: 16px; justify-content: flex-start; min-width: 0; }
  .olowek { font-size: 15px; }
  .blat { width: calc(100% - 32px); padding-top: 72px; }
  .model h2 { font-size: 26px; }
  .o-mnie h2 { font-size: 30px; }

  .okno { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0 6px 6px; border-radius: 0; }
  .okno__pasek { padding: 6px 2px; gap: 8px; }
  .okno__nazwa { font-size: 19px; margin-right: auto; }
  .okno__opis, .dluzej { display: none; }
  .okno__przycisk { padding: 8px 12px; font-size: 14px; }
}

/* ---------- Reduced motion (system setting): fades stay, movement goes ---------- */
@media (prefers-reduced-motion: reduce) {
  .warstwa, .ramka, .cien, .podwozie, .moneta, .olowek::after,
  .model--budowa .listwa-g, .model--budowa .listwa-d, .model--budowa .listwa-l, .model--budowa .listwa-p, .model--budowa .luzem {
    transition-property: opacity, filter, box-shadow !important;
  }
  .scena:hover *, .scena:focus-visible *, .model--budowa:hover * { transform: none !important; scale: none !important; }
  .wejscie { animation-name: pojaw; }
  .swiatlo { transition: opacity .5s ease, --swiatlo-kolor .45s ease; }
  /* scroll reveal and pencil line: only fade, no travel */
  .js .model:not(.na-blacie) .w2, .js .model:not(.na-blacie) .w3 { top: 0; }
  .js .model:not(.na-blacie) .ramka { scale: none; }
  .js .model:not(.na-blacie) > h2, .js .model:not(.na-blacie) > p, .js .model:not(.na-blacie) > a { transform: none; }
  .olowek::after, .olowek:hover::after, .olowek:focus-visible::after { transform: none; opacity: 0; transition: opacity .4s ease !important; }
  .olowek:hover::after, .olowek:focus-visible::after { opacity: 1; }
}
@keyframes pojaw { from { opacity: 0; } }
