/* ==========================================================================
   112VIDEO — główny arkusz stylów
   Spis: 1 fonty · 2 zmienne · 3 baza · 4 efekty (szum/plamy/glow) · 5 intro
         6 nagłówek/HUD · 7 hero · 8 sekcje · 9 portfolio · 10 klienci
         11 zespół · 12 sprzęt · 13 kontakt · 14 stopka · 15 modal · 16 404
         17 animacje wejścia · 18 responsywność · 19 ograniczony ruch
   ========================================================================== */

/* 1. FONTY ---------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  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: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  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: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  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: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. ZMIENNE -------------------------------------------------------------- */
:root {
  --bg: #050505;
  --fg: #ececec;
  --fg-2: #a3a3a3;
  --fg-3: #858585;
  --line: rgba(255, 255, 255, .13);

  /* marginesy boczne: treść ma maks. szerokość, reszta to margines */
  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --gut: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  --hdr: 64px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

  --glow-sm: 0 0 .06em rgba(255, 255, 255, .55), 0 0 .4em rgba(255, 255, 255, .2);
  --glow: 0 0 .04em rgba(255, 255, 255, .65), 0 0 .3em rgba(255, 255, 255, .28), 0 0 1.1em rgba(255, 255, 255, .12);
  --glow-svg: drop-shadow(0 0 1px rgba(255, 255, 255, .85)) drop-shadow(0 0 10px rgba(255, 255, 255, .4)) drop-shadow(0 0 36px rgba(255, 255, 255, .18));

}

/* 3. BAZA ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: #000; color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.intro-lock { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif; font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.modal-open { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono {
  font-family: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
}
.stitle, .svc__t, .card__title, .mem__name, .ct__mail, .ct__soc a, .pm__title, .nf__title, .mq__item span, .pf__more {
  font-family: "Archivo", system-ui, sans-serif; font-stretch: 62%; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0;
}
.glow { text-shadow: var(--glow); }
.wrap { padding-inline: var(--gut); }
.logo { width: 100%; height: auto; aspect-ratio: 49 / 10; color: #fff; }

/* 4. EFEKTY: plamy światła, szum, winieta -------------------------------- */
.fx { display: contents; }
.fx__blobs { position: fixed; inset: -30vh 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .19) 0%, rgba(255, 255, 255, .065) 32%, rgba(255, 255, 255, 0) 68%);
}
.blob--a { width: 80vmax; height: 80vmax; left: -30vmax; top: -10vmax; animation: drift-a 34s ease-in-out infinite alternate; }
.blob--b { width: 90vmax; height: 90vmax; right: -42vmax; top: 45vh; opacity: .75; animation: drift-b 46s ease-in-out infinite alternate; }
.blob--c { width: 70vmax; height: 70vmax; left: 18vw; bottom: -30vmax; opacity: .55; animation: drift-c 58s ease-in-out infinite alternate; }
.blob--cursor {
  width: 46vmax; height: 46vmax; left: 0; top: 0; opacity: 0; transition: opacity 1.2s;
  background: radial-gradient(circle, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 62%);
  transform: translate3d(var(--cx, 50vw), calc(var(--cy, 50vh) + 30vh), 0) translate(-50%, -50%);
}
.has-cursor .blob--cursor { opacity: 1; }
@keyframes drift-a { to { transform: translate3d(18vw, 22vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-24vw, -12vh, 0) scale(.85); } }
@keyframes drift-c { to { transform: translate3d(-14vw, -26vh, 0) scale(1.2); } }

/*
  Ziarno filmowe (jak z analogu):
  - nowy, losowy wzór w każdej klatce (24 kl/s), bez przesuwania tekstury,
  - miękkie, nieregularne grudki (kilka skal szumu), nie ostre piksele,
  - mieszanie "soft-light": najmocniej w półtonach, zanika w czerni i bieli,
  - bardzo delikatna warstwa w cieniach (zadymienie podłoża kliszy),
  - leży POD treścią: tło i hero mają ziarno, a napisy, zdjęcia, filmy i YouTube są czyste.
*/
.fx__film { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: soft-light; opacity: 1; }
.fx__fog { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: .018; background-repeat: repeat; }
.fx__vignette {
  position: fixed; inset: 0; z-index: 94; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 45%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .6) 100%);
}

