/* Mateusz Czapłygin — Fotografia & Film. Style strony. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-standard-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-ext-standard-italic.woff2) format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Instrument Sans"; font-style: italic; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url(../fonts/instrument-sans-latin-standard-italic.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/GeistMono-Regular.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/GeistMono-Medium.woff2) format("woff2"); }

html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: sections alternate paper / graphite like frames on a contact sheet; type sits on hard edges, photos overlap the type. Single deliberate look (brand), colors set explicitly. */
:root {
  --paper: #e8e7e5;
  --graphite: #2c2c2b;
  --black: #121212;
  --ink: #2b2b2a;
  --ink-d: #eceae5;
  --muted: #5e5d5a;
  --muted-d: #a3a19c;
  --line: #b9b7b2;
  --line-d: #4a4948;
  --mist: #cfcdc8;
  --amber: #db8040;
  --amber-text: #9c4d18;
  --sea: #2e5e6e;
  --ice: #a9c6d3;
  --display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --vb: 0px;
  --vs: 0deg;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.s-dark :focus-visible { outline-color: var(--ice); }

/* grain over the whole page */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .11; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* sections */
.s-light { --bg: var(--paper); --fg: var(--ink); --mut: var(--muted); --ln: var(--line); background: var(--bg); color: var(--fg); }
.s-dark { --bg: var(--graphite); --fg: var(--ink-d); --mut: var(--muted-d); --ln: var(--line-d); background: var(--bg); color: var(--fg); }
.s-black { --bg: var(--black); --fg: var(--ink-d); --mut: var(--muted-d); --ln: #333331; background: var(--bg); color: var(--fg); }
.wrap {
  max-width: 1480px; margin: 0 auto;
  padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(96px, 12vw, 168px); position: relative; }

/* type */
.meta { font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.caption { font-size: 12px; line-height: 1.45; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; margin: 0; max-width: 30ch; }
.h-display, .h1, .h2 { margin: 0; font-weight: 400; text-transform: uppercase; text-wrap: balance; }
.h-display { font-size: clamp(56px, 13.5vw, 196px); line-height: .86; letter-spacing: -.05em; font-stretch: 92%; }
.h1 { font-size: clamp(44px, 9vw, 120px); line-height: .9; letter-spacing: -.045em; font-stretch: 92%; }
.h2 { font-size: clamp(34px, 5.5vw, 64px); line-height: .95; letter-spacing: -.035em; }
.h1 em, .h-display em, .h2 em { font-style: italic; }
.indent { display: block; padding-left: .9em; }
.lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.35; letter-spacing: -.005em; max-width: 34ch; margin: 0; }
.rule { height: 1px; background: var(--ln); border: 0; margin: 0; }

/* header */
.top {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding-top: calc(env(safe-area-inset-top, 0px) + 16px); padding-bottom: 16px;
  color: #e8e7e5; mix-blend-mode: difference;
  transition: transform .7s var(--ease);
}
.top.hide { transform: translateY(-110%); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.wm { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; line-height: 1; }
.wm b { font-weight: 500; font-stretch: 85%; letter-spacing: -.02em; text-transform: uppercase; font-size: 19px; }
.wm span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; gap: 22px; }
.nav a, .top-aside { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.top-aside { justify-self: end; display: flex; gap: 18px; align-items: center; font-variant-numeric: tabular-nums; }
.rec { display: inline-flex; align-items: center; gap: 6px; }
.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0d67a5; animation: blink 1.6s steps(2) infinite; }
/* #0d67a5 under the header's difference blend renders as the brand amber on paper */
.top-logo { display: block; height: 34px; color: inherit; flex: none; }
.top-logo svg { display: block; height: 100%; width: auto; }
.foot-logo { width: min(300px, 62vw); color: var(--ink-d); }
.foot-logo svg { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .top-logo { height: 28px; } .wm b { font-size: 16px; } .top-aside { gap: 14px; } }
@media (max-width: 370px) { .top-logo { height: 24px; } .wm b { font-size: 14.5px; } .wm span { font-size: 9px; } }
.top.open { mix-blend-mode: normal; color: var(--ink); }
@keyframes blink { 50% { opacity: .2; } }
.menu-btn { display: none; background: none; border: 1px solid currentColor; color: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; }

/* photos (canvas placeholders) */
.shot { position: relative; overflow: hidden; background: var(--mist); max-width: 100%; }
.shot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: grayscale(1) contrast(.95) blur(var(--vb)); transform: skewY(var(--vs)) scale(1.001); transition: filter .9s var(--ease); }
.shot.color canvas { filter: blur(var(--vb)); }
.shot .tag { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #fff; mix-blend-mode: difference; opacity: .8; }
a:hover .shot canvas, .shot:hover canvas { filter: grayscale(0) blur(var(--vb)); }

/* reveal */
[data-r] { transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
[data-r].pre { opacity: 0; filter: blur(14px); transform: translateY(40px); }
.shot[data-r] { transition: clip-path 1.4s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); clip-path: inset(0 0 0 0); }
.shot[data-r].pre { opacity: 1; filter: none; transform: none; clip-path: inset(100% 0 0 0); }
.shot[data-r] canvas { transition: filter .9s var(--ease), transform 1.6s var(--ease); }
.shot[data-r].pre canvas { transform: scale(1.12); }

/* hero */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 120px); padding-bottom: 96px; overflow: hidden; }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); }
.hero h1 { position: relative; z-index: 2; }
.hero h1 .ln { display: block; overflow: hidden; padding-top: .16em; margin-top: -.16em; padding-bottom: .06em; }
.hero .h-display { font-size: clamp(48px, 10vw, 152px); }
.hero h1 .ln > span { display: inline-block; animation: rise 1.4s var(--ease) both; }
.hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(70%); filter: blur(12px); opacity: 0; } to { transform: none; filter: blur(0); opacity: 1; } }
.hero-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-top: calc(clamp(48px, 10vw, 152px) * -.4); }
.hero-shot { aspect-ratio: 4 / 3; }
.hero-side { display: grid; gap: 28px; padding-bottom: 8px; }
.hero-side .rule { margin-bottom: 4px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; }
.cta { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; text-transform: uppercase; position: relative; padding-bottom: 6px; letter-spacing: -.02em; font-size: 22px; line-height: 1; color: var(--fg); }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform-origin: left; transition: transform .8s var(--ease); }
.cta:hover::after { transform: scaleX(.3); }
.cta .ar { transition: transform .6s var(--ease); font-size: .8em; }
.cta:hover .ar { transform: translateX(8px); }
.cta.alt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--mut); }
.note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }

