/* kroje lokalnie (latin + latin-ext), pobrane z Google Fonts 21.10.2026 - licencja SIL OFL */
@font-face { font-family: "Brygada 1918"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/brygada1918-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Brygada 1918"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/brygada1918-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Brygada 1918"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/brygada1918-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Brygada 1918"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/brygada1918-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dmmono-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dmmono-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Maria Słojewska - arkusz stylów
   Koncept: strona jako wystawa. Każdy cykl wisi na ścianie w swoim kolorze
   Na prośbę malarki (02.10.2026) wszystkie cykle wiszą na jednej ciemnoszarej ścianie. */

:root {
  --szarosc: #C7C6C1;
  --umbra: #3B3C3E;
  --grafit-wall: #3B3C3E;
  --stopka: #343537;
  --grafit: #1C1B19;
  --kobalt: #2B3AA3;

  --wall: var(--grafit-wall);
  --ink: #CBC9C4;
  --mute: #B0AEA9;
  --line: rgba(203, 201, 196, .17);
  --cell: rgba(203, 201, 196, .05);
  --focus: #E9D7AE;

  --f-d: "Brygada 1918", Georgia, "Times New Roman", serif;
  --f-m: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gut: clamp(16px, 3.2vw, 44px);
  --hdr: 68px;
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --sec: clamp(96px, 13vw, 200px);
}

[data-wall="grafit"] { --wall: var(--grafit-wall); --ink: #CBC9C4; --mute: #B0AEA9; --line: rgba(203, 201, 196, .17); --cell: rgba(203, 201, 196, .05); --focus: #E9D7AE; }
[data-wall="stopka"] { --wall: var(--stopka); --ink: #CBC9C4; --mute: #B0AEA9; --line: rgba(203, 201, 196, .15); --cell: rgba(203, 201, 196, .05); --focus: #E9D7AE; }
[data-wall="szarosc"] { --wall: var(--szarosc); --ink: var(--grafit); --mute: #4A4945; --line: rgba(28, 27, 25, .22); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body {
  margin: 0; background: var(--umbra); color: var(--ink);
  font-family: var(--f-d); font-size: clamp(17px, 1.15vw, 19px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
/* teksty z panelu: bardzo długie słowa (np. adres, ciąg bez spacji) łamią się zamiast rozpychać stronę */
h1, h2, h3, p, dd, dt, li, blockquote, figcaption, .lbl-t, .lbl-m, .card__t, .card__m, .note__t, .room__src, .hero__cap-t, .lb__t, .lb__m, .chip { overflow-wrap: anywhere; }
.hero__name, .stopka__word { overflow-wrap: normal; }
body { overflow-x: clip; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--wall); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--wall); padding: 10px 16px; font: 400 12px/1 var(--f-m); text-transform: uppercase; letter-spacing: .08em; }
.skip:focus { top: 12px; }

[data-wall] { background: var(--wall); color: var(--ink); }
main { position: relative; z-index: 1; }
main.walls-live { background: var(--live, var(--umbra)); }
main.walls-live [data-wall] { background: transparent; --wall: var(--live); --ink: var(--l-ink); --mute: var(--l-mute); --line: var(--l-line); --cell: var(--l-cell); --focus: var(--l-focus); color: var(--ink); }

/* ------- typografia ------- */
.eyebrow, .hint, .room__meta, .lbl-m, .lbl-s, .card__m, .note__d, .step__n, .facts dt, .kontakt__list li > span:first-child,
.field label, .chip, .density button, .hero__count, .hero__cap-t, .noc__cap, .manifest__cap, .katalog__count, .reader__d {
  font-family: var(--f-m); font-weight: 400; font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow { color: var(--mute); margin-bottom: 18px; }
.h2 { font-weight: 400; font-size: clamp(44px, 6.4vw, 104px); line-height: .98; letter-spacing: -.015em; }
.lead { font-size: clamp(20px, 1.6vw, 25px); line-height: 1.45; max-width: 34ch; }
.hint { color: var(--mute); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
  background: var(--ink); color: var(--wall); text-decoration: none;
  font: 400 12px/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--ink); transition: background .35s var(--e-out), color .35s var(--e-out);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--light { background: var(--ink); color: var(--wall); }
.btn--sm { min-height: 42px; padding: 0 18px; }
.link {
  font: 400 12px/1.4 var(--f-m); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline;
  text-underline-offset: 5px; text-decoration-thickness: 1px; padding: 12px 0; display: inline-block;
}
.link:hover { text-decoration-thickness: 2px; }
.arrow {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  font: 400 16px/1 var(--f-m); display: inline-grid; place-items: center;
  transition: background .3s var(--e-out), color .3s var(--e-out), border-color .3s;
}
.arrow:hover { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.arrows { display: flex; gap: 10px; }

/* maski tekstu (ustawiane przez JS) */
/* zapas w masce: ogonki (j, y, ę, ą), znaki nad literami (Ż, Ł) i wychylenie kursywy; po animacji maska znika (.is-open) */
.split .w { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; padding: .18em .12em .3em .02em; margin: -.18em -.12em -.3em -.02em; }
.split .w.is-open { overflow: visible; }
.split .w > span { display: inline-block; }

html.js [data-intro], html.js [data-reveal], html.js [data-reveal-group] > *, html.js .hero__name, html.js .hero__canvas, html.js .hero__cap, html.js .hero__ctrl { opacity: 0; }

/* ------- nagłówek ------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gut);
  background: transparent; transition: transform .6s var(--e-out), color .5s;
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr::before { content: ""; position: absolute; inset: 0; background: var(--wall); opacity: 0; transition: opacity .5s, background-color .5s; z-index: -1; }
.hdr.is-solid::before { opacity: .94; }
.hdr__name { font-style: italic; font-size: 21px; text-decoration: none; letter-spacing: -.005em; }
.hdr__nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.hdr__nav a, .hdr__burger, .menu__foot a { font: 400 12px/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.hdr__nav a { position: relative; padding: 10px 0; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--e-out); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__burger { display: none; min-height: 44px; padding: 0 4px; }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--grafit-wall); color: #CBC9C4; display: flex; flex-direction: column; justify-content: center; padding: var(--hdr) var(--gut) 40px; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { font-size: clamp(38px, 10vw, 64px); line-height: 1.12; text-decoration: none; font-style: italic; }
.menu__foot { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; color: #B0AEA9; }

/* ------- hero ------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 1000px); padding: calc(var(--hdr) + 28px) var(--gut) 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); align-items: center;
}
.hero__col { grid-column: 1 / 6; grid-row: 1; align-self: start; padding-top: clamp(20px, 7vh, 90px); position: relative; z-index: 3; }
.hero__quote { font-size: clamp(34px, 3.5vw, 58px); line-height: 1.04; letter-spacing: -.01em; font-style: italic; max-width: 12ch; }
.hero__quote .q { margin-left: -.42em; }
.hero__lead { margin-top: 28px; max-width: 36ch; color: var(--mute); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.hero__frame { grid-column: 7 / 12; grid-row: 1; justify-self: center; align-self: start; position: relative; z-index: 2; width: min(100%, calc(min(100svh, 1000px) * .6)); margin-top: clamp(0px, 2vh, 30px); }
.hero__canvas { display: block; width: 100%; aspect-ratio: .91; position: relative; background: #0e0c0a; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03); cursor: zoom-in; overflow: hidden; }
.hero__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.hero__face.is-on { opacity: 1; }
.hero__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--mute); }
.hero__count { white-space: nowrap; color: var(--ink); }
.hero__ctrl { position: absolute; right: calc(-1 * (46px + 18px)); top: 0; display: flex; flex-direction: column; gap: 10px; }

.hero__name {
  position: absolute; left: calc(var(--gut) - .06em); right: 0; bottom: 0; z-index: 1; pointer-events: none;
  font-weight: 400; font-style: italic; font-size: clamp(92px, 17vw, 300px); line-height: 1; letter-spacing: -.03em;
  color: #48494C; white-space: nowrap; padding-bottom: .14em;
}
/* vertical-align: top - maska z overflow:hidden ma inną linię bazową niż bez niej; bez tego napis skakał w dół po animacji */
.hero__name-in { display: inline-block; vertical-align: top; }

/* ------- sekcje z głową ------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 32px; padding: 0 var(--gut); margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.sec-head__side { display: flex; align-items: center; gap: 24px; }
.sec-head__lead { grid-column: 1 / -1; max-width: 42ch; color: var(--mute); margin-top: 10px; }

/* ------- najnowsze: szyna ------- */
.nowe { padding: clamp(80px, 10vw, 150px) 0 var(--sec); }
.rail {
  --h: clamp(260px, 50vh, 500px);
  display: flex; gap: clamp(18px, 2.4vw, 36px); overflow-x: auto; overflow-y: hidden;
  padding: 4px var(--gut) 8px; scroll-padding-inline: var(--gut); scrollbar-width: none; cursor: grab;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; }
.rail.is-drag * { pointer-events: none; }
.card { flex: 0 0 auto; width: clamp(150px, calc(var(--h) * var(--r)), 86vw); text-align: left; cursor: zoom-in; }
.card__img { display: block; height: var(--h); overflow: hidden; background: var(--cell); }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--e-out); }
.card:hover .card__img img { transform: scale(1.035); }
.card__cap { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; }
.card__t { font-size: 22px; line-height: 1.2; }
.card__m { color: var(--mute); text-transform: none; letter-spacing: .02em; }
.rail-bar { margin: 34px var(--gut) 0; height: 1px; background: var(--line); position: relative; }
.rail-bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.15); }

/* ------- manifest ------- */
/* obraz w całości, bez kadrowania i przyciemnienia (prośba malarki 15.10.2026) */
.manifest { position: relative; display: flex; flex-direction: column; padding: var(--sec) var(--gut); }
.manifest__in { order: 1; max-width: 980px; }
.manifest__bg { order: 2; margin-top: clamp(40px, 6vw, 80px); }
.manifest__bg img { width: 100%; height: auto; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.manifest__h { font-weight: 400; font-style: italic; font-size: clamp(46px, 7.4vw, 124px); line-height: .96; letter-spacing: -.02em; }
.manifest__p { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(22px, 2.1vw, 34px); line-height: 1.32; max-width: 30ch; }
.manifest .link--light { margin-top: 20px; }
.manifest__cap { order: 3; margin-top: 16px; color: var(--mute); }

/* ------- sale (cykle) ------- */
.room { padding: var(--sec) var(--gut); position: relative; }
.room__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px var(--gut); align-items: end; margin-bottom: clamp(48px, 6vw, 90px); }
.room__h { grid-column: 1; font-weight: 400; font-size: clamp(56px, 9vw, 156px); line-height: .9; letter-spacing: -.025em; }
.room__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--mute); }
.room__q { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.room__q p { font-style: italic; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.35; }
.room__src { margin-top: 14px; font: 400 12px/1.4 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; padding: 6px 0; }
.room__src:hover { color: var(--ink); }
.room__lead { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 40ch; }
.room__tip { margin-top: 36px; text-align: center; font: 400 12px/1.4 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

/* twarze: rząd obrazów, światło na najechany */
.hang { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(12px, 1.6vw, 24px); }
.hang__item { height: clamp(118px, 13.5vw, 214px); width: calc(clamp(118px, 13.5vw, 214px) * var(--r)); max-width: 100%; cursor: zoom-in; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9); }
.hang__item img { width: 100%; height: 100%; object-fit: contain; transition: filter .7s var(--e-out), transform .7s var(--e-out); }
@media (hover: hover) {
  .hang:hover .hang__item img { filter: brightness(.26) saturate(.6); }
  .hang .hang__item:hover img, .hang .hang__item:focus-visible img { filter: none; transform: translateY(-6px); }
}

/* martwe natury: tor poziomy */
/* martwe natury i palety: galerie rosnące w dół (19.10.2026, prośba malarki - bez przewijania w bok) */
.room--martwe { padding: 0 0 var(--sec); }
.room--martwe > .track__head { max-width: 760px; padding: var(--sec) var(--gut) 0; display: flex; flex-direction: column; gap: 22px; }
.track__head .room__q { margin-top: 12px; max-width: 30em; align-self: flex-start; }
.track__in { columns: 2; column-gap: clamp(24px, 4vw, 72px); padding: clamp(40px, 6vw, 80px) var(--gut) 0; }
.track__item, .pal__item { break-inside: avoid; margin: 0 0 clamp(36px, 5vw, 72px); }
.track__item button, .pal__item button { display: block; width: 100%; cursor: zoom-in; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .45); }
.track__item img, .pal__item img { width: 100%; height: auto; }
.pal { columns: 3; column-gap: clamp(18px, 2.4vw, 40px); }
.pal__item { margin-bottom: clamp(28px, 3.5vw, 52px); }
.pal__item figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.track__item figcaption, .moz figcaption, .seri__item figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; }
.lbl-t { font-size: 18px; line-height: 1.25; }
.lbl-m { color: var(--mute); text-transform: none; letter-spacing: .02em; }
.lbl-s { color: var(--mute); }

