/* Fonty lokalne (OFL) — generowane przez fonts.py */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/inter-tight-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: 'Inter Tight';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(/fonts/inter-tight-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: 'Unbounded';
  font-style: normal;
  font-weight: 200 300;
  font-display: swap;
  src: url(/fonts/unbounded-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: 'Unbounded';
  font-style: normal;
  font-weight: 200 300;
  font-display: swap;
  src: url(/fonts/unbounded-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;
}

/* Piotr Królikowski — portfolio v2. Projekt: prototype/ (decyzje 12–13.11.2026). */
/* @font-face: theme/fonts.css (doklejany przez build.py) */

:root {
  /* Motyw ciemny (domyslny wyglad z 12.11) */
  --rgb: 255,255,255; --bg: #000; --fg: #fff; --ph: #111; --glass: rgba(20,20,20,.55); --veil: rgba(0,0,0,.72); --lb: rgba(0,0,0,.97); --dim: .75;
  --muted: rgba(var(--rgb),.5); --line: rgba(var(--rgb),.14);
  /* Paleta jasna (light mode, decyzja 17.11) */
  --lbg: #EFEDE8; --lfg: #151412; --lrgb: 21,20,18; --lph: #E2DFD8;
  color-scheme: dark;
  --font: 'Inter Tight', system-ui, sans-serif; --display: 'Unbounded', system-ui, sans-serif;
  --side: clamp(16px, 4vw, 56px); --gap: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-weight: 300; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; background: var(--ph); }
b, strong { font-weight: 400; color: var(--fg); }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.big { font-family: var(--display); font-weight: 200; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }

/* ---------- Nawigacja (Home · Work · About · Contact) ---------- */
.nav { position: fixed; z-index: 20; top: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(var(--rgb),.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14px; letter-spacing: .03em; }
.nav a, .nav button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover, .nav button:hover { background: rgba(var(--rgb),.12); }
.nav a.on { background: rgba(var(--rgb),.14); }
.nav a:focus-visible, .nav button:focus-visible { outline: 1px solid var(--fg); }

.contact { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--veil);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.contact.open { opacity: 1; visibility: visible; transition: opacity .3s; }
.contact .box { text-align: center; transform: translateY(16px); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.contact.open .box { transform: none; }
.contact .label { margin-bottom: 20px; }
.contact .mail { display: inline-block; font-family: var(--display); font-weight: 200; font-size: clamp(20px, 4.2vw, 58px); line-height: 1.1; word-break: break-all; border-bottom: 1px solid rgba(var(--rgb),.25); padding-bottom: 6px; transition: border-color .2s; }
.contact .mail:hover { border-color: var(--fg); }
.contact .soc { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }
.contact .soc a { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(var(--rgb),.2); border-radius: 999px; padding: 10px 18px; transition: background .2s, color .2s; }
.contact .soc a:hover { background: var(--fg); color: var(--bg); }
.contact .x { all: unset; position: absolute; top: 22px; right: 26px; font-size: 28px; cursor: pointer; opacity: .7; }

.foot { text-align: center; padding: 120px var(--side) 60px; color: var(--muted); font-size: 14px; }

/* ---------- Strona glowna: przestrzen ---------- */
.home { overflow-x: hidden; }
.stage { position: fixed; inset: 0; overflow: hidden; perspective: 1000px; }
.scene { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.scene .name { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; text-align: center; font-size: clamp(30px, 6.3vw, 112px); pointer-events: none; }
.item { position: absolute; left: 0; top: 0; display: block; will-change: transform, opacity; }
.item img { width: 100%; }
.item .cap { position: absolute; left: 0; top: 100%; padding-top: 10px; width: max-content; max-width: 160%; font-size: 13px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.item .cap span { color: var(--muted); }
.item:hover .cap, .item:focus-visible .cap { opacity: 1; transform: none; }
.hint { position: fixed; z-index: 10; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .6s; pointer-events: none; }
.scrolled .hint { opacity: 0; }
.home-fallback { display: none; }
@media (prefers-reduced-motion: reduce) { .hint { display: none; } }

/* ---------- Work: wiersze ---------- */
.head { padding: 150px var(--side) 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head .big { font-size: clamp(56px, 11vw, 190px); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; }
.filters button { font: inherit; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.filters button:hover { color: var(--fg); }
.filters button.on { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.filters sup { font-size: 9px; margin-left: 3px; }
.rows { margin: 0 var(--side); border-top: 1px solid var(--line); }
.rows .it { display: grid; grid-template-columns: minmax(180px, 26%) 1fr auto; gap: clamp(16px, 3vw, 48px); align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows .it[hidden] { display: none; }
.rows .th { overflow: hidden; aspect-ratio: 16 / 9; background: var(--ph); }
.rows .th img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(var(--dim)); transition: filter .4s, transform .6s cubic-bezier(.2,.7,.2,1); }
.rows .it:hover .th img, .rows .it:focus-visible .th img { filter: none; transform: scale(1.04); }
.rows .t { display: block; font-family: var(--display); font-weight: 200; font-size: clamp(26px, 3.6vw, 56px); line-height: 1; text-transform: uppercase; }
.rows .n { display: block; margin-bottom: 10px; }
.rows .it > div { min-width: 0; }
.rows .t { overflow-wrap: anywhere; }
.rows .cat { text-align: right; }
.more { margin-top: 140px; padding: 0 var(--side); }
.more > .label { display: block; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 8px; }
.more h2 { font-family: var(--display); font-weight: 200; font-size: clamp(36px, 5vw, 80px); text-transform: uppercase; margin: 0 0 40px; line-height: 1; }
.more h3 { margin: 40px 0 16px; font-weight: 300; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 12px; }
.tile .th { overflow: hidden; aspect-ratio: 4 / 3; background: var(--ph); }
.tile .th img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .5s cubic-bezier(.2,.7,.2,1); }
.tile:hover .th img { opacity: 1; transform: scale(1.05); }
.tile .t { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding-top: 10px; }
.tile .label { font-size: 11px; padding-top: 4px; }

/* ---------- Projekt: Split ---------- */
.split { display: grid; grid-template-columns: minmax(300px, 30%) 1fr; gap: clamp(24px, 3vw, 48px); padding: 0 var(--side); }
.split aside { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 48px; overflow: auto; }
.split aside .num { margin-bottom: 18px; }
.split aside .big { font-size: clamp(30px, 3.2vw, 54px); margin-bottom: 28px; overflow-wrap: anywhere; }
.split aside .desc { font-size: 15px; line-height: 1.6; color: rgba(var(--rgb),.82); margin: 0 0 32px; white-space: pre-line; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; border-top: 1px solid var(--line); padding-top: 22px; margin: 0; }
.meta dt { margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 15px; line-height: 1.45; }
.pn { display: flex; justify-content: space-between; margin-top: 28px; }
.media { display: flex; flex-direction: column; gap: var(--gap); padding-top: 96px; min-width: 0; }
.media .row { display: flex; gap: var(--gap); align-items: flex-start; }
.media .col { min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.media .grid { display: grid; gap: var(--gap); }
.media figure { margin: 0; }
.media figcaption { padding: 10px 0 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.media .text { font-size: 17px; line-height: 1.65; color: rgba(var(--rgb),.8); max-width: 720px; }
.zoom { cursor: zoom-in; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ph); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .soon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video .soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.video .soon span { position: relative; }
.btn { display: inline-flex; padding: 14px 28px; border: 1px solid var(--fg); border-radius: 999px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; align-self: flex-start; transition: background .2s, color .2s; }
.btn:hover { background: var(--fg); color: var(--bg); }
.next { display: block; position: relative; margin-top: 120px; border-top: 1px solid var(--line); padding: 56px var(--side) 80px; overflow: hidden; }
.next .label { margin-bottom: 18px; }
.next .big { font-size: clamp(40px, 8vw, 128px); transition: letter-spacing .4s; }
.next img { position: absolute; right: var(--side); top: 50%; width: min(34vw, 460px); transform: translateY(-50%) scale(.96); opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; }
.next:hover img { opacity: 1; transform: translateY(-50%) scale(1); }
.next:hover .big { letter-spacing: .01em; }
.back { display: inline-block; margin: 0 var(--side); }

/* ---------- Galerie: Grid (Photo, Logofolio, Posters, Collage) ---------- */
.ghead { padding: 150px var(--side) 60px; display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 32px; align-items: end; }
.ghead .big { font-size: clamp(48px, 10vw, 180px); overflow-wrap: anywhere; }
.ghead p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(var(--rgb),.75); }
.ghead .label { display: block; margin-top: 16px; }
.jgrid { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--side); }
.jgrid a { position: relative; display: block; overflow: hidden; flex: none; width: calc(33% - 4px); aspect-ratio: var(--r, 1); }
.jgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; cursor: zoom-in; }
.jgrid:hover img { opacity: .45; }
.jgrid a:hover img, .jgrid a:focus-visible img { opacity: 1; transform: scale(1.03); }
.jgrid .c { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; text-shadow: 0 1px 8px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jgrid a:hover .c { opacity: 1; }
.gback { display: inline-block; margin: 100px var(--side) 0; }

/* ---------- About: Statement ---------- */
.about .intro { padding: 160px var(--side) 80px; }
.about .intro .label { display: block; margin-bottom: 28px; }
.about .intro h1 { font-family: var(--display); font-weight: 200; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.08; margin: 0; max-width: 1400px; }
.about .body { display: grid; grid-template-columns: minmax(220px, 26%) 1fr 1fr; gap: clamp(24px, 4vw, 64px); padding: 0 var(--side); align-items: start; }
.about .text p { margin: 0 0 1.1em; font-size: 18px; line-height: 1.65; color: rgba(var(--rgb),.72); }
.facts { margin: 100px var(--side) 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fact ul { list-style: none; margin: 0; padding: 0; }
.fact li { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.fact li span { display: block; font-size: 13px; color: var(--muted); }
.cta { display: inline-flex; margin-top: 40px; padding: 16px 26px; border: 1px solid var(--fg); border-radius: 999px; font: inherit; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; background: none; color: inherit; transition: background .2s, color .2s; }
.cta:hover { background: var(--fg); color: var(--bg); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: var(--lb); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .2s; }
.lb img { width: auto; height: auto; max-width: 92vw; max-height: 84vh; background: none; }
.lb .info { position: absolute; left: 24px; bottom: 22px; }
.lb button { all: unset; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; padding: 20px; opacity: .7; }
.lb button:hover { opacity: 1; }
.lb .p { left: 8px; } .lb .n { right: 8px; } .lb .x { top: 32px; right: 8px; transform: none; }
.lock { overflow: hidden; }

/* ---------- Light mode: wg systemu, przelacznik nadpisuje (data-theme) ---------- */
html[data-theme="light"] { --rgb: var(--lrgb); --bg: var(--lbg); --fg: var(--lfg); --ph: var(--lph); --glass: rgba(255,255,255,.6); --veil: rgba(255,255,255,.75); --lb: var(--lbg); --dim: .97; color-scheme: light; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) { --rgb: var(--lrgb); --bg: var(--lbg); --fg: var(--lfg); --ph: var(--lph); --glass: rgba(255,255,255,.6); --veil: rgba(255,255,255,.75); --lb: var(--lbg); --dim: .97; color-scheme: light; }
}
html, body, .nav { transition: background-color .3s, color .3s; }

/* Przelacznik motywu w nawigacji */
.nav .tt { display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; }
.tt svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.tt .sun { display: none; }
html[data-theme="light"] .tt .sun { display: block; } html[data-theme="light"] .tt .moon { display: none; }
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) .tt .sun { display: block; } html:not([data-theme="dark"]) .tt .moon { display: none; } }

/* ---------- Tablet / telefon ---------- */
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) {
  .nav { top: 12px; font-size: 13px; }
  .nav a, .nav button { padding: 7px 11px; }
  .nav .tt { padding: 7px 9px; }
  .head, .ghead { padding-top: 120px; }
  .filters button { padding: 7px 12px; font-size: 12px; }
  .rows .it { grid-template-columns: 38% 1fr; }
  .rows .t { font-size: clamp(18px, 5.4vw, 28px); }
  .rows .cat { display: none; }
  .rows .th img { filter: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split aside { position: static; height: auto; padding: 120px 0 32px; overflow: visible; }
  .split aside .meta { order: 3; margin-bottom: 28px; }
  .split aside .desc { order: 4; }
  .split aside .pn { order: 5; }
  .media { padding-top: 0; }
  .media .row { flex-direction: column; }
  .media .col { width: 100%; flex: none !important; }
  .next img { display: none; }
  .ghead { grid-template-columns: 1fr; }
  .about .body { grid-template-columns: 1fr; }
  .about .body .por { max-width: 280px; }
  .fact { grid-template-columns: 1fr; gap: 10px; }
}