/* o mnie */
.about { text-align: center; }
.about .h1 { margin-bottom: 40px; }
.about .rule { margin-bottom: 48px; }
.about .lead { margin: 0 auto 56px; max-width: 40ch; text-transform: uppercase; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: .01em; }
.about .shot { width: min(240px, 60vw); aspect-ratio: 1; margin: 0 auto 28px; }
.about .caption { margin: 0 auto 32px; }

/* visual language */
.vl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; }
.vl-text { display: grid; gap: 28px; align-content: start; }
.vl-text .caption { color: var(--mut); margin-top: 40px; }
.vl-text .h1 { position: relative; z-index: 2; font-size: clamp(44px, 7vw, 104px); }
.vl-pics { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; align-items: start; }
.vl-pics .shot:first-child { aspect-ratio: 10 / 16; margin-top: 18%; }
.vl-pics .shot:last-child { aspect-ratio: 4 / 5; }

/* jak pracuję */
.how { padding: 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.how > .shot { min-height: 640px; }
.how-body { padding-block: clamp(80px, 9vw, 140px); padding-left: clamp(24px, 4vw, 64px); padding-right: max(40px, env(safe-area-inset-right, 0px)); display: grid; gap: 72px; align-content: center; }
.how-body .h1 { margin-left: calc(-1 * clamp(80px, 12vw, 220px)); position: relative; z-index: 2; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.point { display: grid; gap: 16px; align-content: start; }
.point:nth-child(2) { margin-top: 64px; }
.point:nth-child(3) { margin-top: 128px; }
.point .num { font-size: 64px; line-height: .95; letter-spacing: -.035em; font-weight: 400; font-stretch: 85%; }
.point .caption { max-width: 26ch; }

/* usługi */
.svc-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; flex-wrap: wrap; margin-bottom: 72px; }
.svc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; }
.svc a { display: grid; gap: 8px; text-decoration: none; align-content: start; padding-top: 18px; border-top: 1px solid var(--ln); }
.svc h3 { margin: 0; font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; display: flex; gap: 8px; align-items: baseline; }
.svc h3::after { content: "→"; font-size: .7em; opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.svc a:hover h3::after { opacity: 1; transform: none; }
.svc p { margin: 0; font-size: 12px; line-height: 1.45; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--mut); }
.svc-pics { display: grid; grid-template-columns: 3fr 2fr 4fr; gap: 24px; margin-top: 96px; align-items: start; }
.svc-pics .shot:nth-child(1) { aspect-ratio: 4 / 3; }
.svc-pics .shot:nth-child(2) { aspect-ratio: 3 / 4; margin-top: 96px; }
.svc-pics .shot:nth-child(3) { aspect-ratio: 1; }

