/* MarketIt */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0d0b0a;
  --ink-2: #1a1716;
  --ink-3: #2a2624;
  --paper: #f7f4ee;
  --paper-2: #ebe6dc;
  --white: #ffffff;
  --magenta: #ff0090;
  --magenta-deep: #c8006f;
  --plum: #3b0a2a;
  --mute: #a39d97;      /* secondary text on ink, 7.3:1 */
  --mute-paper: #5f5852; /* secondary text on paper, 6.6:1 */
  --line: rgba(255, 255, 255, 0.14);
  --line-paper: rgba(13, 11, 10, 0.14);

  --gutter: clamp(16px, 2.8vw, 40px);
  --section: clamp(96px, 14vw, 200px);
  --radius: clamp(14px, 1.4vw, 22px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-body: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
  --fs-lead: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  --fs-h3: clamp(1.75rem, 1.2rem + 1.9vw, 3rem);
  --fs-display: clamp(3.5rem, 1.5rem + 8.4vw, 10.5rem);
  --fs-giant: clamp(5.5rem, 1rem + 19vw, 21rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--magenta); color: var(--white); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 4px; border-radius: 6px; }
html { scrollbar-color: var(--ink-3) var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 10px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--magenta); }

.skip {
  position: fixed; left: var(--gutter); top: -60px; z-index: 100;
  background: var(--magenta); color: var(--ink); font-weight: 600; padding: 10px 18px; border-radius: 99px;
}
.skip:focus { top: 14px; }

[data-placeholder] { text-decoration: underline dashed rgba(255, 0, 144, 0.6); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

/* ---------- Pills ---------- */
.pill {
  --bg: var(--white); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 0.55em;
  height: 46px; padding: 0 24px; border-radius: 99px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, var(--magenta));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.pill svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
.pill svg path[d^="M6 4"] { fill: currentColor; stroke: none; }
@media (hover: hover) {
  .pill:hover::before { transform: translateY(0); }
  .pill:hover { color: var(--ink); }
  .pill:hover svg { transform: translateX(3px); }
}
.pill:active { transform: scale(0.97); }
.pill--magenta { --bg: var(--magenta); --fg: var(--ink); --hover: var(--white); }
@media (hover: hover) { .pill--magenta:hover { color: var(--ink); } }
.pill--lg { height: 60px; padding: 0 32px; font-size: 1.125rem; }
.pill[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  transition: background-color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.nav.is-scrolled { background: rgba(13, 11, 10, 0.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.nav.is-hidden { transform: translateY(-100%); }
.logo {
  display: inline-flex; align-items: center; gap: 0.08em; justify-self: start;
  font-weight: 780; font-size: clamp(1.75rem, 1.4rem + 0.8vw, 2.25rem); letter-spacing: -0.05em; line-height: 1;
}
.logo__market { color: var(--white); }
.logo__it {
  position: relative; display: inline-flex; align-items: center;
  background: var(--magenta); color: var(--ink);
  padding: 0.08em 0.3em 0.12em 0.2em; border-radius: 0.2em;
  transform: rotate(-4deg); transition: transform 0.6s var(--ease-out);
}
.logo__caret { width: 0.09em; height: 0.78em; margin-left: 0.07em; background: var(--ink); border-radius: 1px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (hover: hover) { .logo:hover .logo__it { transform: rotate(0deg) scale(1.06); } }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav__links a { font-size: 1rem; color: rgba(255, 255, 255, 0.82); position: relative; padding: 6px 0; transition: color 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--magenta);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) {
  .nav__links a:hover { color: var(--white); }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.pill--nav { justify-self: end; height: 44px; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--white); justify-self: end; position: relative; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease-out); }
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 96px var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu__nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 3.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
}
.menu__nav a span { min-width: 1.8rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--magenta); }
.menu__foot { display: grid; gap: 16px; }
.menu__foot .pill { justify-content: center; }
.menu__mail { justify-self: center; color: var(--mute); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: grid; grid-template-columns: 1fr auto; align-content: end; align-items: end; column-gap: 32px; row-gap: clamp(28px, 4vw, 56px);
  padding: 110px var(--gutter) clamp(28px, 4vw, 56px);
  overflow: hidden;
}
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero__hello {
  position: relative; z-index: 2; grid-column: 1 / -1;
  font-size: clamp(6rem, 34vw, 42rem); font-weight: 720; line-height: 0.8; letter-spacing: -0.06em;
  color: #8f8a86;
  margin-left: -0.04em; padding-bottom: 0.06em;
  pointer-events: none;
}
.hello__base, .hello__fill { display: block; }
/* Ciecz: dwie warstwy fali przycięte do liter; poziom i przesunięcie ustawia JS podczas scrollowania */
.hello__fill {
  position: absolute; left: 0; top: -0.3em; padding: 0.3em 0 0.12em;
  color: transparent;
  --level: 0; --wx: 0px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'%3E%3Cpath d='M0 200 C50 170 150 170 200 200 S350 230 400 200 V400 H0Z' fill='%23ff0090'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' preserveAspectRatio='none'%3E%3Cpath d='M0 190 C60 215 140 215 200 190 S340 165 400 190 V400 H0Z' fill='%23ff6cc0'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 2.4em 200%, 3.1em 200%;
  background-position:
    var(--wx) calc(var(--level) * 100%),
    calc(var(--wx) * -0.7) calc(var(--level) * 100% - 0.06em);
  -webkit-background-clip: text; background-clip: text;
}

.badge {
  position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(28px, 4vw, 56px);
  width: clamp(130px, 11vw, 180px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white);
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: var(--spin, 0deg); }
.badge__ring text { fill: currentColor; font-size: 14.5px; font-weight: 650; text-transform: uppercase; }
.badge__arrow {
  width: 42%; height: 42%; padding: 12%; border-radius: 50%;
  background: var(--magenta); fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.6s var(--ease-out), background-color 0.4s;
}
@media (hover: hover) { .badge:hover .badge__arrow { transform: translateY(6px); background: var(--white); } }
.hero__offer {
  position: relative; z-index: 2; grid-column: 2; max-width: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px, 2.4vw, 36px);
  padding-bottom: 0.4em;
}
.hero__offer h1 span { display: block; }
.hero__eyebrow { display: none; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.hero__more svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease-out); }
@media (hover: hover) { .hero__more:hover svg { transform: translateY(3px); } }
.hero__offer h1 span + span { color: var(--magenta); }
@media (min-width: 561px) { .hero__offer h1 span { white-space: nowrap; } }
.hero__offer h1 { font-size: clamp(1.375rem, 1rem + 1.1vw, 2rem); font-weight: 640; line-height: 1.2; letter-spacing: -0.035em; text-wrap: balance; }