/* nocne pejzaże */
.noc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gut); align-items: center; }
.noc__head { display: flex; flex-direction: column; gap: 22px; }
.noc__head .room__h { font-size: clamp(52px, 6.6vw, 118px); }
.noc__note { color: var(--mute); max-width: 34ch; }
.noc__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.noc__thumb { width: 72px; position: relative; padding-bottom: 8px; opacity: .55; transition: opacity .4s; }
.noc__thumb[aria-selected="true"], .noc__thumb:hover { opacity: 1; }
.noc__thumb img { width: 72px; height: 50px; object-fit: cover; }
.noc__thumb i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.noc__thumb i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.noc__stage { position: relative; aspect-ratio: 1.42; }
.noc__img { position: absolute; inset: 0; opacity: 0; visibility: hidden; overflow: hidden; cursor: zoom-in; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7); transition: opacity 1.4s var(--e-out), visibility 1.4s; }
.noc__img.is-on { opacity: 1; visibility: visible; }
.noc__img img { width: 100%; height: 100%; object-fit: contain; }
.noc__cap { position: absolute; top: calc(100% + 16px); left: 0; color: var(--mute); }

/* palety: dwa taśmociągi */


/* mozaika i serigrafia */
.mozaika { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 90px); max-width: 1180px; margin: 0 auto; }
.moz button { display: block; width: 100%; aspect-ratio: var(--r); position: relative; overflow: hidden; cursor: zoom-in; box-shadow: 0 40px 60px -40px rgba(40, 30, 10, .6); }
.moz__img { width: 100%; height: 100%; object-fit: contain; }
.moz canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.moz:nth-child(2) { margin-top: clamp(40px, 9vw, 160px); }
.seri { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(18px, 2.4vw, 40px); margin-top: clamp(80px, 10vw, 150px); }
.seri__item { --sh: clamp(150px, 15vw, 240px); width: clamp(120px, calc(var(--sh) * var(--r)), 100%); }
.seri__item button { display: block; height: var(--sh); width: 100%; cursor: zoom-in; }
.seri__item img { width: 100%; height: 100%; object-fit: contain; }

