/* Maria Słojewska - arkusz stylów
   Koncept: strona jako wystawa. Każdy cykl wisi na ścianie w swoim kolorze
   (umbra twarzy, szarość martwych natur, ultramaryna nocnych pejzaży, tynk mozaik).
   Kolory wzięte z samych obrazów. */

:root {
  --szarosc: #C7C6C1;
  --umbra: #1D1916;
  --ultra: #16215F;
  --tynk: #D8CFBE;
  --grafit: #1C1B19;
  --kobalt: #2B3AA3;

  --wall: var(--szarosc);
  --ink: var(--grafit);
  --mute: #4A4945;
  --line: rgba(28, 27, 25, .22);
  --cell: rgba(28, 27, 25, .06);
  --focus: var(--kobalt);

  --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="umbra"] { --wall: var(--umbra); --ink: #DCD6CC; --mute: #9C958A; --line: rgba(220, 214, 204, .18); --cell: rgba(220, 214, 204, .045); --focus: #AEB6F0; }
[data-wall="ultra"] { --wall: var(--ultra); --ink: #D9DCF3; --mute: #8E97CF; --line: rgba(217, 220, 243, .22); --cell: rgba(217, 220, 243, .06); --focus: #F0E6C8; }
[data-wall="tynk"] { --wall: var(--tynk); --ink: #1F1C17; --mute: #57503F; --line: rgba(31, 28, 23, .2); --cell: rgba(31, 28, 23, .05); }
[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; }
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, .layers__label, .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) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; will-change: transform; }

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(--umbra); color: #DCD6CC; 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: #9C958A; }

/* ------- 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: cover; 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, 19.5vw, 340px); line-height: .78; letter-spacing: -.035em;
  color: #2E2824; white-space: nowrap; transform: translateY(.14em);
}
.hero__name-in { display: inline-block; }

/* ------- 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: calc(var(--h) * var(--r)); 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: cover; 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 ------- */
.manifest { position: relative; overflow: hidden; min-height: min(100svh, 920px); display: flex; align-items: center; padding: var(--sec) var(--gut); isolation: isolate; }
.manifest__bg { position: absolute; inset: -12% 0; z-index: -1; }
.manifest__bg img { width: 100%; height: 100%; object-fit: cover; }
.manifest__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 17, 15, .86) 0%, rgba(20, 17, 15, .6) 55%, rgba(20, 17, 15, .35) 100%); }
.manifest__in { max-width: 980px; color: #EDE7DD; }
.manifest__in .eyebrow { color: #B9B1A5; }
.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; color: #EDE7DD; }
.manifest__cap { position: absolute; right: var(--gut); bottom: 22px; color: #B9B1A5; }

/* ------- 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)); cursor: zoom-in; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9); }
.hang__item img { width: 100%; height: 100%; object-fit: cover; 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 */
.room--martwe { padding: 0; }
.track { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track__in { display: flex; align-items: flex-end; gap: clamp(40px, 5vw, 96px); width: max-content; padding: var(--sec) var(--gut); }
.track__head { flex: 0 0 auto; width: min(80vw, 520px); align-self: center; display: flex; flex-direction: column; gap: 22px; }
.room--martwe > .track__head { width: auto; max-width: 760px; padding: var(--sec) var(--gut) 0; }
.room--martwe > .track__head + .track .track__in { padding-top: clamp(40px, 6vw, 80px); }
.track__head .room__q { margin-top: 12px; }
.track__item { --th: clamp(260px, 56vh, 620px); flex: 0 0 auto; width: calc(var(--th) * var(--r)); }
.track__item button { display: block; width: 100%; height: var(--th); cursor: zoom-in; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .45); }
.track__item img { width: 100%; height: 100%; object-fit: cover; }
.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); }
.track-bar { display: none; }

/* 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: cover; }
.noc__cap { position: absolute; top: calc(100% + 16px); left: 0; color: var(--mute); }

/* palety: dwa taśmociągi */
.room--palety { padding-left: 0; padding-right: 0; }
.room--palety .room__head { padding: 0 var(--gut); }
.marquee { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 26px); }
.mq { overflow: hidden; }
.mq__in { display: flex; width: max-content; will-change: transform; }
.mq__set { display: flex; gap: clamp(14px, 1.8vw, 26px); padding-right: clamp(14px, 1.8vw, 26px); }
.mq__item { --mh: clamp(150px, 17vw, 270px); height: var(--mh); width: calc(var(--mh) * var(--r)); flex: 0 0 auto; display: block; }
button.mq__item { cursor: zoom-in; }
.mq__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--e-out); }
button.mq__item:hover img { transform: scale(1.04); }