/* ---------- Statement ---------- */
.statement { padding: var(--section) var(--gutter) calc(var(--section) * 0.8); }
.statement__title {
  font-size: var(--fs-display); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em;
  max-width: 15.5ch;
}
.rotator { display: inline-grid; color: var(--magenta); vertical-align: top; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.rotator__word {
  grid-area: 1 / 1; white-space: nowrap;
  transform: translateY(105%); opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.6s var(--ease-out);
}
.rotator__word.is-on { transform: translateY(0); opacity: 1; }
.rotator__word.is-off { transform: translateY(-105%); opacity: 0; }
.statement__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 160px); align-items: start;
  margin: clamp(72px, 10vw, 150px) 0 clamp(72px, 9vw, 130px);
}
.statement__lead {
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.6rem); font-weight: 680; line-height: 1.1; letter-spacing: -0.04em;
  max-width: 19em; text-wrap: balance; hyphens: manual; overflow-wrap: normal;
}
@media (max-width: 1100px) {
  .statement__grid { grid-template-columns: 1fr; }
}
.statement__lead span { color: var(--magenta); }
.statement__lead .statement__nowrap { color: inherit; white-space: nowrap; }
/* „My” w stylu znaku „It” z logo */
.statement__my {
  display: inline-flex; align-items: center; font-weight: inherit;
  background: var(--magenta); color: var(--ink);
  padding: 0.02em 0.26em 0.06em 0.18em; border-radius: 0.18em;
  transform: rotate(-4deg);
}
.quicklinks { display: grid; gap: 10px; padding-top: 0.4em; }
.quicklinks a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.6rem); font-weight: 620; letter-spacing: -0.03em; white-space: nowrap;
  transition: color 0.3s;
}
.quicklinks svg { width: 0.85em; height: 0.85em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease-out); }
@media (hover: hover) {
  .quicklinks a:hover { color: var(--magenta-deep); }
  .quicklinks a:hover svg { transform: translateX(6px); }
}