/* ------- katalog ------- */
.katalog { padding: var(--sec) 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gut); }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; transition: background .3s, color .3s, border-color .3s; }
.chip sup { font-size: 9px; margin-left: 2px; vertical-align: super; opacity: .7; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.density { display: flex; border: 1px solid var(--line); border-radius: 2px; }
.density button { min-height: 44px; padding: 0 14px; }
.density button[aria-pressed="true"] { background: var(--ink); color: var(--wall); }
.katalog__count { padding: 22px var(--gut) 0; color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44vw), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); padding: 28px var(--gut) 0; }
.grid[data-density="male"] { grid-template-columns: repeat(auto-fill, minmax(min(128px, 28vw), 1fr)); gap: 18px 12px; }
.grid__item[hidden] { display: none; }
.grid__item > button { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.grid__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--cell); padding: 9%; overflow: hidden; }
.grid__img img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 16px 26px -18px rgba(0, 0, 0, .55); transition: transform .8s var(--e-out); }
.grid__item > button:hover .grid__img img { transform: scale(1.04); }
.grid__cap { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.grid__cap .lbl-s { display: none; }
.grid[data-density="male"] .grid__cap .lbl-m { display: none; }
.grid[data-density="male"] .lbl-t { font-size: 14px; }

/* ------- pracownia ------- */
.pracownia { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 110px); align-items: center; padding: var(--sec) var(--gut); }
.pracownia__img { position: relative; padding-bottom: 18%; }
.pracownia__a { width: 80%; }
.pracownia__b { position: absolute; right: 0; bottom: 0; width: 50%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.pracownia__a img, .pracownia__b img { width: 100%; }
.pracownia__txt .h2 { margin-bottom: 28px; }
.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); padding-top: 4px; }
.pracownia__q { margin-top: 36px; font-style: italic; font-size: clamp(20px, 1.6vw, 25px); line-height: 1.4; max-width: 32ch; }