/* 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: cover; }
.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: calc(var(--sh) * var(--r)); }
.seri__item button { display: block; height: var(--sh); width: 100%; cursor: zoom-in; }
.seri__item img { width: 100%; height: 100%; object-fit: cover; }

/* ------- katalog ------- */
.katalog { padding: var(--sec) 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gut); }
.chip { min-height: 40px; 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: 40px; 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; }
.tech__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gut); padding: 0 var(--gut); }
.tech__sticky { position: sticky; top: calc(var(--hdr) + 5vh); align-self: start; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 4vh 0; }
.layers { position: relative; width: min(100%, 560px, 62vh); aspect-ratio: 1.183; }
.layers__frame { position: absolute; inset: -14px; border: 14px solid #7E5E3E; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), 0 50px 80px -40px rgba(0, 0, 0, .8);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 9px); border-image: repeating-linear-gradient(90deg, #7a5a3a 0 6px, #8a6846 6px 11px, #74553a 11px 15px) 14; }
.layers__canvas { position: absolute; inset: 0; overflow: hidden; background: #BDAA85; }
.ly { position: absolute; inset: 0; }
.ly--linen {
  background-color: #C4B28C;
  background-image:
    repeating-linear-gradient(0deg, rgba(70, 52, 25, .22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 245, 220, .16) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(70, 52, 25, .08) 0 2px, transparent 2px 7px);
}
.ly--size { background: linear-gradient(115deg, rgba(110, 80, 30, .18) 0%, rgba(110, 80, 30, .18) 100%); }
.ly--size::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 248, 230, .5) 48%, transparent 60%); background-size: 260% 100%; background-position: var(--sheen, 120%) 0; }
.ly--ground { background-color: #ECE8DF; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .03) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .025) 0 1px, transparent 1px 3px); }
.ly--imp { background: #A8834E; mix-blend-mode: multiply; }
.ly--paint img { width: 100%; height: 100%; object-fit: cover; }
.ly--varnish { background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%); background-size: 260% 100%; background-position: var(--sheen, 120%) 0; mix-blend-mode: soft-light; }
.ly--staples { inset: -1px; background:
  radial-gradient(circle, rgba(60, 60, 60, .8) 1.4px, transparent 2px) 0 0 / 34px 6px repeat-x,
  radial-gradient(circle, rgba(60, 60, 60, .8) 1.4px, transparent 2px) 0 100% / 34px 6px repeat-x; }
.layers__label { color: var(--mute); }
.steps { counter-reset: s; }
.step { padding: 16vh 0; border-top: 1px solid var(--line); transition: opacity .5s; }
.step:first-child { padding-top: 6vh; border-top: 0; }
.step:last-child { padding-bottom: 30vh; }
.step h3 { font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.step__n { color: var(--mute); min-width: 1.6em; }
.step p { max-width: 42ch; }
.step__note { margin-top: 14px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--mute); font-style: italic; }
.tech.is-live .step { opacity: .3; }
.tech.is-live .step.is-on { opacity: 1; }

.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; }
.rail--notes { cursor: grab; }
.note { flex: 0 0 auto; width: clamp(280px, 30vw, 420px); padding: 26px 0 0; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.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; flex: 1; }
.note .link { align-self: flex-start; }

/* ------- 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; }

/* ------- 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; }
.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; }
.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: #2A3A8E; }
.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: #DCD6CC; }
.lb[hidden] { display: none; }
.lb__bg { position: absolute; inset: 0; background: rgba(18, 15, 13, .96); }
.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: #9C958A; }
.lb__bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px var(--gut) 22px; --line: rgba(220, 214, 204, .22); --ink: #DCD6CC; --wall: var(--umbra); }
.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(18, 15, 13, .55); }
.reader__panel { --wall: var(--szarosc); --ink: var(--grafit); --mute: #4A4945; --line: rgba(28, 27, 25, .22);
  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 -.05em; font-size: 25vw; transform: translateY(.12em); }
  .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, .tech__body { grid-template-columns: 1fr; }
  .tech__sticky { top: var(--hdr); z-index: 2; background: var(--wall); padding: 14px 0; margin: 0 calc(-1 * var(--gut)); }
  main.walls-live .tech__sticky { background: var(--live, var(--umbra)); }
  .layers { width: min(78vw, 36vh * 1.183); }
  .step { padding: 8vh 0; }
  .step:last-child { padding-bottom: 12vh; }
  .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; }
  .manifest__cap { position: static; margin-top: 28px; }
  .manifest { flex-direction: column; align-items: flex-start; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