/* Ściana usług: odpowiednik ściany logotypów */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wall__cell a {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  aspect-ratio: 1; border-radius: clamp(10px, 1vw, 16px); overflow: hidden; isolation: isolate;
  background: var(--paper); color: var(--ink); text-align: center; padding: 16px;
}
.wall__cell a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--magenta);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path 0.7s var(--ease-out);
}
.wall__word { font-size: clamp(1.4rem, 0.7rem + 1.9vw, 2.9rem); font-weight: 740; letter-spacing: -0.05em; line-height: 1; transition: transform 0.6s var(--ease-out); }
.wall__note { font-size: 0.9375rem; color: var(--mute-paper); transition: color 0.4s, transform 0.6s var(--ease-out); }
@media (hover: hover) {
  .wall__cell a:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
  .wall__cell a:hover .wall__note { color: var(--ink); }
  .wall__cell a:hover .wall__word { transform: translateY(-4px); }
}
.wall__cell--demo a { background: var(--ink); color: var(--white); justify-content: flex-end; padding: clamp(14px, 1.6vw, 24px); }
.wall__cell--demo a::before { display: none; }

/* Mini-pipeline: animowany podgląd demo */
.mini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 14%; }
.mini::before { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; background: rgba(255, 255, 255, 0.16); }
.mini i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); animation: miniDot 3.6s infinite; }
.mini i:nth-child(1) { animation-delay: 0s; } .mini i:nth-child(2) { animation-delay: 0.45s; } .mini i:nth-child(3) { animation-delay: 0.9s; }
.mini i:nth-child(4) { animation-delay: 1.35s; } .mini i:nth-child(5) { animation-delay: 1.8s; } .mini i:nth-child(6) { animation-delay: 2.25s; }
.mini b { position: absolute; left: 14%; top: calc(50% - 1px); height: 2px; width: 72%; background: var(--magenta); transform-origin: left; animation: miniLine 3.6s infinite; }
@keyframes miniDot { 0%, 8% { background: var(--ink-3); transform: scale(1); } 14%, 80% { background: var(--magenta); transform: scale(1.5); } 100% { background: var(--ink-3); transform: scale(1); } }
@keyframes miniLine { 0% { transform: scaleX(0); } 70%, 82% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.wall__pill {
  position: relative; z-index: 1; display: inline-flex; white-space: nowrap; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.14); color: var(--white); font-weight: 600; font-size: 0.9375rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s, color 0.3s;
}
.wall__pill svg { width: 0.8em; height: 0.8em; fill: currentColor; }
@media (hover: hover) { .wall__cell--demo a:hover .wall__pill, .player__link:hover .wall__pill { background: var(--magenta); color: var(--ink); } }

/* Pływający podgląd demo (jak „Play showreel” u Huge) */
.player {
  position: fixed; z-index: 45; right: clamp(16px, 2.8vw, 40px); bottom: clamp(16px, 2.8vw, 40px);
  width: clamp(200px, 17vw, 280px); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--ink); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55); border: 1.5px solid rgba(255, 255, 255, 0.9);
  opacity: 0; transform: translateY(24px) scale(0.96); pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.player.is-on { opacity: 1; transform: none; pointer-events: auto; }
.player__link { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.player__close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); display: grid; place-items: center;
}
.player__close svg { width: 12px; height: 12px; stroke: var(--white); stroke-width: 2; stroke-linecap: round; fill: none; }
@media (hover: hover) { .player__close:hover { background: var(--magenta); } }

/* Tło strony zmienia kolor między sekcjami (jak przejście czarny → biały u Huge) */
body { transition: background-color 0.8s var(--ease-out), color 0.8s var(--ease-out); }
body[data-bg="white"] { background: var(--white); color: var(--ink); }
body[data-bg="paper"] { background: var(--paper); color: var(--ink); }
.js .name, .js .flow, .js .team { background: transparent; }
body[data-bg="white"] .nav.is-scrolled, body[data-bg="paper"] .nav.is-scrolled { background: rgba(255, 255, 255, 0.78); }
body[data-bg="white"] .nav__links a, body[data-bg="paper"] .nav__links a { color: rgba(13, 11, 10, 0.82); }
body[data-bg="white"] .logo__market, body[data-bg="paper"] .logo__market { color: var(--ink); }
body[data-bg="white"] .pill--nav, body[data-bg="paper"] .pill--nav { --bg: var(--ink); --fg: var(--white); }
body[data-bg="white"] .nav__burger, body[data-bg="paper"] .nav__burger { background: var(--ink); }
body[data-bg="white"] .nav__burger span, body[data-bg="paper"] .nav__burger span { background: var(--white); }
.nav__links a, .logo__market, .nav__burger, .nav__burger span { transition: color 0.6s, background-color 0.6s; }
/* Otwarte menu jest ciemne niezależnie od sekcji pod spodem */
body.menu-open .nav, body.menu-open .nav.is-scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .logo__market { color: var(--white); }
body.menu-open .nav__burger { background: var(--white); }
body.menu-open .nav__burger span { background: var(--ink); }
.statement { color: inherit; }

