:root {
  --bg: #f6f4ef;
  --fg: #16141c;
  --muted: #6c6875;
  --line: #e2ded5;
  --accent: #5b3df5;
  --card: #ffffff;
  --radius: 14px;
  --max: 1280px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }

html[data-lang="pl"] [lang="en"], html[data-lang="en"] [lang="pl"] { display: none !important; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 1.75rem); font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--fg); }
.lang { font: inherit; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .25rem .6rem; cursor: pointer; }

main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }

.hero { padding: clamp(3rem, 10vw, 7rem) 0 clamp(2rem, 6vw, 4rem); }
.kicker { margin: 0 0 .5rem; color: var(--accent); font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; letter-spacing: -.035em; }
.lead { max-width: 40rem; margin: 1.25rem 0 2rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }
.cta { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600; transition: background .2s; }
.cta:hover { background: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { font: inherit; font-size: .9rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--muted); }
.filters button.on, .filters button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.card { text-decoration: none; display: block; }
.card[hidden] { display: none; }
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb img { transform: scale(1.04); }
.badge { position: absolute; left: .75rem; top: .75rem; background: rgba(22,20,28,.8); color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem .2rem 0; }
.meta h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.meta span { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.about { margin: clamp(4rem, 10vw, 7rem) 0 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
.about h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.about-txt { font-size: 1.1rem; max-width: 46rem; }
.about-txt p:first-child { margin-top: 0; }
.about > p { grid-column: 2; margin: 0; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about > p { grid-column: 1; } }

.project { max-width: 1100px; }
.back { display: inline-block; margin: 2rem 0 0; color: var(--muted); text-decoration: none; font-size: .95rem; }
.back:hover { color: var(--fg); }
.p-head { padding: clamp(2rem, 6vw, 4rem) 0 2rem; }
.p-head h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; }
.p-desc { max-width: 44rem; margin-top: 1.25rem; font-size: 1.1rem; color: var(--muted); }
.media { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.media figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06); }
.media img { width: auto; max-height: 92vh; margin: 0 auto; cursor: zoom-in; }
.media video { width: 100%; max-height: 85vh; background: #000; }
.next { display: flex; flex-direction: column; gap: .25rem; margin: 4rem 0; padding: 2rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.next b { color: var(--fg); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.02em; }
.next:hover b { color: var(--accent); }

.foot { max-width: var(--max); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 3rem) 3rem; color: var(--muted); font-size: .9rem; }

.lb { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(12,11,16,.94); }
.lb[hidden] { display: none; }
.lb img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; border-radius: 6px; }
.lb button { position: absolute; border: 0; background: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 1rem; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb-x { top: .5rem; right: .75rem; }
.lb-p { left: .5rem; }
.lb-n { right: .5rem; }