/* projekty */
.proj-head { display: grid; gap: 16px; margin-bottom: 72px; }
.proj-head .rule { margin-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 24px; }
.tile { display: grid; gap: 14px; text-decoration: none; align-content: start; }
.tiles .tile:nth-child(3n+2) { margin-top: 96px; }
.tile .shot { aspect-ratio: 4 / 5; }
.tile .row { display: flex; justify-content: space-between; gap: 12px; }
.tile h3 { margin: 0; font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.tile .shot canvas { transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.tile:hover .shot canvas { transform: scale(1.04); }
.more { margin-top: 80px; display: flex; justify-content: flex-end; }

/* filmy */
.films { padding-block: 0; }
.perf { height: 30px; background: var(--black); position: relative; border-block: 1px solid #262625; }
.perf::before { content: ""; position: absolute; inset: 8px 0; background: repeating-linear-gradient(90deg, transparent 0 20px, #3a3a38 20px 34px, transparent 34px 48px); }
.films .inner { padding-block: clamp(80px, 9vw, 140px); }
.films-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 64px; }
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vid { display: block; text-decoration: none; color: var(--ink-d); background: #000; }
.vid.big { grid-column: 1 / -1; }
.vid .frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.vid .frame .shot { position: absolute; inset: 0; }
.vid .frame .shot canvas { transition: transform 1.2s var(--ease), filter .9s var(--ease); }
.vid:hover .frame .shot canvas { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 1.5px solid #e8e7e5; display: grid; place-items: center; z-index: 3; transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.vid.big .play { width: 108px; height: 108px; margin: -54px 0 0 -54px; }
.play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #e8e7e5; }
.vid:hover .play { background: var(--amber); border-color: var(--amber); transform: scale(1.06); }
.vid:hover .play::before { border-left-color: var(--ink); }
.vid .bar { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); background: var(--black); }
.vid .bar strong { font-weight: 400; color: var(--ink-d); }
.vid .bar span { white-space: nowrap; }
.films .note { margin-top: 28px; display: block; }

/* współprace */
.collab-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: 96px; }
.collab-grid .h1 em { display: block; padding-left: 1.1em; }
.collab-side { display: grid; gap: 24px; }
.marquee { overflow: hidden; border-block: 1px solid var(--ln); padding-block: 28px; }
.track { display: flex; width: max-content; gap: 0; will-change: transform; }
.track span { font-size: clamp(36px, 6vw, 80px); line-height: 1; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; }
.track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); margin: 0 clamp(24px, 3vw, 48px); flex: none; }
.collab-pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 96px; }
.collab-pics .shot { aspect-ratio: 1; }
.collab-pics .shot:nth-child(even) { margin-top: 48px; }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; margin-top: 64px; }
form { display: grid; gap: 22px; }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--ln); width: fit-content; max-width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease); }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.f { display: grid; gap: 8px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
.f label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.f input, .f textarea, .f select { font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0; width: 100%; }
.f textarea { resize: vertical; min-height: 96px; }
.f input:focus, .f textarea:focus { outline: none; border-bottom-color: var(--ink); }
.submit { justify-self: start; display: inline-flex; gap: 14px; align-items: baseline; background: var(--ink); color: var(--paper); border: 0; font: inherit; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; padding: 16px 24px; cursor: pointer; transition: background .5s var(--ease), color .5s var(--ease); }
.submit:hover { background: var(--amber); color: var(--ink); }
.sent { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink); border-left: 2px solid var(--amber); padding: 10px 14px; background: #dcdad6; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--ln); }
.rows li:first-child { border-top: 1px solid var(--ln); }
.rows .v { font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -.01em; overflow-wrap: anywhere; user-select: all; }
.call { margin-top: 32px; display: grid; gap: 12px; padding: 24px; background: #dcdad6; }
.call p { margin: 0; font-size: 15px; line-height: 1.5; }

/* footer */
footer { padding-block: 64px calc(48px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.foot .big { font-size: clamp(40px, 7vw, 96px); line-height: .9; letter-spacing: -.045em; text-transform: uppercase; font-stretch: 88%; }
.sygnet { --l: 16px; --w: 1.5px; position: relative; width: 72px; height: 72px; display: grid; place-items: center; font-weight: 500; font-stretch: 85%; font-size: 26px; letter-spacing: -.04em; color: var(--ink-d);
  background:
    linear-gradient(currentColor 0 0) 0 0 / var(--l) var(--w), linear-gradient(currentColor 0 0) 0 0 / var(--w) var(--l),
    linear-gradient(currentColor 0 0) 100% 0 / var(--l) var(--w), linear-gradient(currentColor 0 0) 100% 0 / var(--w) var(--l),
    linear-gradient(currentColor 0 0) 0 100% / var(--l) var(--w), linear-gradient(currentColor 0 0) 0 100% / var(--w) var(--l),
    linear-gradient(currentColor 0 0) 100% 100% / var(--l) var(--w), linear-gradient(currentColor 0 0) 100% 100% / var(--w) var(--l);
  background-repeat: no-repeat; }
.sygnet::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.foot-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ln); justify-content: space-between; }

/* responsive */
@media (max-width: 1100px) {
  .svc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .how > .shot { min-height: 0; aspect-ratio: 16 / 10; }
  .how-body { padding-left: max(40px, env(safe-area-inset-left, 0px)); }
  .how-body .h1 { margin-left: 0; margin-top: 0; }
}
@media (max-width: 820px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .top .wrap { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .nav.open { display: grid; position: fixed; inset: 0; background: var(--paper); color: var(--ink); mix-blend-mode: normal; padding: 120px 24px; gap: 18px; z-index: -1; }
  .nav.open a { font-family: var(--display); font-size: 40px; letter-spacing: -.03em; }
  .menu-btn { display: inline-block; }
  .top-aside .tc { display: none; }
  .hero-body, .vl, .collab-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-body { margin-top: 24px; }
  .points { grid-template-columns: 1fr; gap: 40px; }
  .point:nth-child(n) { margin-top: 0; }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-pics { grid-template-columns: 1fr 1fr; }
  .svc-pics .shot:nth-child(3) { display: none; }
  .svc-pics .shot:nth-child(2) { margin-top: 48px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .tiles .tile:nth-child(n) { margin-top: 0; }
  .tiles .tile:nth-child(even) { margin-top: 48px; }
  .tile h3 { font-size: 20px; }
  .vids { grid-template-columns: 1fr; }
  .collab-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: 1fr; }
  .how-body { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .how-body .h1 { margin-top: 0; }
  .how { padding: 0; }
  .rows li { grid-template-columns: 1fr; gap: 4px; }
}

/* marki — logotypy rozsypują się z jednego punktu */
.trust { padding-block: clamp(56px, 7vw, 104px); overflow: hidden; }
.trust-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.scatter { position: relative; list-style: none; margin: 0; padding: 0; height: clamp(380px, 38vw, 540px); border-bottom: 1px solid var(--line); }
.sc-item { position: absolute; left: clamp(calc(var(--wd) / 2), var(--x), calc(100% - var(--wd) / 2)); top: var(--y); width: var(--wd); transform: translate(-50%, -50%); will-change: transform, filter, opacity; }
.sc-item img { display: block; width: 100%; height: auto; opacity: .92; }
.sc-name { display: block; font-size: clamp(18px, 2vw, 28px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; text-align: center; white-space: nowrap; }
.scatter.js .sc-item { opacity: 0; }
@media (max-width: 700px) {
  .scatter { height: calc(var(--n) * 78px + 48px); }
  .sc-item { left: clamp(calc(var(--wm) / 2), var(--xm), calc(100% - var(--wm) / 2)); top: var(--ym); width: var(--wm); }
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filters button { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: transparent; color: var(--fg); border: 1px solid var(--ln); padding: 8px 14px; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease); }
.filters button.on, .filters button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* goals */
.goals-sec { padding-top: 0; }
.goals-head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.goals-head .h1 { font-size: clamp(44px, 6vw, 96px); position: relative; z-index: 2; }
main, footer { overflow-x: clip; }
.goals-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.goals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ln); }
.goals a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr) 32px; gap: 24px; align-items: baseline; padding-block: 30px; border-bottom: 1px solid var(--ln); text-decoration: none; position: relative; }
.goals a::before { content: ""; position: absolute; inset: 0 calc(-1 * max(40px, env(safe-area-inset-right, 0px))); background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); z-index: 0; }
.goals a > * { position: relative; z-index: 1; transition: color .5s var(--ease), transform .7s var(--ease); }
.goals a:hover::before { transform: scaleY(1); }
.goals a:hover > * { color: var(--paper); }
.goals a:hover .g-name { transform: translateX(12px); font-style: italic; }
.goals a:hover .g-ar { color: var(--amber); transform: translateX(6px); }
.g-goal { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.g-name { font-size: clamp(30px, 4vw, 56px); line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.g-get { font-size: 15px; line-height: 1.5; color: var(--mut); max-width: 40ch; }
.g-ar { font-size: 22px; justify-self: end; }

/* footer cta */
.foot-cta { display: grid; gap: 12px; text-decoration: none; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--ln); }
.foot-cta .big { font-size: clamp(40px, 8vw, 120px); line-height: .9; letter-spacing: -.045em; text-transform: uppercase; font-stretch: 90%; }
.foot-cta .ar { display: inline-block; transition: transform .6s var(--ease), color .6s; }
.foot-cta:hover .ar { transform: translateX(14px); color: var(--amber); }
.wm-foot { font-size: clamp(28px, 4vw, 48px); line-height: .92; letter-spacing: -.04em; text-transform: uppercase; font-stretch: 88%; }
@media (max-width: 820px) {
  .goals-head { grid-template-columns: 1fr; }
  .goals a { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 16px; padding-block: 24px; }
  .g-goal, .g-get { grid-column: 1 / 2; }
  .g-name { grid-column: 1 / 2; grid-row: 2; }
  .g-get { grid-row: 3; }
  .g-ar { grid-column: 2; grid-row: 2; }
  .goals a::before { inset: 0 calc(-1 * max(16px, env(safe-area-inset-right, 0px))); }
}

/* real photos */
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(var(--vb)); transform: skewY(var(--vs)) scale(1.001); transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.shot[data-r].pre img { transform: scale(1.12); }
.tile { background: none; border: 0; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.tile:hover .shot img, .tile:focus-visible .shot img { transform: scale(1.04); }
.tile .shot::after { content: "Otwórz galerię  →"; position: absolute; left: 14px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #f4f3f0; background: rgba(18,18,18,.55); padding: 6px 10px; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tile:hover .shot::after, .tile:focus-visible .shot::after { opacity: 1; transform: none; }
.tiles-note { margin-top: 56px; text-align: right; }
.tile .row { flex-wrap: wrap; }
.tile .row span:last-child { white-space: nowrap; }
.vl-pics .shot:last-child img { object-position: 50% 40%; }
/* wycinek bez tła (PNG) — bez ramki, stoi na linii */
.shot.cut { background: none; aspect-ratio: auto !important; border-bottom: 1px solid var(--line); }
.shot.cut img { position: relative; inset: auto; height: auto; object-fit: contain; }
.vl-pics .shot.cut:first-child { margin-top: 0; }
#kontakt { border-top: 1px solid var(--line); }

/* hero reel */
.hero-reel { margin: 0; display: grid; gap: 10px; min-width: 0; }
.hero-shot img.hs { opacity: 0; filter: blur(18px); transform: scale(1.07); transition: opacity 1.4s var(--ease), filter 1.4s var(--ease), transform 7s linear; }
.hero-shot img.hs.on { opacity: 1; filter: blur(var(--vb)); transform: scale(1); }
.hero-cap { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-variant-numeric: tabular-nums; }

/* band */
.band { position: relative; padding: 0; height: clamp(420px, 72vh, 780px); overflow: hidden; background: var(--black); display: grid; align-items: end; }
.band-img { position: absolute; inset: -14% 0; }
.band-img img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,18,18,.62) 0%, rgba(18,18,18,0) 58%); pointer-events: none; }
.band-text { position: relative; z-index: 2; padding-block: clamp(32px, 5vw, 64px); width: 100%; }
.band-quote { margin: 0; font-size: clamp(32px, 5.6vw, 84px); line-height: .94; letter-spacing: -.04em; text-transform: uppercase; max-width: 15ch; color: #f4f3f0; }
.band-quote em { display: block; padding-left: .9em; }

/* hover preview */
.peek { position: fixed; left: 0; top: 0; width: 240px; aspect-ratio: 4 / 5; z-index: 45; pointer-events: none; opacity: 0; overflow: hidden; transition: opacity .45s var(--ease); will-change: transform; }
.peek.on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .5s var(--ease), transform .7s var(--ease); }
.peek.swap img { filter: blur(10px); transform: scale(1.06); }
@media (hover: none), (max-width: 820px) { .peek { display: none; } }