/* ---------- Section head ---------- */
.display { font-size: var(--fs-display); font-weight: 700; line-height: 0.92; letter-spacing: -0.05em; }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 26rem); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.section-head p { color: var(--mute); font-size: var(--fs-body); max-width: 26rem; padding-bottom: 0.5em; }

/* ---------- Work ---------- */
.work { padding: var(--section) clamp(10px, 1.4vw, 20px); }
.work .section-head { padding-inline: calc(var(--gutter) - clamp(10px, 1.4vw, 20px)); }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
/* Poziomy przejazd portfolio na desktopie (sekcja przypięta, kafle jadą w bok) */
.work.is-h { height: var(--work-h, auto); padding-block: 0; }
.work.is-h .work__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 72px; }
.work.is-h .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.work.is-h .work__grid { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.work.is-h .tile { width: 44vw; flex: none; }
.work.is-h .tile--wide { width: 60vw; }
.work.is-h .tile__media, .work.is-h .tile--wide .tile__media { aspect-ratio: auto; height: min(56vh, 40vw); }
.work__progress { height: 2px; background: var(--line); margin: 24px calc(var(--gutter) - clamp(10px, 1.4vw, 20px)) 0; border-radius: 2px; overflow: hidden; }
.work__progress i { display: block; height: 100%; background: var(--magenta); transform-origin: left; transform: scaleX(var(--wp, 0)); }
.work:not(.is-h) .work__progress { display: none; }
.tile { position: relative; display: block; cursor: default; }
.tile--wide { grid-column: span 2; }
a.tile { cursor: none; }
.tile__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--tone-bg); isolation: isolate;
}
.tile--wide .tile__media { aspect-ratio: 21 / 9; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 20px 4px 8px; }
.tile__name {
  position: absolute; z-index: 2; left: clamp(18px, 2.4vw, 36px); bottom: clamp(16px, 2.2vw, 32px); right: 30%;
  font-size: clamp(2.5rem, 1rem + 4.2vw, 6rem); font-weight: 720; letter-spacing: -0.05em; line-height: 0.92;
  color: var(--tone-fg); text-wrap: balance; pointer-events: none;
}
.tile--wide .tile__name { font-size: clamp(2.75rem, 1rem + 6vw, 8.5rem); }
.tile__media:has(img) .tile__name { color: var(--white); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.tile__summary { color: var(--mute); max-width: 34rem; }
.tile__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; max-width: 45%; }
.tile__tags li { font-size: 0.8125rem; font-weight: 550; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: rgba(255, 255, 255, 0.82); white-space: nowrap; }
.tile__flag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  font-size: 0.8125rem; font-weight: 600; padding: 6px 12px; border-radius: 99px;
  background: rgba(13, 11, 10, 0.78); color: var(--white); backdrop-filter: blur(6px);
}
.tile__cursor {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none;
  width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%;
  background: var(--magenta); color: var(--ink);
  display: grid; place-items: center; font-weight: 650; font-size: 0.95rem;
  transform: translate(var(--cx, 50%), var(--cy, 50%)) scale(0);
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) {
  a.tile:hover .tile__cursor { transform: translate(var(--cx), var(--cy)) scale(1); }
  .tile:hover .tile__media img, .tile:hover .mock { transform: scale(1.035); }
}

