/* gax studio v4: motyw z v3 (wielka typografia, intro, rysowane linie, linki zamiast przycisków)
   w czerni i bieli, z układem filmów i zdjęć z pierwszej strony (rzędy „justified”, każdy kadr w swoim
   formacie). Uwagi klienta z 10.11: czytelnie na telefonie, bez filmów zmieniających się w miejscu. */

:root {
  --bg: #000;
  --band: #121212;         /* druga czerń: pasy sekcji */
  --ink: #f2f1ee;          /* biel tekstu */
  --dim: #a3a19c;          /* drugi plan, 7:1 na czerni */
  --line: rgba(242, 241, 238, .18);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Familjen Grotesk", system-ui, sans-serif;
  --pad: clamp(18px, 2.4vw, 36px);
  --ease: cubic-bezier(.65, 0, .25, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  --r: 14px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--text); }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: fixed; left: 8px; top: 8px; z-index: 200; padding: 10px 14px; background: var(--ink); color: #000; transform: translateY(-150%); }
.skip:focus { transform: none; }
.logo { width: 100%; height: auto; color: currentColor; }

/* linki tekstowe zamiast przycisków; podkreślenie rysuje się po najechaniu */
.tlink, .ulink {
  display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + .85em) / 0 1px no-repeat; transition: background-size .45s var(--out);
}
.tlink:hover, .ulink:hover { background-size: 100% 1px; }
.tlink--big { font: 800 clamp(22px, 1.9vw, 30px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; background-size: 100% 2px; background-position-y: calc(50% + .7em); }
.tlink--big:hover { background-size: 35% 2px; }
.ulink { min-height: 0; font-size: inherit; background-size: 100% 1px; }

/* rysowane linie: rysują się przy wjeździe na ekran */
.draw { position: absolute; pointer-events: none; overflow: visible; }
.draw path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease); }