/* ------- technologia ------- */
.tech { padding: var(--sec) 0; }
/* etapy jako lista (animacja płótna usunięta 16.10.2026 na prośbę malarki) */
.tech__body { padding: 0 var(--gut); }
.steps { max-width: 900px; }
.step { padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--line); }
.step h3 { font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; display: flex; align-items: baseline; gap: 18px; margin-bottom: 16px; }
.step__n { color: var(--mute); min-width: 1.6em; }
.step p { max-width: 46ch; }
.step__note { margin-top: 14px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--mute); font-style: italic; }

.farba { padding: var(--sec) var(--gut) 0; }
.farba__h { font-weight: 400; font-style: italic; font-size: clamp(34px, 4.4vw, 72px); line-height: 1.02; max-width: 16ch; margin-bottom: clamp(30px, 4vw, 60px); }
.farba__list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 5fr); gap: var(--gut); padding: clamp(14px, 1.6vw, 22px) 0; border-top: 1px solid var(--line); font-size: clamp(24px, 2.8vw, 46px); line-height: 1.1; transition: padding .5s var(--e-out), color .5s; }
.farba__list li:last-child { border-bottom: 1px solid var(--line); }
.farba__list li span:first-child, .farba__list li span:nth-child(2) { color: var(--mute); }
.farba__list li:hover { padding-left: 18px; }
.farba__list li:hover span { color: var(--ink); }