/* 5. INTRO ---------------------------------------------------------------- */
.intro { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; cursor: pointer; animation: intro-failsafe 0s 6s forwards; }
html.intro-seen .intro, html.no-js .intro { display: none; }
@keyframes intro-failsafe { to { visibility: hidden; pointer-events: none; } }
.intro__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transition: transform 1s var(--ease-io); }
.intro__panel--top { top: 0; }
.intro__panel--bot { bottom: 0; }
.intro__stage { position: relative; width: min(52vw, 560px); aspect-ratio: 49 / 10; transition: opacity .5s, filter .5s; }
.intro__line {
  position: absolute; left: 0; right: 0; top: 45%; height: 1px; background: #fff;
  box-shadow: 0 0 8px #fff, 0 0 30px rgba(255, 255, 255, .6); transform: scaleX(0); transform-origin: left;
}
.intro__logo .logo { filter: var(--glow-svg); }
.intro__logo .logo__top, .intro__logo .logo__bot { transform-box: fill-box; transform: scaleY(0); }
.intro__logo .logo__top { transform-origin: 50% 100%; }
.intro__logo .logo__bot { transform-origin: 50% 0%; }
.intro.is-run .intro__line { animation: intro-line .8s var(--ease-io) .15s forwards; }
.intro.is-run .logo__top, .intro.is-run .logo__bot { animation: intro-open .55s var(--ease-out) 1s forwards; }
.intro.is-run .intro__logo { animation: flicker .5s steps(2) 1s 1; }
@keyframes intro-line { 0% { transform: scaleX(0); } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: .25; } }
@keyframes intro-open { to { transform: scaleY(1); } }
@keyframes flicker { 0% { opacity: .2; } 25% { opacity: 1; } 50% { opacity: .4; } 100% { opacity: 1; } }
.intro.is-out { pointer-events: none; }
.intro.is-out .intro__panel--top { transform: translateY(-101%); }
.intro.is-out .intro__panel--bot { transform: translateY(101%); }
.intro.is-out .intro__stage { opacity: 0; filter: blur(6px); }