/* lightbox */
.lb[hidden] { display: none !important; }
.lb { position: fixed; inset: 0; z-index: 100; background: var(--black); color: var(--ink-d); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 20px) max(24px, env(safe-area-inset-left, 0px)); animation: lbIn .6s var(--ease); }
@keyframes lbIn { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
.lb-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.lb-top .meta { color: var(--muted-d); }
.lb-title { margin: 6px 0 0; font-weight: 400; font-size: clamp(24px, 3vw, 40px); line-height: 1; text-transform: uppercase; letter-spacing: -.03em; }
.lb-close, .lb-nav { background: none; border: 1px solid #4a4948; color: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.lb-nav { font-family: var(--display); font-size: 20px; padding: 6px 20px; }
.lb-close:hover, .lb-nav:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.lb :focus-visible { outline-color: var(--ice); }
.lb-stage { position: relative; min-height: 0; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .55s var(--ease), filter .55s var(--ease), transform .8s var(--ease); }
.lb-stage img.out { opacity: 0; filter: blur(16px); transform: scale(1.03); }
.lb-bot { display: flex; justify-content: center; align-items: center; gap: 24px; }
.lb-num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* reels */
.reels { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 24px; align-items: end; margin-bottom: 72px; }
.reel { margin: 0; background: #000; min-width: 0; }
.reel-frame { position: relative; overflow: hidden; background: #0b0b0b; }
.reel.tall .reel-frame { aspect-ratio: 9 / 16; }
.reel.sq .reel-frame { aspect-ratio: 1 / 1; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.reel .bar { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); background: var(--black); }
.reel .bar strong { font-weight: 400; color: var(--ink-d); }
.reel .bar span { white-space: nowrap; }
.snd { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: rgba(18,18,18,.6); color: #f4f3f0; border: 1px solid rgba(244,243,240,.5); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.snd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.snd:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.snd[aria-pressed="true"] { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.snd[aria-pressed="true"]::before { opacity: 1; animation: blink 1.6s steps(2) infinite; }
.reels-note { display: grid; gap: 20px; align-content: end; padding-bottom: 8px; }
.reels-note .lead { font-size: 19px; }
.films-sub { margin: 0 0 20px; }
@media (max-width: 820px) {
  .reels { grid-template-columns: 1fr; gap: 40px; }
  .reel.tall { max-width: 420px; }
}

/* hero reel (intro video) */
.hero-body { grid-template-columns: 1fr; gap: 32px; align-items: start; }
.hero-reel { max-width: none; width: 100%; }
.hero-reel .reel-frame { aspect-ratio: 16 / 9; background: #0b0b0b; }
.hero-reel video { object-fit: cover; }
.hero-reel .snd { z-index: 3; }
.hero-side { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 40px; align-items: end; padding-bottom: 0; }
.hero-side .rule { grid-column: 1 / -1; margin: 0; }
.hero-act { display: grid; gap: 18px; justify-items: end; text-align: right; }
@media (min-width: 821px) { .hero-body { margin-top: calc(clamp(48px, 10vw, 152px) * -.22); } }
@media (max-width: 820px) {
  .hero-side { grid-template-columns: 1fr; }
  .hero-act { justify-items: start; text-align: left; }
}
/* kadr w ruchu */
.motion-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.motion-text { display: grid; gap: 24px; align-content: end; padding-bottom: 8px; }
.motion-text .lead { max-width: 30ch; }
.motion-grid .reel.tall { width: 100%; max-width: 440px; justify-self: end; }
.goals-sec { border-top: 1px solid var(--line); padding-top: clamp(96px, 12vw, 168px); }
@media (max-width: 820px) {
  .motion-grid { grid-template-columns: 1fr; }
  .motion-grid .reel.tall { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}


/* ===== WordPress ===== */
body.admin-bar .top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top { top: 46px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.skip:focus { top: 16px; }

/* filmy jako przyciski */
.vid { border: 0; padding: 0; margin: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.vid .frame img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.vid:hover .frame img.thumb { transform: scale(1.04); }
.vid .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.vid.playing .play { display: none; }
.vid:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.vids-empty { color: var(--mut); }

/* formularz */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.consent a { color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent.err { border-left-color: #b3261e; }
.f input:invalid:focus { border-bottom-color: #b3261e; }

/* zwykłe strony (np. polityka prywatności) */
.page-main { padding-top: calc(env(safe-area-inset-top, 0px) + 140px); padding-bottom: 120px; }
.page-main .h1 { margin-bottom: 48px; }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.7; }
.prose h2 { font-weight: 400; text-transform: uppercase; letter-spacing: -.02em; font-size: 28px; line-height: 1.1; margin: 48px 0 16px; }
.prose h3 { font-weight: 500; font-size: 19px; margin: 32px 0 8px; }
.prose a { color: var(--amber-text); }
.prose img { height: auto; }

/* wąskie telefony: nagłówki mieszczą się w ekranie */
@media (max-width: 420px) {
  .h1, .goals-head .h1, .vl-text .h1 { font-size: clamp(32px, 11.4vw, 48px); }
  .indent { padding-left: .5em; }
}
