/* ============================================
   Alpha Impact
   Limonka #CCFF00 · czerń · papier
   ============================================ */

:root {
  --ink: #0b0b0b;
  --ink-2: #131313;
  --ink-3: #1c1c1c;
  --lime: #ccff00;
  --mint: #5dff9b;
  --paper: #efeee6;
  --paper-2: #e6e4d8;
  --line-d: rgba(239, 238, 230, 0.12);
  --line-l: rgba(11, 11, 11, 0.14);
  --muted-d: rgba(239, 238, 230, 0.6);
  --muted-l: rgba(11, 11, 11, 0.6);
  --r: 26px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--ink); }
.defs { position: absolute; width: 0; height: 0; }

.label { font-size: 14px; font-weight: 500; opacity: 0.6; margin-bottom: 18px; }
.title {
  font-size: clamp(46px, 7.5vw, 124px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.title em, .contact__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.grain {
  position: absolute; inset: -50%; pointer-events: none;
  opacity: 0.2; mix-blend-mode: overlay;
  background: 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-1%, 3%); } }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.ulink { position: relative; display: inline-block; }
.ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }
.wd { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }

/* ---------- LOADER ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.loader__logo { width: clamp(90px, 12vw, 160px); }
.loader__inner { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + 18px); display: flex; justify-content: space-between; align-items: flex-end; font-size: 14px; font-weight: 500; }
.loader__num { font-size: clamp(64px, 12vw, 180px); font-weight: 300; letter-spacing: -0.06em; line-height: 0.8; font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); height: 2px; background: rgba(11, 11, 11, 0.15); }
.loader__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- KURSOR ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--lime);
  pointer-events: none; display: grid; place-items: center;
  mix-blend-mode: difference;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease);
}
.cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.has-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; mix-blend-mode: normal; }
.cursor__label { font-size: 13px; font-weight: 600; color: var(--ink); opacity: 0; transform: scale(0.6); transition: 0.3s var(--ease); }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- NAGŁÓWEK ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: calc(var(--gutter) + 10px) calc(var(--gutter) + 14px);
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.header > * { pointer-events: auto; color: var(--ink); transition: color 0.4s, background 0.4s; }
.header > .is-dark { color: var(--paper); }
.logo svg { width: 40px; display: block; }
.nav {
  display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav.is-dark { background: rgba(255, 255, 255, 0.07); }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background 0.3s, color 0.3s; }
.nav a:hover { background: var(--ink); color: var(--lime); }
.nav.is-dark a:hover { background: var(--lime); color: var(--ink); }

/* ---------- HERO ---------- */
.hero { height: 100vh; height: 100svh; padding: var(--gutter); }
.hero__card {
  position: relative; height: 100%;
  border-radius: var(--r); overflow: hidden;
  background: var(--lime); color: var(--ink);
  display: grid; place-items: center;
}
.hero__name {
  position: relative; z-index: 2; text-align: center;
  font-size: clamp(76px, 17vw, 300px);
  font-weight: 300;
  letter-spacing: -0.055em;
  line-height: 0.82;
  font-variation-settings: "opsz" 96;
  pointer-events: none;
}
.hero__line { display: block; }
.hero__mark {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  width: clamp(150px, 26vw, 420px); aspect-ratio: 414 / 326;
  translate: -50% -50%;
  transform-style: preserve-3d; pointer-events: none;
}
.hero__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); }
.hero__mark svg:last-child { color: var(--paper); }
.hero__meta {
  position: absolute; z-index: 4; left: 28px; right: 28px; bottom: 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 14px; font-weight: 500; line-height: 1.3;
}
.hero__meta b { font-weight: 600; font-variant-numeric: tabular-nums; }
.t-right { text-align: right; }
.hero__scroll i { display: inline-block; font-style: normal; animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- O NAS ---------- */
.about {
  position: relative;
  padding: 24vh var(--gutter) 22vh;
  max-width: 1320px; margin: 0 auto;
}
.about__text {
  font-size: clamp(36px, 5.6vw, 92px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.about__text .ch { opacity: 0.12; }
.scribble { position: relative; display: inline-block; }
.scribble svg {
  position: absolute; left: -12%; top: -22%; width: 124%; height: 150%;
  overflow: visible; pointer-events: none;
}
.scribble path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.stamp {
  position: absolute; right: var(--gutter); top: 10vh;
  width: clamp(110px, 12vw, 170px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.stamp__ring { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.stamp__ring text { font-size: 17.5px; font-weight: 600; letter-spacing: 1.5px; fill: var(--ink); }
.stamp__logo { width: 42%; background: var(--lime); border-radius: 50%; padding: 18%; box-sizing: content-box; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- OFERTA ---------- */
.offer { background: var(--ink); color: var(--paper); }
.offer__stage {
  height: 100vh; min-height: 640px;
  padding: 100px var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 24px;
  max-width: 1400px; margin: 0 auto;
}
.offer__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.offer__head .title { font-size: clamp(42px, 5.6vw, 88px); }
.offer__head .label { margin: 0; }
.editor {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-d);
}
.editor__bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line-d); color: var(--muted-d); background: var(--ink-3); font: 12px var(--mono); }
.editor__tc { margin-left: auto; color: var(--lime); font-variant-numeric: tabular-nums; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.dots i:first-child { background: var(--lime); }
.editor__body { flex: 1; min-height: 0; display: grid; grid-template-rows: 1fr auto; }

.viewer { position: relative; min-height: 0; overflow: hidden; }
.vpanel {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 48px);
  padding: clamp(18px, 2.5vw, 36px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.vpanel.active { opacity: 1; visibility: visible; }
.vpanel__visual { position: relative; border-radius: 12px; overflow: hidden; background: var(--ink); border: 1px solid var(--line-d); min-height: 0; }
.vpanel__text { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 0; }
.vpanel__num { font-size: 14px; color: var(--lime); }
.vpanel h3 { font-size: clamp(34px, 4vw, 64px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; }
.vpanel h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.vpanel p { color: var(--muted-d); font-size: clamp(15px, 1.2vw, 18px); max-width: 44ch; }
.vpanel ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.vpanel li { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-d); }
.crew { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.crew__faces { display: flex; }
.face {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--lime); color: var(--ink);
  font-weight: 700; font-size: 14px;
  border: 2px solid var(--ink-2); margin-left: -8px;
}
.face:first-child { margin-left: 0; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.crew span { font-size: 14px; color: var(--muted-d); }
.crew b { color: var(--paper); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; }

.layers { position: relative; border-top: 1px solid var(--line-d); background: var(--ink-3); padding: 6px 0 8px; font: 12px var(--mono); }
.layers__ruler { display: flex; justify-content: space-between; padding: 0 14px 6px 240px; color: var(--muted-d); font-size: 10px; }
.layer { display: grid; grid-template-columns: 226px 1fr; align-items: center; height: 34px; cursor: pointer; transition: background 0.3s; }
.layer:hover { background: rgba(255, 255, 255, 0.03); }
.layer__name { display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted-d); white-space: nowrap; overflow: hidden; }
.layer__name i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.layer__name em { font-style: normal; opacity: 0.5; }
.layer__track { position: relative; height: 18px; margin-right: 14px; }
.layer__bar {
  position: absolute; top: 0; bottom: 0; left: var(--s); width: var(--w); border-radius: 4px;
  background: color-mix(in srgb, var(--c) 30%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  transition: background 0.3s;
}
.layer__bar::before, .layer__bar::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; background: var(--c); rotate: 45deg; translate: 0 -50%; }
.layer__bar::before { left: 6px; }
.layer__bar::after { right: 6px; }
.layer.active .layer__name { color: var(--paper); }
.layer.active .layer__bar { background: var(--c); }
.layers__playhead { position: absolute; top: 0; bottom: 0; left: 240px; width: 2px; background: var(--lime); pointer-events: none; }
.layers__playhead::before { content: ""; position: absolute; top: 0; left: -5px; width: 12px; height: 8px; background: var(--lime); clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* Wizualizacje ofert */
.v-video { position: absolute; inset: 0; background: radial-gradient(60% 60% at 30% 40%, rgba(204, 255, 0, 0.45), transparent 70%), radial-gradient(50% 50% at 75% 70%, rgba(93, 255, 155, 0.3), transparent 70%), #080808; }
.v-video__strip { position: absolute; left: 0; right: 0; height: 22px; background: repeating-linear-gradient(90deg, #000 0 14px, #2a2a2a 14px 22px); animation: strip 1.2s linear infinite; }
.v-video__strip:first-child { top: 0; }
.v-video__strip:nth-child(2) { bottom: 0; animation-direction: reverse; }
@keyframes strip { to { background-position: 22px 0; } }
.v-video__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 72px; height: 72px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 22px; animation: ringPulse 2s infinite; }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.5); } 70%, 100% { box-shadow: 0 0 0 26px rgba(204, 255, 0, 0); } }
.v-video__bar { position: absolute; left: 20px; right: 20px; bottom: 36px; height: 3px; background: rgba(255, 255, 255, 0.15); }
.v-video__bar span { display: block; height: 100%; background: var(--lime); animation: prog 4s linear infinite; transform-origin: left; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.v-gfx { position: absolute; inset: 0; background: var(--paper); overflow: hidden; }
.v-gfx__art { position: absolute; inset: 14% 18%; border: 1px dashed rgba(10, 10, 10, 0.35); }
.v-gfx__art::before, .v-gfx__art::after { content: ""; position: absolute; width: 8px; height: 8px; background: #fff; border: 1px solid #1a73ff; }
.v-gfx__art::before { top: -5px; left: -5px; }
.v-gfx__art::after { bottom: -5px; right: -5px; }
.v-gfx .shape { position: absolute; }
.v-gfx .s1 { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); left: 8%; top: 12%; animation: gfx1 6s var(--ease) infinite alternate; }
.v-gfx .s2 { width: 30%; aspect-ratio: 1; background: var(--ink); right: 8%; bottom: 10%; animation: gfx2 5s var(--ease) infinite alternate; }
.v-gfx .s3 { width: 40%; left: 34%; top: 30%; animation: gfx3 7s var(--ease) infinite alternate; mix-blend-mode: difference; }
.v-gfx .s3 svg { width: 100%; color: #fff; }
@keyframes gfx1 { to { transform: translate(20%, 15%) scale(0.85); } }
@keyframes gfx2 { to { transform: rotate(45deg) translate(-10%, -20%); } }
@keyframes gfx3 { to { transform: rotate(-12deg) scale(1.15); } }

.v-web { position: absolute; inset: 12px; border-radius: 10px; overflow: hidden; background: #f4f4ef; color: var(--ink); display: flex; flex-direction: column; }
.v-web__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #e3e3dc; }
.v-web__bar .dots i { background: #bdbdb4; }
.v-web__url { flex: 1; font: 11px var(--mono); padding: 4px 10px; border-radius: 6px; background: #fff; }
.v-web__page { flex: 1; padding: 16px; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr auto; gap: 10px; }
.v-web__h { grid-column: 1 / -1; font-size: clamp(18px, 2vw, 28px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.v-web__h em { font-family: var(--serif); font-weight: 400; background: var(--lime); padding: 0 4px; }
.sk { border-radius: 6px; background: linear-gradient(90deg, #e2e2da 25%, #f0f0ea 50%, #e2e2da 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.v-web__btn { justify-self: start; font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--lime); }

.v-code { position: absolute; inset: 0; background: #0b0d0a; padding: 16px 18px; font: 13px/1.6 var(--mono); color: #cfd8c4; overflow: hidden; }
.v-code__top { display: flex; gap: 10px; margin-bottom: 12px; color: var(--muted-d); font-size: 11px; }
.v-code__top b { color: var(--lime); font-weight: 500; }
.v-code pre { white-space: pre-wrap; font: inherit; }
.v-code .k { color: var(--lime); }
.v-code .s { color: var(--mint); }
.v-code .c { color: #6b7266; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--lime); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- SHOWREEL ---------- */
.reel { background: var(--lime); }
.reel__stage { height: 100vh; display: grid; place-items: center; overflow: hidden; }
.reel__card { position: relative; width: 100%; height: 100%; overflow: hidden; background: #050505; cursor: pointer; }
.reel__card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__placeholder {
  position: absolute; inset: 0;
  background: radial-gradient(40% 50% at 30% 40%, rgba(204, 255, 0, 0.5), transparent 70%), radial-gradient(35% 45% at 70% 65%, rgba(93, 255, 155, 0.35), transparent 70%), #070707;
  animation: reelShift 10s ease-in-out infinite alternate;
}
@keyframes reelShift { to { transform: scale(1.15) rotate(3deg); } }
.reel__marquee { position: absolute; top: 50%; left: 0; width: 100%; translate: 0 -50%; overflow: hidden; pointer-events: none; }
.reel__track { display: flex; align-items: center; width: max-content; animation: marquee 24s linear infinite; }
.reel__track span { font-family: var(--serif); font-style: italic; font-size: clamp(80px, 14vw, 240px); line-height: 1; color: var(--paper); white-space: nowrap; }
.reel__track svg { width: clamp(70px, 10vw, 170px); margin: 0 0.3em; color: var(--lime); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.reel__play { position: absolute; right: 32px; bottom: 32px; width: 72px; height: 72px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 20px; transition: transform 0.4s var(--ease); }
.reel__play:hover { transform: scale(1.1); }

/* ---------- NARZĘDZIA ---------- */
.tools { background: var(--ink); color: var(--paper); padding: 20vh var(--gutter) 16vh; text-align: center; overflow: hidden; }
.tools .title { margin-bottom: 4vh; }
.orbit { position: relative; height: clamp(380px, 60vh, 620px); max-width: 1200px; margin: 0 auto; }
.orbit__core { position: absolute; left: 50%; top: 50%; width: clamp(120px, 14vw, 220px); translate: -50% -50%; color: var(--lime); z-index: 50; }
.orbit__ring { position: absolute; left: 50%; top: 50%; width: 88%; aspect-ratio: 1 / 0.3; translate: -50% -50%; border: 1px solid var(--line-d); border-radius: 50%; }
.orb { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 10px; will-change: transform; }
.orb__icon { width: clamp(64px, 6vw, 92px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 22px; padding: 12px; background: var(--ink-3); border: 1px solid var(--line-d); }
.orb__icon svg, .orb__icon img { width: 100%; height: 100%; }
.orb__name { font-size: 13px; font-weight: 500; white-space: nowrap; }

/* ---------- PROJEKTY ---------- */
.projects { position: relative; isolation: isolate; padding: 20vh var(--gutter) 18vh; }
.projects__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 7vh; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; }
.filters button { position: relative; opacity: 0.45; transition: opacity 0.3s; padding: 2px 0; }
.filters button:hover { opacity: 0.8; }
.filters button.active { opacity: 1; }
.filters button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); }
.filters sup { font-size: 11px; margin-left: 2px; }
.plist { list-style: none; border-top: 1px solid var(--line-l); }
.pitem {
  position: relative; display: grid; grid-template-columns: 60px 1fr auto;
  align-items: baseline; gap: 20px;
  padding: clamp(18px, 2.4vw, 32px) 8px;
  border-bottom: 1px solid var(--line-l);
  cursor: pointer;
  transition: opacity 0.4s var(--ease), padding 0.5s var(--ease);
}
.pitem.hide { display: none; }
.plist:hover .pitem { opacity: 0.3; }
.plist .pitem:hover { opacity: 1; padding-left: 28px; }
.pitem::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); }
.pitem:hover::before { transform: scaleY(1); transform-origin: top; }
.pitem__num { font-size: 13px; font-weight: 600; opacity: 0.5; font-variant-numeric: tabular-nums; }
.pitem__title { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 6.6vw, 110px); line-height: 1; letter-spacing: -0.02em; }
.pitem__meta { font-size: 14px; text-align: right; opacity: 0.7; white-space: nowrap; }

.preview {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: clamp(240px, 24vw, 380px); aspect-ratio: 4 / 3;
  margin: calc(clamp(240px, 24vw, 380px) * -0.375) 0 0 calc(clamp(240px, 24vw, 380px) * -0.5);
  pointer-events: none; border-radius: 16px; overflow: hidden;
  transform: scale(0); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.preview__inner { position: absolute; inset: 0; }
.preview__inner > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .preview { display: none; } }

.pcover { position: absolute; inset: 0; overflow: hidden; }
.pcover::before, .pcover::after { content: ""; position: absolute; border-radius: 50%; filter: blur(36px); }
.pcover::before { width: 70%; height: 90%; top: -20%; left: -10%; background: var(--c1); animation: blobA 9s ease-in-out infinite; }
.pcover::after { width: 60%; height: 80%; bottom: -25%; right: -10%; background: var(--c2); animation: blobB 11s ease-in-out infinite; }
.pcover span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 44px); color: var(--ink); mix-blend-mode: overlay; text-align: center; padding: 0 12px; }
@keyframes blobA { 50% { transform: translate(30%, 25%) scale(1.2); } }
@keyframes blobB { 50% { transform: translate(-30%, -20%) scale(0.85); } }

/* ---------- ZESPÓŁ — polaroidy ---------- */
.team { padding: 14vh var(--gutter) 22vh; background: var(--paper-2); }
.team .title { margin-bottom: 9vh; }
.team__grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); justify-content: center; }
.polaroid {
  position: relative;
  width: min(320px, 100%);
  padding: 14px 14px 22px;
  background: #fbfaf5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 40px rgba(0, 0, 0, 0.12);
  rotate: var(--rot, -2deg);
  transition: rotate 0.6s var(--ease), translate 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.polaroid:hover { rotate: 0deg; translate: 0 -8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 30px 60px rgba(0, 0, 0, 0.18); }
.polaroid::before { /* taśma */
  content: ""; position: absolute; top: -14px; left: 50%;
  width: 110px; height: 30px; translate: -50% 0; rotate: var(--tape, 3deg);
  background: rgba(204, 255, 0, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.polaroid__photo {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: radial-gradient(70% 70% at 30% 30%, var(--lime), #7fc200 60%, #1f3a00);
  display: grid; place-items: center;
}
.polaroid__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.polaroid__photo span { font-family: var(--serif); font-style: italic; font-size: clamp(90px, 9vw, 140px); color: var(--ink); line-height: 1; }
.polaroid__name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 38px; line-height: 1; margin-top: 16px; }
.polaroid__role { font-size: 14px; font-weight: 600; margin-top: 4px; }
.polaroid__skills { font-size: 14px; color: var(--muted-l); margin-top: 8px; }
.polaroid__dc { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; opacity: 0.7; transition: opacity 0.3s; }
.polaroid__dc:hover { opacity: 1; }
.polaroid__dc svg { width: 15px; height: 15px; }
.polaroid--join { background: transparent; box-shadow: none; border: 2px dashed var(--line-l); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 380px; gap: 10px; }
.polaroid--join::before { display: none; }
.polaroid--join:hover { box-shadow: none; }
.polaroid--join .plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: 32px; font-weight: 300; transition: transform 0.5s var(--ease); }
.polaroid--join:hover .plus { transform: rotate(90deg); }
.polaroid--join p { color: var(--muted-l); max-width: 24ch; font-size: 15px; }

/* ---------- KONTAKT ---------- */
.contact { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.curve { height: clamp(240px, 38vw, 560px); }
.curve svg { width: 100%; height: 100%; overflow: visible; }
.curve__text { font-family: var(--display); font-size: 118px; font-weight: 600; letter-spacing: -4px; fill: url(#curveGrad); }
.curve__logo { color: var(--lime); }
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px);
  max-width: 1300px; margin: 0 auto; padding: 6vh var(--gutter) 10vh;
}
.contact__title { font-size: clamp(48px, 6.4vw, 104px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.contact__title em { color: var(--lime); }
.contact__lead { color: var(--muted-d); font-size: 18px; max-width: 40ch; margin-top: 24px; }
.contact__mail { display: inline-block; margin-top: 32px; font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; border-bottom: 2px solid var(--lime); padding-bottom: 4px; }
.contact__alt { margin-top: 36px; font-size: 15px; color: var(--muted-d); }
.alt-link { display: inline-flex; align-items: center; gap: 5px; color: var(--paper); border-bottom: 1px solid currentColor; }
.alt-link svg { width: 15px; height: 15px; }
.alt-link:hover { color: var(--lime); }

.form { display: grid; gap: 14px; align-content: start; }
.form label { display: grid; gap: 8px; }
.form label span { font-size: 13px; color: var(--muted-d); }
.form input, .form textarea, .form select {
  width: 100%; padding: 16px 18px;
  background: var(--ink-3); border: 1px solid transparent; border-radius: 14px;
  color: var(--paper); font: 16px var(--display);
  transition: border-color 0.3s; resize: vertical;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--lime); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { min-height: 1.2em; font-size: 14px; color: #ff8a7a; }
.form__msg.ok { color: var(--lime); }
.form__btn { position: relative; overflow: hidden; margin-top: 8px; padding: 20px; border-radius: 999px; color: var(--ink); font-size: 18px; font-weight: 700; background: var(--lime); }
.form__btn span { position: relative; z-index: 1; }

.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; padding: 0 var(--gutter) 8vh; }
.socials a { color: var(--muted-d); font-weight: 500; transition: color 0.3s; }
.socials a:hover { color: var(--lime); }

.footer { padding: 0 var(--gutter) var(--gutter); }
.footer__big { display: flex; align-items: center; justify-content: center; gap: 0.06em; font-size: 16vw; font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; white-space: nowrap; color: var(--lime); margin-bottom: 20px; }
.footer__big svg { width: 0.85em; flex: none; color: var(--paper); }
.footer__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-d); border-top: 1px solid var(--line-d); padding-top: 16px; }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: var(--gutter); pointer-events: none; visibility: hidden; }
.modal.open { pointer-events: auto; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 5, 5, 0.8); backdrop-filter: blur(14px); opacity: 0; }
.modal__box { position: relative; width: min(1100px, 100%); max-height: 92vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: var(--r); }
.modal__media { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.modal__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.modal__info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: clamp(24px, 3vw, 40px); }
.modal__info .label { margin-bottom: 8px; }
.modal__info h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.modal__info p:last-child { font-size: 18px; opacity: 0.75; align-self: end; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 16px; }

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 900px) {
  .vpanel { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .vpanel p { display: none; }
  .layer { grid-template-columns: 150px 1fr; }
  .layers__ruler { padding-left: 164px; }
  .layers__playhead { left: 164px; }
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav a:not(:last-child) { display: none; }
  .hero__meta { left: 18px; right: 18px; bottom: 18px; font-size: 12px; }
  .hero__scroll { display: none; }
  .stamp { top: 4vh; width: 96px; }
  .pitem { grid-template-columns: 1fr; gap: 6px; }
  .pitem__num { display: none; }
  .pitem__meta { text-align: left; }
  .modal__info { grid-template-columns: 1fr; }
  .offer__stage { padding-top: 84px; }
  .offer__head .label { display: none; }
  .vpanel ul, .crew span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .reel__track, .pcover::before, .pcover::after, .v-video__strip, .stamp__ring { animation: none; }
}