/* 6. NAGŁÓWEK + HUD ------------------------------------------------------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gut); color: #fff; mix-blend-mode: difference;
}
.hdr__brand { display: block; width: 78px; }
.hdr__brand .logo { transition: filter .4s; }
.hdr__brand:hover .logo { filter: var(--glow-svg); }
.hdr__nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.hdr__nav a {
  position: relative; text-decoration: none; font-family: "Plex Mono", monospace; font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; transition: text-shadow .3s, opacity .3s; opacity: .7;
}
.hdr__nav a:hover, .hdr__nav a.is-active { opacity: 1; text-shadow: var(--glow-sm); }
.hdr__nav a.is-active::before {
  content: ""; position: absolute; left: -11px; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff;
}
.hdr__menu {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  padding: 7px 13px; font-family: "Plex Mono", monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.hdr__menu-close { display: none; }
.menu-open .hdr__menu-open { display: none; }
.menu-open .hdr__menu-close { display: inline; }

.mnav {
  position: fixed; inset: 0; z-index: 79; background: #000; display: flex; align-items: flex-end;
  padding: calc(var(--hdr) + 20px) var(--gut) 80px; opacity: 0; transition: opacity .4s;
}
.mnav[hidden] { display: none; }
.mnav.is-open { opacity: 1; }
.mnav ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.mnav li { border-top: 1px solid var(--line); }
.mnav a {
  display: block; padding: 12px 0; text-decoration: none; font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 3.2rem); line-height: .95; text-shadow: var(--glow);
}

.hud { position: fixed; inset: 0; z-index: 70; pointer-events: none; color: #fff; mix-blend-mode: difference; }
.hud__bl, .hud__br {
  position: absolute; bottom: 20px; display: flex; align-items: center; gap: 18px;
  font-family: "Plex Mono", monospace; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
}
.hud__bl { left: var(--gut); }
.hud__br { right: var(--gut); }
.hud__tc b { font-weight: 500; font-variant-numeric: tabular-nums; text-shadow: var(--glow-sm); }
.hud__scene { opacity: .6; }
.rec { display: inline-flex; align-items: center; gap: .6em; }
.rec__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px #fff, 0 0 14px rgba(255, 255, 255, .7); animation: rec 1.4s steps(1) infinite;
}
@keyframes rec { 50% { opacity: .12; } }

/* 7. HERO (pełna szerokość, rozmyte krawędzie – bez ramki) ---------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; display: flex; align-items: flex-end; padding-bottom: clamp(80px, 14vh, 140px); }
.hero__bg {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; will-change: transform, opacity;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, rgba(0, 0, 0, .55) 55%, transparent 85%), linear-gradient(to bottom, #000 45%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, rgba(0, 0, 0, .55) 55%, transparent 85%), linear-gradient(to bottom, #000 45%, transparent 98%);
  mask-composite: intersect;
}
.hero__bg img, .hero__bg video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  filter: grayscale(1) contrast(1.35) brightness(.4);
}
.hero__bg img.is-on { opacity: 1; animation: push var(--frame, 6s) linear forwards; }
.hero__bg video { opacity: 1; animation: push 6s linear forwards; }
@keyframes push { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.hero__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: overlay; }
.hero__flash.is-on { animation: flash .22s ease-out; }
@keyframes flash { 0% { opacity: .5; } 100% { opacity: 0; } }
.hero__inner { position: relative; z-index: 3; width: 100%; }
.hero__logo { margin: 0; width: clamp(220px, 34vw, 520px); }
.hero__logo .logo { filter: var(--glow-svg); }
.js .hero__logo { opacity: 0; transform: translateY(16px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.js .hero.is-live .hero__logo { opacity: 1; transform: none; }
.js .hero.is-settled .hero__logo { transition: opacity 1.2s var(--ease-out); }
.hero__cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6;
  color: var(--fg-2); text-decoration: none; display: flex; gap: .7em; align-items: center;
}
.hero__cue span { display: inline-block; animation: bob 1.8s var(--ease-io) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* 8. SEKCJE --------------------------------------------------------------- */
.sec { position: relative; z-index: 3; padding-block: clamp(72px, 11vh, 140px); }
/* „O nas” nie ma tytułu – sekcja zajmuje prawie cały ekran, a tekst stoi na środku,
   więc po kliknięciu w menu widać tylko ją (a nie początek „Usług”). */
.sec--about { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.shead { margin-bottom: clamp(28px, 4vw, 52px); }
.shead__label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--fg-3); }
.shead__label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.stitle { margin: 0; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .9; text-shadow: var(--glow); max-width: 18ch; }

/* O nas */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 16rem); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about__text { margin: 0; font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.2; font-stretch: 85%; font-weight: 500; letter-spacing: -.005em; max-width: 34ch; }
.about__text .w { opacity: .16; transition: opacity .5s, text-shadow .5s; }
.about__text .w.lit { opacity: 1; text-shadow: var(--glow-sm); }
.no-js .about__text .w { opacity: 1; }
.about__aside > div { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); }
.about__aside span { color: var(--fg-3); }
.about__aside b { font-weight: 500; color: var(--fg); }