/* ------------------------------------------------------------------ intro (raz na wizytę) */
.intro { display: none; }
.intro-on .intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #000; color: var(--ink); animation: intro-out .8s var(--ease) 2.3s forwards; }
.intro-out .intro { animation: intro-out .7s var(--ease) forwards; }
.intro__in { position: relative; display: grid; justify-items: center; gap: 2.4vh; width: min(78vw, 520px); }
.intro .logo { clip-path: inset(100% 0 0 0); animation: intro-logo .9s var(--out) .1s forwards; }
.intro__line { font: 900 clamp(38px, 7vw, 100px)/.9 var(--display); text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateY(30%); animation: intro-up .8s var(--out) .65s forwards; }
.intro .draw--loop { position: relative; width: 70%; height: auto; margin-top: -1vh; }
.intro .draw--loop path { stroke-width: 3.5; animation: draw 1.1s var(--ease) .9s forwards; }
.intro__skip { position: absolute; right: var(--pad); bottom: var(--pad); min-height: 44px; font-size: 15px; }
@keyframes intro-logo { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-up { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes intro-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro-on body { overflow: hidden; }

/* ------------------------------------------------------------------ pasek u góry */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 10px var(--pad); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__logo { width: 96px; }
.bar__nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.bar__nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bar__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar__clock { justify-self: end; font-size: 15px; font-variant-numeric: tabular-nums; }
.bar__menu { display: none; justify-self: end; min-height: 44px; font-size: 16px; font-weight: 600; }
.menu { position: fixed; inset: 0; z-index: 45; display: grid; align-content: center; gap: 28px; padding: 90px var(--pad) var(--pad); background: #000; color: var(--ink); clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); }
.menu[hidden] { display: grid !important; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: grid; }
.menu nav a { font: 900 clamp(56px, 17vw, 120px)/.95 var(--display); text-transform: uppercase; text-decoration: none; }
.menu__foot { font-size: 17px; }
.menu-open .bar { mix-blend-mode: normal; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero__media { position: absolute; inset: 0; }
.hero__media > img, .hero__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media > img { transition: opacity .6s ease; }
.hero.is-playing .hero__media > img { opacity: 0; }
.hero__media::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.hero__words { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); z-index: 2; display: grid; gap: 14px; }
.hero__big { font: 900 clamp(84px, 15vw, 270px)/.82 var(--display); text-transform: uppercase; }
.hero__big span { display: block; }
.hero__u { position: relative; width: max-content; }
.hero .draw--under { left: -1%; bottom: -.1em; width: 103%; height: .2em; color: var(--ink); }
.hero .draw--under path { stroke-width: 6; }
.hero__h1 { font: 600 clamp(19px, 1.5vw, 24px)/1.3 var(--text); margin-top: 18px; }
.hero__lead { font-size: clamp(17px, 1.2vw, 20px); color: #dcdad5; max-width: 44ch; }
.hero__links { display: flex; flex-wrap: wrap; gap: 6px 36px; margin-top: 4px; }
.hero__pause { position: absolute; right: var(--pad); bottom: var(--pad); z-index: 3; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ filmy i zdjęcia: rzędy jak w pierwszej stronie */
.works { padding: clamp(84px, 13vh, 150px) var(--pad) clamp(56px, 9vh, 110px); }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.works__h { font: 900 clamp(76px, 13vw, 230px)/.8 var(--display); text-transform: uppercase; }
.works__stat { color: var(--dim); font-size: 16px; text-align: right; padding-bottom: .4em; }
.works__filters { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 22px; }
.works__filters button { min-height: 44px; font: 800 clamp(22px, 1.8vw, 28px)/1 var(--display); text-transform: uppercase; color: var(--dim); transition: color .3s ease; }
.works__filters button sup { font: 500 13px var(--text); margin-left: 4px; vertical-align: super; }
.works__filters button:hover, .works__filters button[aria-pressed="true"] { color: var(--ink); }
.works__filters button[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.works__more { display: flex; justify-content: center; margin-top: 34px; }

.grid { position: relative; }
.grid.is-animated { transition: height .8s var(--ease); }
.js .grid .prerender { display: none; }
.prerender { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.prerender img { width: 100%; height: auto; border-radius: var(--r); }
.card { position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); transform: translate3d(var(--x), var(--y), 0) scale(var(--s, 1)); opacity: var(--o, 1); }
.grid.is-animated .card { transition: transform .8s var(--ease), width .8s var(--ease), height .8s var(--ease), opacity .45s ease; }
.card.is-out { --s: .95; --o: 0; pointer-events: none; }
.card__link { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r); isolation: isolate; text-decoration: none; background: #111; }
.card__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.card__media > img, .card__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media > img { opacity: 0; transition: opacity .7s ease, transform 1.2s var(--out); }
.card__media > img.is-loaded { opacity: 1; }
.card__link:hover .card__media > img { transform: scale(1.035); }
.vcard__preview { opacity: 0; transition: opacity .5s ease; }
.vcard.is-playing .vcard__preview { opacity: 1; }
.vcard__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .2) 42%, transparent 62%); }
.vcard__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: clamp(14px, 1.4vw, 22px); }
.vcard__text { display: grid; gap: 4px; min-width: 0; }
.vcard__title { font: 900 clamp(26px, 2.4vw, 46px)/.88 var(--display); text-transform: uppercase; overflow-wrap: break-word; }
.vcard--feature .vcard__title { font-size: clamp(56px, 7.4vw, 140px); }
.vcard__meta { font-size: 15px; color: #e6e4df; }
.vcard__dur { font-size: 15px; font-variant-numeric: tabular-nums; color: #e6e4df; flex: none; }
.vcard.is-small .vcard__title { font-size: 24px; }
.vcard.is-small .vcard__meta { display: none; }

/* ------------------------------------------------------------------ co kręcę */
.what { padding: clamp(72px, 11vh, 130px) var(--pad); background: var(--band); }
.what__h { font-size: 16px; font-weight: 600; margin-bottom: 20px; color: var(--dim); }
.what__list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); align-items: end; gap: 24px; padding: 8px 0 14px; border-top: 1px solid var(--line); }
.what__word { font: 900 clamp(56px, 9.4vw, 170px)/.86 var(--display); text-transform: uppercase; transition: color .35s ease, transform .5s var(--out); }
.what__line { color: var(--dim); font-size: 17px; padding-bottom: .5em; }
.what__list li:hover .what__word { color: var(--dim); transform: translateX(.06em); }

/* ------------------------------------------------------------------ o mnie i opinie */
.loud { background: var(--band); padding: clamp(84px, 13vh, 150px) var(--pad); }
.loud__h { font: 900 clamp(76px, 13vw, 230px)/.8 var(--display); text-transform: uppercase; margin-bottom: 36px; }
.loud__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); }
.loud__about { display: grid; gap: 16px; align-content: start; }
.loud__lead { font-size: clamp(21px, 1.5vw, 26px); line-height: 1.4; font-weight: 500; }
.loud__reviews { display: grid; gap: 18px; align-content: start; }
.section__stat { font-size: 15px; color: var(--dim); }
.reviews__list { display: grid; gap: 30px; }
.review { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.review__top { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--dim); }
.review__text { margin: 0; font-size: clamp(19px, 1.35vw, 23px); line-height: 1.5; }
.review__who { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.review__who > div, .review__who > span:not(.review__avatar) { display: grid; }
.review__avatar { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; flex: none; }
.review__avatar--initials { display: grid; place-items: center; border: 1px solid var(--ink); font-weight: 700; font-size: 14px; }
.review__film, .review__src { font-size: 15px; }
.stars { display: inline-flex; gap: 2px; color: rgba(242, 241, 238, .3); }
.stars i { font-style: normal; }
.stars .on { color: var(--ink); }
.stars .half { background: linear-gradient(90deg, var(--ink) 50%, rgba(242, 241, 238, .3) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: inherit; }

/* ------------------------------------------------------------------ pytania */
.faq { padding: clamp(84px, 13vh, 150px) var(--pad); }
.faq h2 { font: 900 clamp(76px, 13vw, 230px)/.8 var(--display); text-transform: uppercase; margin-bottom: 40px; }
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.faq__item { padding: 22px 0 28px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.faq__item h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.faq__item p { color: #d6d4cf; max-width: 60ch; }

/* ------------------------------------------------------------------ kontakt */
.contact { background: var(--band); padding: clamp(84px, 13vh, 150px) var(--pad); overflow: hidden; }
.contact__big { font: 900 clamp(84px, 16vw, 290px)/.8 var(--display); text-transform: uppercase; }
.contact__big span { display: block; }
.contact__c { position: relative; width: max-content; }
.contact .draw--circle { inset: -16% -8% -14% -6%; width: 114%; height: 130%; color: var(--ink); }
.contact .draw--circle path { stroke-width: 5; }
.contact__cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(56px, 9vh, 110px); }
.contact__side { display: grid; gap: 18px; align-content: start; font-size: 19px; }
.form { display: grid; gap: 28px; }
.form__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.field { display: grid; gap: 4px; }
.field label, .toggles legend { font-size: 15px; font-weight: 600; color: var(--dim); }
.field input, .field textarea { width: 100%; font: 400 20px/1.4 var(--text); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(242, 241, 238, .55); border-radius: 0; padding: 8px 0 10px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--ink); padding-bottom: 9px; }
.field__err { font-size: 15px; font-weight: 600; color: #ff9b8a; }
.field__err:empty { display: none; }
.toggles { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toggles legend { width: 100%; margin-bottom: 10px; }
.toggles label { position: relative; }
.toggles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggles span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(242, 241, 238, .55); border-radius: 999px; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.toggles input:checked + span { background: var(--ink); color: #000; border-color: var(--ink); }
.toggles input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.consent label { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { font: 900 clamp(46px, 5vw, 86px)/.9 var(--display); text-transform: uppercase; min-height: 44px; text-align: left; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 3px no-repeat; padding-bottom: 8px; transition: background-size .5s var(--out); }
.send:hover { background-size: 30% 3px; }
.send[disabled] { opacity: .5; cursor: progress; }
.form__status { font-size: 17px; font-weight: 600; min-height: 1.5em; }
.form-done { display: grid; gap: 16px; font-size: 21px; }
.form-done strong { font: 900 clamp(48px, 6vw, 96px)/.9 var(--display); text-transform: uppercase; }

/* ------------------------------------------------------------------ stopka */
.foot { padding: clamp(56px, 8vh, 96px) var(--pad) var(--pad); display: grid; gap: clamp(40px, 6vh, 72px); }
.foot__row { display: grid; grid-template-columns: 1fr auto auto; gap: 24px 48px; align-items: start; font-size: 16px; }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot__row nav a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.foot__row nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__logo { color: var(--ink); display: block; }
.foot__legal { font-size: 14px; color: var(--dim); }
.socials:empty { display: none; }

/* ------------------------------------------------------------------ okna: odtwarzacz, zdjęcia */
html:has(dialog[open]) { overflow: hidden; }
dialog { padding: 0; margin: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: #000; color: var(--ink); }
dialog::backdrop { background: #000; }
.player__bar, .lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px var(--pad); font-size: 15px; font-weight: 500; }
.player[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.player__stage { position: relative; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 0 var(--pad); }
.player__frame { position: relative; justify-self: center; width: min(100%, calc((100dvh - 230px) * var(--ar, 1.7778))); aspect-ratio: var(--ar, 16 / 9); background: #000; }
.player__frame video, .player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__frame.is-youtube video { display: none; }
.player__arrow { font-size: 30px; min-width: 44px; justify-content: center; }
.player__arrow:disabled { opacity: .25; cursor: default; }
.player__info { display: grid; gap: 6px; padding: 18px var(--pad) 24px; max-width: 980px; }
.player__title { font: 900 clamp(38px, 3.4vw, 64px)/.9 var(--display); text-transform: uppercase; }
.player__meta { font-size: 15px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.player__desc:empty, .player__meta:empty { display: none; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__cat { flex: 1; text-align: center; }
.lightbox__stage { position: relative; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 0 clamp(12px, 7vw, 120px); overflow: hidden; touch-action: none; user-select: none; }
.lightbox__stage img { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; background-size: cover; background-position: center; cursor: zoom-in; transform-origin: 0 0; transition: transform .35s var(--out), opacity .45s ease; }
.lightbox__stage img.is-leaving { opacity: 0; }
.lightbox__stage.is-live img { transition: opacity .45s ease; }
.lightbox__stage.is-zoomed img { cursor: zoom-out; }
.lightbox__stage.is-zoomed.is-hover img { transition: transform .15s linear, opacity .45s ease; }
.lightbox__arrow { position: absolute; top: 50%; margin-top: -22px; z-index: 2; font-size: 30px; min-width: 44px; justify-content: center; }
.lightbox__arrow--prev { left: var(--pad); }
.lightbox__arrow--next { right: var(--pad); }
.lightbox__bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding: 12px var(--pad) 22px; min-height: 60px; font-size: 15px; }
.lightbox__exif { font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------------ telefon: film nad tekstem, duże litery */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .bar { grid-template-columns: 1fr auto; padding: 6px 18px; }
  .bar__logo { width: 82px; }
  .bar__nav, .bar__clock { display: none; }
  .bar__menu { display: inline-flex; align-items: center; }
  .hero { height: auto; min-height: 0; padding-top: 58px; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .hero__media::after { display: none; }
  .hero__words { position: static; padding: 26px 18px 10px; gap: 14px; }
  .hero__big { font-size: 23vw; }
  .hero__h1 { font-size: 21px; }
  .hero__lead { font-size: 18px; }
  .hero__links { flex-direction: column; gap: 0; }
  .tlink--big { font-size: 28px; min-height: 52px; }
  .hero__pause { top: calc(58px + 56.25vw - 52px); bottom: auto; right: 12px; color: #fff; }
  .works, .loud, .faq, .contact, .what { padding-left: 18px; padding-right: 18px; }
  .works__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .works__stat { text-align: left; padding: 0; }
  .vcard__title { font-size: 28px; }
  .vcard--feature .vcard__title { font-size: 13vw; }
  .vcard__meta, .vcard__dur { font-size: 15px; }
  .what__list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .what__word { font-size: 16vw; }
  .loud__cols, .contact__cols, .faq__list { grid-template-columns: minmax(0, 1fr); }
  .form__two { grid-template-columns: minmax(0, 1fr); }
  .foot__row { grid-template-columns: minmax(0, 1fr); }
  .lightbox__stage { padding: 0; }
  .lightbox__arrow, .player__arrow { display: none; }
  .player__stage { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .player__frame { width: 100%; max-height: calc(100dvh - 210px); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-on .intro { display: none; }
  .draw path { stroke-dashoffset: 0; transition: none; }
  .what__word, .card__media > img, .tlink, .ulink, .menu, .card, .grid { transition: none; }
}