/* Mock (placeholder visual) */
.tone-magenta { --tone-bg: var(--magenta); --tone-fg: var(--ink); --tone-card: rgba(255, 255, 255, 0.92); --tone-soft: rgba(13, 11, 10, 0.16); }
.tone-cream { --tone-bg: var(--paper); --tone-fg: var(--ink); --tone-card: var(--white); --tone-soft: rgba(13, 11, 10, 0.1); }
.tone-graphite { --tone-bg: var(--ink-3); --tone-fg: var(--white); --tone-card: var(--ink); --tone-soft: rgba(255, 255, 255, 0.12); }
.tone-plum { --tone-bg: var(--plum); --tone-fg: var(--white); --tone-card: #1f0517; --tone-soft: rgba(255, 0, 144, 0.3); }
.mock {
  position: absolute; inset: 9% 7% -6% 34%;
  background: var(--tone-card); border-radius: 12px 12px 0 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  transition: transform 1.2s var(--ease-out);
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.tile--wide .mock { inset: 12% 6% -6% 46%; }
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--tone-soft); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--tone-soft); }
.mock__bar i:first-child { background: var(--magenta); }
.mock__body { padding: 7% 8%; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8%; align-content: start; }
.mock__title { font-size: clamp(1.25rem, 0.5rem + 2.4vw, 3.25rem); font-weight: 750; letter-spacing: -0.05em; line-height: 0.95; color: var(--tone-fg); }
.tone-graphite .mock__title, .tone-plum .mock__title { color: var(--white); }
.tone-magenta .mock__title, .tone-cream .mock__title { color: var(--ink); }
.mock__lines { display: grid; gap: 8px; margin-top: 14px; }
.mock__lines i { height: 7px; border-radius: 4px; background: var(--tone-soft); }
.mock__lines i:nth-child(2) { width: 80%; }
.mock__lines i:nth-child(3) { width: 55%; }
.mock__btn { margin-top: 16px; width: 42%; height: clamp(16px, 2vw, 28px); border-radius: 99px; background: var(--magenta); }
.tone-magenta .mock__btn { background: var(--ink); }
.mock__img { border-radius: 10px; background: var(--tone-soft); aspect-ratio: 1; position: relative; overflow: hidden; }
.mock__img::after { content: ""; position: absolute; inset: 30% 20% -20% 20%; border-radius: 50% 50% 0 0; background: var(--tone-bg); opacity: 0.7; }

/* ---------- Name / services ---------- */
.name { padding: var(--section) var(--gutter); background: var(--paper); color: var(--ink); border-radius: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) 0 0; }
.name__eq {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0.12em;
  font-size: var(--fs-giant); font-weight: 760; line-height: 0.82; letter-spacing: -0.065em;
}
.name__op { color: var(--magenta); font-weight: 500; font-size: 0.7em; translate: 0 -0.08em; }
.name__part--it { color: var(--magenta); }
.name__lead { margin: clamp(32px, 4vw, 56px) 0 clamp(72px, 10vw, 150px); max-width: 30rem; font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.02em; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.services__head { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin-bottom: 20px; }
.services__head span { color: var(--mute-paper); font-weight: 450; }
.svc { border-top: 1px solid var(--line-paper); }
.svc__item { border-bottom: 1px solid var(--line-paper); }
.svc__row {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; text-align: left;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em;
  transition: color 0.3s;
}
@media (hover: hover) { .svc__row:hover { color: var(--magenta-deep); } }
.svc__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-paper); transition: background-color 0.4s var(--ease-out), border-color 0.4s; }
.svc__icon::before, .svc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -0.8px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform 0.5s var(--ease-out); }
.svc__icon::after { transform: rotate(90deg); }
.svc__row[aria-expanded="true"] .svc__icon { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.svc__row[aria-expanded="true"] .svc__icon::after { transform: rotate(0deg); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-out); }
.svc__body > p { overflow: hidden; color: var(--mute-paper); max-width: 34rem; }
.svc__item.is-open .svc__body { grid-template-rows: 1fr; }
.svc__item.is-open .svc__body > p { padding-bottom: 24px; }

/* ---------- Flow (automation demo) ---------- */
.flow { padding: var(--section) var(--gutter); background: var(--paper); color: var(--ink); }
.flow .section-head p { color: var(--mute-paper); }
.flow__panel { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); position: relative; overflow: hidden; }
.flow__track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding-top: 8px; }
.flow__track::before, .flow__track::after {
  content: ""; position: absolute; left: calc(100% / 6 - 5px); right: calc(100% / 12); top: 30px; height: 2px; border-radius: 2px;
}
.flow__track::before { background: var(--line); }
.flow__track::after { background: var(--magenta); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.7s var(--ease-out); }
.flow__node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.flow__dot {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 14px;
  background: var(--ink); border: 2px solid var(--ink-3);
  display: grid; place-items: center;
  transition: background-color 0.5s var(--ease-out), border-color 0.5s, transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.flow__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); transition: background-color 0.4s; }