/* Usługi */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem);
  align-items: center; gap: 24px; padding: clamp(16px, 2vw, 26px) 0; border-bottom: 1px solid var(--line);
}
.svc__row::before {
  content: ""; position: absolute; inset: 0 calc(-1 * clamp(12px, 1.6vw, 22px)); z-index: 2; pointer-events: none; background: #fff; mix-blend-mode: difference;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .7s var(--ease-out);
}
.svc__row:hover::before { transform: scaleY(1); }
.svc__t { margin: 0; font-size: clamp(2rem, 4.4vw, 4rem); line-height: .9; transition: transform .7s var(--ease-out); }
.svc__row:hover .svc__t { transform: translateX(12px); }
.svc__d { margin: 0; color: var(--fg-2); max-width: 34ch; font-size: .95rem; }

/* 9. PORTFOLIO ------------------------------------------------------------ */
.pf__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.pf__filters button {
  background: transparent; border: 1px solid var(--line); color: var(--fg-2); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; transition: all .35s;
}
.pf__filters button:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.pf__filters button.is-on { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 22px rgba(255, 255, 255, .3); }

.pf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.4vw, 52px) clamp(14px, 1.8vw, 24px); align-items: start; }
.card { min-width: 0; }
.card.is-hidden { display: none; }
.card.is-enter { animation: card-in .7s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.card__hit { display: block; text-decoration: none; color: inherit; }
.card__media { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0d0d; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.03);
  filter: grayscale(1) contrast(1.2) brightness(.78);
  transition: filter .8s var(--ease-out), transform 1.4s var(--ease-out);
}
.card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55)); }
.card__hit:hover img, .card__hit:focus-visible img { filter: grayscale(0) contrast(1.05) brightness(1); transform: scale(1.07); }
.card__play {
  position: absolute; left: 50%; top: 50%; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px; background: #000; border: 1px solid rgba(255, 255, 255, .7); color: #fff;
  box-shadow: 0 0 26px rgba(255, 255, 255, .22); opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .4s, transform .6s var(--ease-out);
}
.card__play i { width: 8px; height: 9px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.card__hit:hover .card__play, .card__hit:focus-visible .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--fg-3); }
.card__title { margin: 6px 0 2px; font-size: clamp(1.25rem, 1.7vw, 1.7rem); line-height: .95; transition: text-shadow .4s; }
.card__hit:hover .card__title { text-shadow: var(--glow); }
.card__client { margin: 0; color: var(--fg-2); font-size: .9rem; }

.pf__morewrap { margin-top: clamp(28px, 3.5vw, 48px); }
.pf__more {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0;
  border-block: 1px solid var(--line); text-decoration: none; color: var(--fg);
  font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: .95; transition: padding .6s var(--ease-out), text-shadow .4s;
}
.pf__more i { font-style: normal; font-family: "Plex Mono", monospace; font-size: .9rem; transition: transform .5s var(--ease-out); }
.pf__more:hover { padding-left: 10px; text-shadow: var(--glow); }
.pf__more:hover i { transform: translate(4px, -4px); }

/* 10. KLIENCI ------------------------------------------------------------- */
.mq { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(12px, 1.6vw, 20px); }
.mq__track { display: flex; width: max-content; will-change: transform; }
.mq__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.mq__item { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); }
.mq__item::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 10px #fff, 0 0 24px rgba(255, 255, 255, .5); }
.mq__item span { font-size: clamp(1.8rem, 4vw, 3.8rem); line-height: 1; white-space: nowrap; text-shadow: var(--glow); }
.mq__item.is-outline span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .75); text-shadow: none; }
.mq__item img { height: clamp(28px, 3.4vw, 48px); width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .9; }