/* ------- dziennik ------- */
.dziennik { padding: var(--sec) 0; }
/* dziennik: lista od góry do dołu */
.notes { max-width: 1100px; padding: 0 var(--gut); border-bottom: 1px solid var(--line); }
.note { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); }
.note__x { grid-column: 2; }
.note .link { grid-column: 3; grid-row: 1; justify-self: start; }
.note__d { color: var(--mute); }
.note__t { font-weight: 400; font-size: clamp(24px, 2vw, 32px); line-height: 1.12; }
.note__x { color: var(--mute); font-size: 17px; line-height: 1.55; max-width: 62ch; }

/* ------- kontakt ------- */
.kontakt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); padding: var(--sec) var(--gut); }
.kontakt__info .h2 { margin-bottom: 24px; }
.kontakt__list { margin-top: 40px; border-top: 1px solid var(--line); }
.kontakt__list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.kontakt__list li > span:first-child { color: var(--mute); padding-top: 4px; }
.kontakt__list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--e-out); }
.kontakt__list a:hover { background-size: 0 1px; background-position: 100% 100%; }
.kontakt__social { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gut); align-content: start; padding-top: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide, .form__foot { grid-column: 1 / -1; }
.field label { color: var(--mute); }
.field label em { font-style: normal; opacity: .7; text-transform: none; letter-spacing: .02em; margin-left: 6px; }
.field input, .field textarea {
  font: 400 20px/1.4 var(--f-d); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; min-height: 48px; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--focus); }