.flow__node[data-side="market"] .flow__dot::after { border-radius: 3px; }
.flow__node b { font-size: clamp(1rem, 0.8rem + 0.6vw, 1.375rem); font-weight: 650; letter-spacing: -0.025em; }
.flow__node small { font-size: 0.875rem; color: var(--mute); }
.flow__node.is-done .flow__dot, .flow__src.is-done .flow__dot { border-color: var(--magenta); background: var(--magenta); transform: scale(1.08); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8); }
.flow__node.is-done .flow__dot::after, .flow__src.is-done .flow__dot::after { background: var(--white); }
.flow__node--src { gap: 22px; }
.flow__src { position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flow__src .flow__dot { position: relative; z-index: 1; }
/* Każde źródło ma własne odgałęzienie do punktu łączenia przed „Strona” */
.flow__src::after, .flow__src:first-child::before { content: ""; position: absolute; background: var(--line); transition: background-color 0.5s var(--ease-out); }
.flow__src::after { left: 50%; right: -6px; top: 22px; height: 2px; }
.flow__src:first-child::before { left: calc(100% + 4px); top: 22px; width: 2px; height: calc(100% + 24px); }
.flow__track.is-src .flow__src::after, .flow__track.is-src .flow__src:first-child::before { background: var(--magenta); }
.flow__bottom { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: end; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.flow__ctrl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.flow__legend { font-size: 0.875rem; color: var(--mute); display: flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 10px; height: 10px; background: var(--mute); }
.lg--m { border-radius: 3px; }
.lg--i { border-radius: 50%; margin-left: 10px; }

/* ---------- Process ---------- */
.process { padding: var(--section) var(--gutter); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(48px, 6vw, 96px); counter-reset: s; }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step__n {
  display: block; font-size: clamp(4rem, 2rem + 5vw, 8rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.06em;
  color: #6b645e;
  margin-bottom: clamp(24px, 4vw, 56px);
  transition: color 0.5s var(--ease-out);
}
@media (hover: hover) { .step:hover .step__n { color: var(--magenta); } }
.step h3 { font-size: clamp(1.375rem, 1rem + 1vw, 2rem); font-weight: 650; letter-spacing: -0.035em; margin-bottom: 10px; }
.step p { color: var(--mute); }

/* ---------- Contact ---------- */
.contact { padding: var(--section) var(--gutter) 0; }
.contact__title {
  font-size: clamp(4.5rem, 1rem + 17vw, 22rem); font-weight: 740; line-height: 0.8; letter-spacing: -0.065em;
  margin-left: -0.04em; white-space: nowrap;
}
.contact__title span { color: var(--magenta); }
.contact__top {
  display: grid; grid-template-columns: minmax(0, 26rem) auto; justify-content: space-between; align-items: end; gap: 32px;
  margin: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px);
}
.contact__lead { font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.88); }
.contact__direct { display: grid; justify-items: end; gap: 10px; text-align: right; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 0.25em;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.5rem); font-weight: 680; letter-spacing: -0.045em; line-height: 1;
  text-decoration: none !important;
  background: linear-gradient(var(--magenta), var(--magenta)) left bottom / 0% 3px no-repeat;
  padding-bottom: 0.12em; transition: background-size 0.6s var(--ease-out), color 0.3s;
}
.contact__mail svg { width: 0.7em; height: 0.7em; fill: none; stroke: var(--magenta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease-out); }
@media (hover: hover) {
  .contact__mail:hover { background-size: 100% 3px; }
  .contact__mail:hover svg { transform: translate(4px, -4px); }
}
.contact__meta { display: flex; gap: 12px; color: var(--mute); font-size: 1.0625rem; }

