:root {
  --bg: #f3f2ee;
  --ink: #121212;
  --mute: #6f6d67;
  --line: #d8d6cf;
  --card: #e3e1da;
  --dark: #121212;
  --on-dark: #f3f2ee;
  --accent: #d9ff3b;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(16px, 3vw, 40px);
  --gap: clamp(14px, 1.6vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, p { margin: 0; }

.label {
  font: 500 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- nagłówek ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--pad);
  font-size: 14px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top__name { font-weight: 600; letter-spacing: -.01em; }
.top__nav { display: flex; gap: clamp(14px, 2.4vw, 32px); white-space: nowrap; }
.top__nav a, .top__lang { color: var(--mute); transition: color .2s; }
.top__nav a:hover, .top__nav a[aria-current], .top__lang:hover { color: var(--ink); }
.top__nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.top__lang { justify-self: end; font: 500 12px/1 var(--mono); letter-spacing: .06em; border: 1px solid var(--line); padding: 6px 9px; border-radius: 99px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(92svh - 52px);
  display: flex; align-items: flex-end;
  padding: var(--pad);
  overflow: hidden;
}
.hero__txt { position: relative; z-index: 1; max-width: 1400px; }
.hero h1 {
  font-size: clamp(46px, 9.4vw, 156px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.048em;
}
.hero p { margin-top: clamp(18px, 2.4vw, 30px); max-width: 38ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--mute); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg iframe {
  position: absolute; top: 50%; left: 50%;
  width: max(100vw, 177.78svh); height: max(56.25vw, 100svh);
  transform: translate(-50%, -50%); border: 0; pointer-events: none;
}
.hero--video { color: #fff; margin-top: -52px; min-height: 100svh; }
.hero--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 60%); }
.hero--video p { color: rgba(255,255,255,.8); }
.hero--video .btn:not(.btn--accent) { border-color: rgba(255,255,255,.5); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 99px;
  border: 1px solid var(--ink);
  font-size: 15px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }

/* ---------- sekcje ---------- */
.sec { padding: clamp(48px, 7vw, 110px) var(--pad) 0; }
.sec > .label { display: block; margin-bottom: 20px; }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 44px) var(--gap); }
.feat .tile:first-child { grid-column: 1 / -1; }
.feat .tile .tile__media { aspect-ratio: 16 / 9; }
.feat .tile:first-child .tile__media { aspect-ratio: 2.1 / 1; }

.cat { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: var(--gap) clamp(24px, 4vw, 64px); align-items: start; }
.cat__head { position: sticky; top: 80px; display: grid; gap: 14px; }
.cat__head h2 { font-size: clamp(38px, 5vw, 76px); font-weight: 500; letter-spacing: -.04em; line-height: .95; }
.cat__head h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cat__head p { color: var(--mute); max-width: 34ch; }
.more { font-weight: 500; font-size: 15px; justify-self: start; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more:hover { border-color: transparent; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 2.6vw, 36px) var(--gap); }
.grid--v { grid-template-columns: repeat(4, 1fr); }
.grid--all.grid--v { grid-template-columns: repeat(5, 1fr); }
.cat .grid:not(.grid--v) { grid-template-columns: repeat(2, 1fr); }
.cat .grid:not(.grid--v) .tile:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.cat__body { display: grid; gap: clamp(32px, 3.4vw, 48px); }