/* 11. EKIPA --------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 48px 24px; }
.team--solo { grid-template-columns: 1fr; }
.team--solo .mem { display: grid; grid-template-columns: minmax(220px, 4fr) 7fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.mem__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #0d0d0d; max-width: 400px; }
.mem__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(.9); transition: transform 1.4s var(--ease-out); }
.mem:hover .mem__photo img { transform: scale(1.04); }
.mem__body { padding-top: 14px; }
.mem__role { margin: 0; color: var(--fg-3); }
.mem__name { margin: 8px 0 0; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: .9; text-shadow: var(--glow); }
.team--solo .mem__name { font-size: clamp(2.4rem, 4.6vw, 4.2rem); }
.mem__nick { margin: 10px 0 0; color: var(--fg-2); }
.mem__bio { margin: 18px 0 0; color: var(--fg-2); max-width: 46ch; line-height: 1.65; }
.mem__soc { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 22px 0 0; padding: 0; }
.mem__soc a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s, text-shadow .3s; }
.mem__soc a:hover { border-color: #fff; text-shadow: var(--glow-sm); }

/* 12. SPRZĘT -------------------------------------------------------------- */
.gear { display: grid; grid-template-columns: minmax(200px, 4fr) 8fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.gear--noimg { grid-template-columns: 1fr; }
.gear__photo { position: sticky; top: 100px; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #0d0d0d; }
.gear__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(.9); }
.gear__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(24px, 3.4vw, 48px); }
.gear__cat { margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.gear__grp ul { list-style: none; margin: 0; padding: 0; }
.gear__item { padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.gear__row { display: flex; align-items: baseline; gap: 10px; transition: transform .5s var(--ease-out), text-shadow .3s; }
.gear__row:hover { transform: translateX(8px); text-shadow: var(--glow-sm); }
.gear__item[data-peek] > .gear__row { cursor: crosshair; }
.gear__name { font-size: clamp(1rem, 1.2vw, 1.12rem); font-stretch: 88%; font-weight: 600; line-height: 1.25; }
.gear__dots { flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(255, 255, 255, .25); transform: translateY(-4px); }
.gear__desc { color: var(--fg-3); white-space: nowrap; font-size: .66rem; }
.gear__sub { margin: 8px 0 2px 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.gear__subcat { margin: 4px 0 2px; color: var(--fg-3); font-size: .64rem; }
.gear__item--sub { padding: 7px 0; border-bottom: 0; }
.gear__item--sub .gear__name { font-size: .95rem; font-weight: 500; color: var(--fg-2); }
.peek {
  position: fixed; left: 0; top: 0; z-index: 60; width: 240px; aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity .3s; box-shadow: 0 0 60px rgba(255, 255, 255, .12);
}
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2); }

/* 13. KONTAKT ------------------------------------------------------------- */
.ct__mail {
  display: block; width: fit-content; max-width: 100%; text-decoration: none; color: var(--fg);
  font-size: clamp(1.7rem, 4.6vw, 4.6rem); line-height: .9; overflow-wrap: anywhere; text-shadow: var(--glow);
  transition: letter-spacing .8s var(--ease-out), text-shadow .5s;
}
.ct__mail:hover { letter-spacing: .01em; text-shadow: 0 0 .04em #fff, 0 0 .25em rgba(255, 255, 255, .5), 0 0 1em rgba(255, 255, 255, .25); }
.ct__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); margin-top: clamp(40px, 5vw, 72px); padding-top: 36px; border-top: 1px solid var(--line); }
.ct__soc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ct__soc a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: .95; transition: padding .6s var(--ease-out), text-shadow .4s;
}
.ct__soc i { font-style: normal; font-family: "Plex Mono", monospace; font-size: .9rem; transition: transform .5s var(--ease-out); }
.ct__soc a:hover { padding-left: 10px; text-shadow: var(--glow); }
.ct__soc a:hover i { transform: translate(4px, -4px); }
.ct__note { color: var(--fg-2); margin-top: 20px; }