/* Formularz na białej karcie */
.form {
  background: var(--white); color: var(--ink); border-radius: clamp(20px, 2vw, 32px);
  padding: clamp(24px, 4vw, 64px); display: grid; gap: clamp(28px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.form ::selection { background: var(--magenta); color: var(--white); }
.form__chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__chips legend { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 680; letter-spacing: -0.03em; margin-bottom: 16px; padding: 0; }
.form__chips label { position: relative; }
.form__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.form__chips span {
  display: inline-flex; height: 48px; align-items: center; gap: 8px; padding: 0 22px; border-radius: 99px;
  background: var(--paper); font-weight: 600; font-size: 1rem;
  transition: background-color 0.3s var(--ease-out), color 0.3s, transform 0.3s var(--ease-out);
}
.form__chips input:checked + span { background: var(--magenta); color: var(--ink); }
.form__chips input:checked + span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.form__chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) { .form__chips label:hover span { background: var(--paper-2); } .form__chips label:hover input:checked + span { background: var(--magenta); } }
.form__chips label:active span { transform: scale(0.97); }
.form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 650; }
.field label i { font-style: normal; font-weight: 450; color: var(--mute-paper); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: 14px;
  padding: 16px 18px; caret-color: var(--magenta);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: #6e6760; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.field input:hover, .field textarea:hover { background: var(--paper-2); }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 0, 144, 0.22); }
.field__err { display: none; font-size: 0.875rem; font-weight: 600; color: #b3005f; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3005f; background: #fff0f6; }
.field.is-invalid .field__err { display: block; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 8px; border-top: 1px solid var(--line-paper); padding-top: clamp(20px, 2.4vw, 32px); }
.form__status { font-weight: 600; color: var(--ink); max-width: 30rem; }
.form .pill--lg { margin-left: auto; }

/* ---------- Footer ---------- */
.footer { padding: var(--section) var(--gutter) 0; overflow: hidden; }
.footer__bye { font-size: var(--fs-display); font-weight: 700; letter-spacing: -0.05em; line-height: 0.92; margin-bottom: clamp(48px, 6vw, 96px); }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__grid nav { display: grid; gap: 6px; align-content: start; }
.footer__grid nav a { font-size: 1.125rem; font-weight: 550; width: fit-content; transition: color 0.3s; }
@media (hover: hover) { .footer__grid nav a:hover { color: var(--magenta); } }
.footer__meta { display: grid; gap: 6px; justify-items: end; text-align: right; color: var(--mute); font-size: 0.9375rem; align-content: start; }
.footer__mark {
  font-size: clamp(3.5rem, 20.5vw, 27rem); font-weight: 780; letter-spacing: -0.07em; line-height: 0.78;
  margin: clamp(48px, 8vw, 120px) -0.04em 0; white-space: nowrap;
  translate: 0 0.08em;
}
.footer__mark span { color: var(--ink); background: var(--magenta); border-radius: 0.12em; padding: 0 0.06em 0 0.02em; margin-left: 0.04em; display: inline-block; transform: rotate(-4deg); }
.footer__mark { color: var(--white); }

/* ---------- Jak pomagamy ---------- */
.cases { padding: var(--section) var(--gutter); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.case { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.case__q { font-size: clamp(1.375rem, 1rem + 0.9vw, 1.875rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.case__a { color: var(--mute); }
.case__r { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.case__r span { color: var(--magenta); }
.cases__cta { margin-top: clamp(32px, 4vw, 56px); }

/* ---------- O nas ---------- */
.team { padding: var(--section) var(--gutter); background: var(--paper); color: var(--ink); }
.team .section-head p { color: var(--mute-paper); }
.team__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.person { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 44px); border-radius: var(--radius); background: var(--white); }
.person__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(20px, 3.5vw, 48px); }
.person__mono {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.04em;
}
.person__side { font-size: 1.75rem; font-weight: 780; letter-spacing: -0.05em; line-height: 1; }
.person--it .person__side { background: var(--magenta); padding: 0.08em 0.3em 0.12em 0.2em; border-radius: 0.2em; transform: rotate(-4deg); }
.person__name { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.045em; line-height: 1.05; }
.person__role { font-weight: 650; color: var(--magenta-deep); }
.person__bio { color: var(--mute-paper); max-width: 34rem; }
.person__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.person__tags li { font-size: 0.8125rem; font-weight: 550; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-paper); }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto auto; gap: 10px; }
  .nav__burger { display: block; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .cases__grid { grid-template-columns: 1fr 1fr; }
  .flow__track::before, .flow__track::after, .flow__src::after, .flow__src:first-child::before { display: none; }
}
/* Przepływ na telefonie i tablecie: pionowa oś, kropka po lewej, opis po prawej.
   SEO schodzi prosto w dół, Reklama dochodzi do osi łukiem z prawej. */
@media (max-width: 1080px) {
  .flow__track { grid-template-columns: 1fr; row-gap: 22px; padding-top: 0; }
  .flow__node, .flow__src {
    display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 2px;
    align-items: center; text-align: left;
  }
  .flow__dot { grid-row: span 2; margin-bottom: 0; }
  .flow__node b, .flow__src b { align-self: end; }
  .flow__node small, .flow__src small { align-self: start; }
  .flow__node--src { grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: start; }
  .flow__node:not(.flow__node--src):not(:last-child)::after {
    content: ""; position: absolute; left: 22px; top: 46px; width: 2px; height: calc(100% - 46px + 22px);
    background: var(--line); transition: background-color 0.5s var(--ease-out);
  }
  .flow__node.is-done:not(:last-child)::after { background: var(--magenta); }
  .flow__src::after, .flow__src:first-child::before { display: block; }
  .flow__src:first-child::before { display: none; }
  .flow__src:first-child::after { left: 22px; right: auto; top: 46px; width: 2px; height: calc(100% - 46px + 22px); }
  .flow__src + .flow__src::after {
    left: calc(10px - 100%); right: calc(100% - 24px); top: 46px; height: calc(100% - 46px + 11px);
    background: none; border: 2px solid var(--line); border-top: 0; border-left: 0; border-bottom-right-radius: 12px;
  }
  .flow__track.is-src .flow__src + .flow__src::after { background: none; border-color: var(--magenta); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; align-items: end; align-content: end; gap: 28px; }
  .hero__offer { grid-column: 1; }
  .hero__hello { font-size: 32.5vw; grid-row: 2; }
  .hero { min-height: 0; padding-top: 96px; }
  .badge { position: relative; inset: auto; grid-row: 1; justify-self: end; width: 140px; margin-bottom: -8px; }
  .badge__ring text { font-size: 17px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .statement__grid { grid-template-columns: 1fr; }
  .contact__top { grid-template-columns: 1fr; }
  .contact__direct { justify-items: start; text-align: left; }
  .contact__mail { font-size: clamp(1.4rem, 6.4vw, 2rem); }
  .contact__title { font-size: 19vw; }
  .wall { grid-template-columns: repeat(2, 1fr); }
  .wall__cell a { aspect-ratio: auto; height: 100%; min-height: 168px; }
  .wall__cell { display: grid; }
  .player { display: none; }
  .work__grid { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile--wide .tile__media { aspect-ratio: 4 / 3; }
  .tile--wide .mock { inset: 9% 7% -6% 34%; }
  .tile__name { right: 18px; font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .tile--wide .tile__name { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .tile__info { flex-direction: column; gap: 14px; }
  .tile__tags { justify-content: flex-start; max-width: none; }
  .services { grid-template-columns: 1fr; gap: 72px; }
  .team__grid { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__meta { grid-column: 1 / -1; justify-items: start; text-align: left; }
}
@media (max-width: 560px) {
  :root { --section: 72px; }
  /* Pierwszy ekran na telefonie: etykieta, „Cześć,”, pytanie, przyciski — i nic więcej */
  .hero { min-height: 100svh; align-content: end; row-gap: 20px; padding-top: 88px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .badge { display: none; }
  .hero__eyebrow {
    display: flex; align-items: center; gap: 10px; grid-row: 1;
    font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute);
  }
  .hero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }
  .hero__hello { font-size: 30vw; margin-bottom: -4px; }
  .hero__offer { gap: 24px; padding-bottom: 0; }
  .hero__offer h1 { font-size: 1.375rem; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 6px; }
  .hero__actions .pill { justify-content: center; }
  .hero__more { justify-content: center; padding: 12px 0; color: var(--mute); }
  .statement__grid { margin: 48px 0; gap: 32px; }
  .name__lead { margin: 24px 0 56px; }
  .services { gap: 48px; }
  .section-head { margin-bottom: 32px; }
  .steps { margin-top: 32px; row-gap: 32px; }
  .step__n { font-size: 3rem; margin-bottom: 16px; }
  .statement__title { font-size: 9.6vw; }
  .name__eq { font-size: 19vw; flex-wrap: nowrap; }
  .pill--nav { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .steps { grid-template-columns: 1fr; }
  .form__fields { grid-template-columns: 1fr; }
  .form .pill--lg { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .rv { opacity: 1; transform: none; filter: none; }
}