/* ---------- kafel ---------- */
.tile { display: grid; gap: 10px; align-content: start; }
.tile__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--card); border-radius: 2px;
}
.tile--v .tile__media { aspect-ratio: 9 / 16; }
.tile__media img, .tile__ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.tile:hover .tile__media img, .tile:hover .tile__ph { transform: scale(1.035); }
.tile__ph {
  display: grid; place-items: center;
  --h: calc(var(--i) * 53);
  background:
    radial-gradient(120% 90% at 30% 20%, hsl(var(--h) 22% 42% / .9), transparent 60%),
    linear-gradient(160deg, hsl(calc(var(--h) + 30) 18% 26%), hsl(calc(var(--h) + 60) 22% 10%));
}
.tile__ph span { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.tile__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--accent);
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s;
}
.tile__play::after {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-left: 16px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.tile:hover .tile__play, .tile:focus-visible .tile__play { opacity: 1; transform: scale(1); }
.tile__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tile__client { font: 500 11px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.tile__title { font-size: 15px; width: 100%; }
.tile--big .tile__cap { flex-wrap: nowrap; gap: 14px; }
.tile--big .tile__title { width: auto; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.tile--big .tile__go { margin-left: auto; font-size: 14px; white-space: nowrap; }
.tile--big:hover .tile__go { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- podstrony ---------- */
.page-head { padding: clamp(40px, 8vw, 120px) var(--pad) 0; display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(54px, 11vw, 180px); font-weight: 500; letter-spacing: -.055em; line-height: .88; }
.page-head > p { max-width: 46ch; color: var(--mute); font-size: clamp(17px, 1.5vw, 20px); }
.about__txt { display: grid; gap: 1em; max-width: 52ch; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -.01em; margin-top: 10px; }

/* ---------- stopka / kontakt ---------- */
.foot {
  margin-top: clamp(80px, 10vw, 160px);
  padding: clamp(48px, 7vw, 100px) var(--pad) 26px;
  background: var(--dark); color: var(--on-dark);
  display: grid; gap: clamp(18px, 2.4vw, 30px);
}
.foot__lead { max-width: 30ch; font-size: clamp(18px, 1.8vw, 24px); color: rgba(243,242,238,.65); }
.foot__mail {
  font-size: clamp(20px, 6.6vw, 112px); font-weight: 500; letter-spacing: -.045em; line-height: 1;
  overflow-wrap: anywhere; justify-self: start; transition: color .2s;
}
.foot__mail:hover { color: var(--accent); }
.foot__row {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(30px, 5vw, 70px);
  padding-top: 20px; border-top: 1px solid rgba(243,242,238,.18); font-size: 15px;
}
.foot__row a:hover { color: var(--accent); }
.foot__c { margin-left: auto; color: rgba(243,242,238,.45); }
.contact .foot { margin-top: clamp(60px, 8vw, 120px); }

/* ---------- odtwarzacz ---------- */
.lb {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8,8,8,.96); color: #fff;
  display: grid; place-items: center;
  padding: 64px clamp(12px, 6vw, 96px) 72px;
}
.lb[hidden] { display: none; }
.lb__frame { width: min(100%, calc((100svh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.lb.is-v .lb__frame { width: auto; height: calc(100svh - 150px); max-width: 100%; aspect-ratio: 9 / 16; }
.lb__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb__title { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 14px; color: rgba(255,255,255,.7); padding: 0 60px; }
.lb button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  width: 48px; height: 48px; font-size: 22px; border-radius: 50%; transition: background .2s;
}
.lb button:hover { background: rgba(255,255,255,.12); }
.lb__x { top: 10px; right: 10px; }
.lb__prev { left: 8px; top: 50%; margin-top: -24px; }
.lb__next { right: 8px; top: 50%; margin-top: -24px; }
body.lb-open { overflow: hidden; }

/* ---------- mniejsze ekrany ---------- */
@media (max-width: 1100px) {
  .cat { grid-template-columns: 1fr; }
  .cat__head { position: static; }
  .grid--all.grid--v { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 820px) {
  .top { grid-template-columns: 1fr auto; }
  .top__nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; gap: 14px; scrollbar-width: none; }
  .hero { min-height: 72svh; }
  .hero--video { margin-top: -84px; min-height: 100svh; }
  .grid, .feat, .cat .grid:not(.grid--v) { grid-template-columns: 1fr; }
  .grid--v, .grid--all.grid--v { grid-template-columns: repeat(2, 1fr); }
  .feat .tile:first-child .tile__media { aspect-ratio: 16 / 9; }
  .tile--big .tile__cap { flex-wrap: wrap; }
  .tile--big .tile__title { width: 100%; }
  .tile--big .tile__go { display: none; }
  .tile__play { display: none; }
  .foot__c { margin-left: 0; width: 100%; }
  .lb__nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