.field input::placeholder { color: var(--mute); opacity: .6; }
.field [aria-invalid="true"] { border-color: #E5A290; }
.field__err { font: 400 13px/1.4 var(--f-m); color: #E5A290; min-height: 0; }
.field__err:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form__status { color: var(--mute); max-width: 46ch; font-size: 16px; }
.form__status a { text-decoration: underline; text-underline-offset: 4px; }
.form.is-sending .btn { opacity: .55; pointer-events: none; }
/* pole-pułapka na boty: niewidoczne dla ludzi i czytników ekranu */
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------- stopka ------- */
.stopka { position: relative; padding: clamp(60px, 8vw, 110px) var(--gut) 24px; overflow: hidden; }
.stopka.is-fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; visibility: hidden; }
/* stopka pod treścią jest pokazywana dopiero przy końcu strony (CLS, LCP i koszt malowania przy przewijaniu) */
.stopka.is-fixed.is-shown { visibility: visible; }
.stopka__cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--gut); }
.stopka__about { max-width: 30ch; color: var(--mute); }
.stopka nav, .stopka__links { display: flex; flex-direction: column; gap: 6px; }
.stopka nav a, .stopka__links a { text-decoration: none; width: fit-content; padding: 6px 0; }
.stopka nav a:hover, .stopka__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.stopka__word { font-style: italic; font-size: clamp(90px, 21.5vw, 380px); line-height: .8; letter-spacing: -.035em; margin: clamp(40px, 6vw, 80px) 0 0 -.05em; padding-bottom: .2em; white-space: nowrap; color: #46474A; }
.stopka__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.stopka__bottom a { text-decoration: none; color: var(--ink); }

/* ------- lightbox ------- */
.lb { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: 1fr auto; color: #CBC9C4; }
.lb[hidden] { display: none; }
.lb__bg { position: absolute; inset: 0; background: rgba(40, 41, 43, .97); }
.lb__fig { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 0; padding: calc(var(--hdr) - 8px) var(--gut) 0; }
.lb__stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb__img { max-width: 100%; max-height: calc(100svh - 230px); width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); transform-origin: 0 0; }
.lb__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding-top: 18px; }
.lb__t { font-size: 24px; }
.lb__m, .lb__i { font: 400 12px/1.5 var(--f-m); letter-spacing: .06em; color: #B0AEA9; }
.lb__bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px var(--gut) 22px; --line: rgba(203, 201, 196, .22); --ink: #CBC9C4; --wall: var(--grafit-wall); }
.lb__bar [data-lb-ask] { margin-left: auto; }
.lb__close { font: 400 12px/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; min-height: 44px; padding: 0 6px; text-decoration: underline; text-underline-offset: 5px; }
.lb__fig .lb__close { position: absolute; }

/* ------- czytnik dziennika ------- */
.reader { position: fixed; inset: 0; z-index: 110; }
.reader[hidden] { display: none; }
.reader__bg { position: absolute; inset: 0; background: rgba(20, 21, 22, .6); }
.reader__panel { --wall: #434446; --ink: #CBC9C4; --mute: #B8B6B1; --line: rgba(203, 201, 196, .18);
  position: absolute; top: 0; right: 0; bottom: 0; width: min(680px, 100%); background: var(--wall); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 22px clamp(20px, 4vw, 56px) 60px; }
.reader__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.reader__d { color: var(--mute); }
.reader__t { font-weight: 400; font-size: clamp(34px, 4vw, 56px); line-height: 1.02; letter-spacing: -.01em; margin-bottom: 30px; }
.reader__body p { font-size: 20px; line-height: 1.7; margin-bottom: 1em; max-width: 58ch; }
.reader__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.reader__nav .link[disabled] { opacity: .3; pointer-events: none; }

/* ------- tryb bez animacji ------- */
html.is-still .hero__face { transition: opacity .9s; }

/* ------- responsywność ------- */
@media (max-width: 1100px) {
  .hero__ctrl { position: static; flex-direction: row; margin-top: 14px; }
  .hero__frame { grid-column: 7 / 13; }
}
@media (max-width: 900px) {
  :root { --hdr: 60px; }
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-flex; align-items: center; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .hero__col { padding-top: 12px; order: 1; }
  .hero__frame { order: 2; width: min(100%, 440px); margin: 40px auto 0; }
  .hero__name { position: relative; left: auto; order: 3; margin: 26px 0 0 -.03em; font-size: 22vw; padding-bottom: .14em; }
  .hero__quote { max-width: 14ch; }
  .hero__quote .q { margin-left: 0; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head__side { justify-content: space-between; }
  .room__head, .room__head--row { grid-template-columns: 1fr; }
  .room__q, .room__lead { grid-column: 1; grid-row: auto; }
  .noc { grid-template-columns: 1fr; }
  .noc__stage { margin-bottom: 40px; }
  .pracownia, .kontakt { grid-template-columns: 1fr; }
  .track__in { columns: 1; }
  .pal { columns: 2; }
  .note { grid-template-columns: 1fr; gap: 8px; }
  .note__x, .note .link { grid-column: 1; grid-row: auto; }
  .farba__list li { grid-template-columns: 1fr 1fr; font-size: 24px; }
  .farba__list li span:last-child { grid-column: 1 / -1; }
  .stopka__cols { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .mozaika { gap: 18px; }
  .lb__bar [data-lb-ask] { margin-left: 0; }
}
@media (max-width: 560px) {
  .facts div, .kontakt__list li { grid-template-columns: 1fr; gap: 2px; }
  .hero__cap { flex-direction: column; gap: 6px; }
  .rail { --h: 300px; }
  .track__item { --th: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (hover: none) { .room__tip { display: none; } }

/* ekrany dotykowe: pola klikania co najmniej 44 px wysokości */
@media (pointer: coarse) {
  .room__src { padding: 13px 0; margin-top: 4px; }
  .hdr__name { padding: 5px 0; }
  .facts dd a, .kontakt__social a { display: inline-block; padding: 12px 0; }
  .kontakt__list a { display: inline-block; padding: 7px 0; background-origin: content-box; background-clip: content-box; }
  .stopka nav a, .stopka__links a { padding: 10px 0; }
  .stopka__bottom a { display: inline-block; padding: 13px 0; margin: -13px 0; }
}