.ct__form { position: relative; display: grid; gap: 24px; }
.fld { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fld label, .fld legend { color: var(--fg-3); }
.fld input, .fld textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); border-radius: 0;
  color: var(--fg); font: inherit; font-size: 1.02rem; padding: 9px 0; outline: none; transition: border-color .3s, box-shadow .3s;
}
.fld textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.fld input:focus, .fld textarea:focus { border-color: #fff; box-shadow: 0 1px 0 #fff, 0 14px 24px -18px rgba(255, 255, 255, .9); }
.fld.has-err input, .fld.has-err textarea { border-color: #fff; border-bottom-style: dashed; }
.fld__err { min-height: 1em; font-family: "Plex Mono", monospace; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.fld__err:not(:empty)::before { content: "✕ "; }
.fld--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fld--chips legend { width: 100%; margin-bottom: 8px; float: left; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-family: "Plex Mono", monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); transition: all .3s;
}
.chip:hover span { border-color: rgba(255, 255, 255, .5); color: #fff; }
.chip input:checked + span { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 22px rgba(255, 255, 255, .3); }
.chip input:focus-visible + span { outline: 1px solid #fff; outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct__send { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.ct__status { margin: 0; color: var(--fg-2); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid #fff; background: #fff; color: #000; text-decoration: none;
  font-family: "Plex Mono", monospace; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 0 30px rgba(255, 255, 255, .25); transition: background .35s, color .35s, box-shadow .35s;
}
.btn .rec__dot { background: #000; box-shadow: none; }
.btn:hover { background: transparent; color: #fff; box-shadow: 0 0 40px rgba(255, 255, 255, .35), inset 0 0 18px rgba(255, 255, 255, .15); }
.btn:hover .rec__dot { background: #fff; box-shadow: 0 0 8px #fff; }
.btn[disabled] { opacity: .5; cursor: wait; }

/* 14. STOPKA -------------------------------------------------------------- */
.ftr { position: relative; z-index: 3; padding: clamp(60px, 9vw, 120px) var(--gut) 70px; }
.ftr__logo { width: clamp(180px, 26vw, 380px); }
.ftr__logo .logo { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .8)) drop-shadow(0 0 16px rgba(255, 255, 255, .22)); }
.ftr__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--line); font-family: "Plex Mono", monospace; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3);
}
.ftr__row a { color: var(--fg-2); text-decoration: none; transition: color .3s, text-shadow .3s; }
.ftr__row a:hover { color: #fff; text-shadow: var(--glow-sm); }
.ftr__soc, .ftr__links { display: flex; gap: 22px; }

/* 15. MODAL PROJEKTU ------------------------------------------------------ */
.pm { position: fixed; inset: 0; z-index: 97; display: grid; place-items: center; }
.pm[hidden] { display: none; }
.pm__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .94); opacity: 0; transition: opacity .45s; }
.pm.is-open .pm__bg { opacity: 1; }
.pm__inner {
  position: relative; width: min(1040px, calc(100% - 2 * var(--pad)), calc((100vh - 320px) * 1.7778)); min-width: min(100% - 2 * var(--pad), 560px);
  max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 64px 0 44px;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .7s var(--ease-out); scrollbar-width: thin;
}
.pm.is-open .pm__inner { opacity: 1; transform: none; }
.pm__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; color: var(--fg-2); }
.pm__close { background: none; border: 0; cursor: pointer; padding: 6px 0; color: #fff; font-family: "Plex Mono", monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.pm__close kbd { font: inherit; border: 1px solid var(--line); padding: 2px 6px; margin-left: 8px; color: var(--fg-3); }
.pm__close:hover { text-shadow: var(--glow-sm); }
.pm__player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 0 100px rgba(255, 255, 255, .07); }
.pm__player[hidden] { display: none; }
.pm__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pm__bar { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; z-index: 2; transition: transform 1s var(--ease-io) .15s; }
.pm__bar--t { top: 0; }
.pm__bar--b { bottom: 0; }
.pm.is-open .pm__bar--t { transform: translateY(-100%); }
.pm.is-open .pm__bar--b { transform: translateY(100%); }
/* galeria zdjęć w oknie projektu */
.pm__gal[hidden] { display: none; }
.pm__player:not([hidden]) + .pm__gal { margin-top: 14px; }
.pm__stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 0 100px rgba(255, 255, 255, .07); touch-action: pan-y; user-select: none; }
.pm__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; -webkit-user-drag: none; }
.pm__stage img.is-swap { opacity: .25; }
.pm__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; font: 400 1rem "Plex Mono", monospace; transition: background .2s, box-shadow .2s, opacity .2s; }
.pm__nav:hover { background: #fff; color: #000; box-shadow: var(--glow-sm); }
.pm__nav--prev { left: 14px; }
.pm__nav--next { right: 14px; }
.pm__count { position: absolute; right: 14px; bottom: 12px; font-size: .62rem; letter-spacing: .14em; color: #fff; text-shadow: 0 0 8px #000; }
.pm__gal.is-single .pm__nav, .pm__gal.is-single .pm__count, .pm__gal.is-single .pm__thumbs { display: none; }
.pm__exif { display: grid; gap: 10px; margin: 10px 0 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pm__exif[hidden] { display: none; }
.pm__exif-row { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.pm__exif-row > div { display: grid; gap: 2px; }
.pm__exif dt { font: 400 .56rem "Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.pm__exif dd { margin: 0; font: 400 .78rem "Plex Mono", monospace; color: #fff; }
.pm__thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.pm__thumbs button { flex: 0 0 auto; width: 78px; aspect-ratio: 3 / 2; padding: 0; border: 1px solid transparent; background: #000; cursor: pointer; opacity: .45; transition: opacity .2s, border-color .2s; }
.pm__thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.pm__thumbs button:hover, .pm__thumbs button.is-on { opacity: 1; }
.pm__thumbs button.is-on { border-color: #fff; }
.pm__thumbs button.is-on img { filter: none; }
@media (max-width: 700px) { .pm__nav { width: 38px; height: 38px; } .pm__nav--prev { left: 8px; } .pm__nav--next { right: 8px; } }
/* karta projektu ze zdjęciami */
.card__count { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, .9); }
.card[data-kind="photos"] .card__play i { clip-path: none; width: 9px; height: 7px; background: none; border: 1.5px solid currentColor; border-radius: 1px; }

.pm__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(28px, 5vw, 64px); margin-top: 26px; }
.pm__title { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: .9; text-shadow: var(--glow); }
.pm__client { margin: 10px 0 0; color: var(--fg-2); }
.pm__desc { margin: 0; color: var(--fg-2); line-height: 1.65; align-self: end; }
.pm__credits { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 24px; margin: 6px 0 0; border-top: 1px solid var(--line); }
.pm__credits div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pm__credits dt { font-family: "Plex Mono", monospace; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.pm__credits dd { margin: 4px 0 0; }
[data-empty] { display: none !important; }

/* 16. 404 / podstrony ----------------------------------------------------- */
.nf { position: relative; z-index: 3; min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 18px; padding-block: 120px; }
.nf__meta { color: var(--fg-3); margin: 0; }
.nf__title { margin: 0; font-size: clamp(3.4rem, 11vw, 9rem); line-height: .82; }
.nf__text { margin: 0 0 14px; color: var(--fg-2); font-size: 1.05rem; }
.sec--page { padding-top: calc(var(--hdr) + 60px); }

/* 17. ANIMACJE WEJŚCIA (tylko z JS) -------------------------------------- */
.js [data-reveal="up"] { opacity: 0; transform: translateY(36px); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="up"].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="mask"] { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-io); }
.js [data-reveal="mask"].is-in { clip-path: inset(-40% -12% -40% -12%); }
.js [data-reveal="words"] .w { display: inline-block; opacity: 0; transform: translateY(.35em) skewY(4deg); filter: blur(10px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.js [data-reveal="words"].is-in .w { opacity: 1; transform: none; filter: none; }

/* 18. RESPONSYWNOŚĆ ------------------------------------------------------- */
@media (max-width: 1000px) {
  .hdr__nav { display: none; }
  .hdr__menu { display: inline-block; }
  .gear__list { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .svc__row { grid-template-columns: 1fr; gap: 8px; }
  .pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gear { grid-template-columns: 1fr; }
  .gear__photo { position: relative; top: 0; max-width: 420px; aspect-ratio: 4 / 3; }
  .ct__grid { grid-template-columns: 1fr; }
  .team--solo .mem { grid-template-columns: 1fr; }
  .team--solo .mem__photo { max-width: 360px; }
  .pm__body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --hdr: 56px; }
  .pf__grid { grid-template-columns: 1fr; }
  .hud__scene { display: none; }
  .gear__desc { white-space: normal; text-align: right; }
  .blob--cursor, .peek { display: none; }
  .hero__logo { width: min(64vw, 300px); }
}

/* 19. OGRANICZONY RUCH ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .intro { display: none; }
  .js [data-reveal], .js [data-reveal] .w, .js .hero__logo { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .about__text .w { opacity: 1; }
}

/* 20. PORTFOLIO PRZEWIJANE POZIOMO (komputer) ----------------------------- */
.pf-pin.is-h { position: relative; }
.pf-pin.is-h .pf-pin__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding-top: var(--hdr); padding-bottom: 44px;
}
.pf-pin.is-h .shead { margin-bottom: clamp(18px, 2.4vw, 32px); }
.pf-pin.is-h .pf__morewrap { margin-top: clamp(18px, 3.5vh, 40px); }
.pf-pin.is-h .pf { padding-inline: 0; }
.pf-pin.is-h .pf__filters { padding-inline: var(--gut); }
.pf-pin.is-h .pf__grid {
  display: flex; align-items: flex-start; gap: clamp(20px, 2.6vw, 40px); width: max-content;
  padding-inline: var(--gut); will-change: transform; transform: translate3d(var(--pf-x, 0px), 0, 0);
}
/* wysokość kadru (--pf-mh) liczy skrypt tak, żeby całość mieściła się w oknie */
.pf-pin.is-h .card { flex: 0 0 auto; width: calc(var(--pf-mh, 40vh) * 16 / 9); margin: 0; }
.pf-pin.is-h .card .card__media { aspect-ratio: auto; height: var(--pf-mh, 40vh); max-height: none; }
.pf-pin.is-h .card.is-hidden { display: none; }
.sec--portfolio:has(.pf-pin.is-h) { padding-block: 0 clamp(40px, 6vh, 80px); }

/* 21. KURSOR „ODTWÓRZ” ---------------------------------------------------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 85; pointer-events: none; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: #000;
  font-family: "Plex Mono", monospace; font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 0 40px rgba(255, 255, 255, .45); opacity: 0; transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(.3);
  transition: opacity .25s, transform .35s var(--ease-out);
}
.cursor.is-on { opacity: 1; transform: translate3d(var(--x), var(--y), 0) scale(1); }
.cursor.is-down { transform: translate3d(var(--x), var(--y), 0) scale(.85); }
.cursor span::before { content: ""; display: inline-block; width: 7px; height: 8px; margin-right: 6px; background: #000; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.has-play-cursor .card__play { display: none; }
.has-play-cursor .card__hit { cursor: none; }

/* 22. PRZEJŚCIA MIĘDZY STRONAMI – „cięcie” ---------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-cut-out .26s ease-in both; }
::view-transition-new(root) { animation: vt-cut-in .7s cubic-bezier(.77, 0, .18, 1) both; }
@keyframes vt-cut-out { to { opacity: 0; filter: brightness(1.8) blur(2px); } }
@keyframes vt-cut-in { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .cursor { display: none; }
}

/* 23. STRONY TEKSTOWE (polityka prywatności) ------------------------------ */
.legal__body { max-width: calc(72ch + 2 * var(--gut)); color: var(--fg-2); line-height: 1.75; }
.legal__body h2 { margin: 40px 0 10px; color: var(--fg); font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .01em; }
.legal__body ul { padding-left: 1.2em; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--fg); }
.ct__legal { margin: 0; color: var(--fg-3); font-size: .8rem; flex-basis: 100%; }
.ct__legal a { color: var(--fg-2); }
