/* =====================================================================
   NOVA Studio — style (mobile-first)
   Kierunek: nowoczesny minimalizm — biel, czerń i lekki fiolet,
   duża typografia, cienkie linie, płynne animacje.
   Wszystkie kolory i odstępy są w tokenach poniżej.
   ===================================================================== */

/* ===== Czcionka Inter (hostowana lokalnie — bez połączeń z serwerami Google) ===== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-latin-ext.woff2") format("woff2"); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== Tokeny ===== */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f6f5fb;
  --raise: #ffffff;
  --ink: #0b0b10;
  --ink-2: #2b2a35;
  --muted: #5f5d6c;
  --line: rgba(11, 11, 16, .09);
  --line-2: rgba(11, 11, 16, .16);
  --accent: #7c5cff;
  --accent-2: #5a3ee6;
  --accent-soft: #efeaff;
  --danger: #d6455d;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --gutter: 16px;
  --header-h: 60px;
  --section-y: clamp(5.5rem, 13vw, 11rem);
}
@media (min-width: 375px) { :root { --gutter: 20px; } }
@media (min-width: 480px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 68px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ===== Baza ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--bg); }
html.intro-pending { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #07070a; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

/* delikatne „ziarno taśmy” nad całą stroną */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: var(--gutter); top: 8px; z-index: 300; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

.label { display: inline-flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.label__count { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 rgba(124, 92, 255, .4); }

/* ===== Przyciski ===== */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; text-align: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1.2 var(--font); letter-spacing: -.01em; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease), translate .25s ease-out;
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 14px 34px; font-size: 1.0625rem; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
/* błysk światła przesuwający się po przycisku */
.btn--solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, .45), transparent);
  transition: transform .8s var(--ease);
}
@media (hover: hover) {
  .btn--solid:hover::before { transform: translateX(120%) skewX(-18deg); }
  .btn--line:hover, .btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}

/* ===== Intro (sekwencja tytułowa z kurtyną) ===== */
.intro { position: fixed; inset: 0; z-index: 200; display: none; cursor: pointer; animation: intro-failsafe .01s 7s forwards; }
.intro-pending .intro { display: block; }
.intro__curtain { position: absolute; left: 0; right: 0; height: 50.2%; background: #0b0b10; transition: transform 1.15s var(--ease-io); will-change: transform; }
.intro__curtain--t { top: 0; }
.intro__curtain--b { bottom: 0; }
.intro.is-open .intro__curtain--t { transform: translateY(-101%); }
.intro.is-open .intro__curtain--b { transform: translateY(101%); }
.intro__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 20px; transition: opacity .45s ease, transform .7s var(--ease); }
.intro.is-closing .intro__center { opacity: 0; transform: scale(1.08); }
.intro__mark { width: 46px; height: 46px; background: var(--ink); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: mark-in 1.4s var(--ease) both; }
.intro__name { font-size: 1.125rem; letter-spacing: -.02em; color: var(--muted); animation: rise .9s .25s var(--ease) both; }
.intro__name b { color: var(--ink); font-weight: 700; }
.intro__count { font-size: .8125rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--muted); }
.intro__bar { display: block; width: min(220px, 52vw); height: 1px; background: var(--line); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
@keyframes mark-in { from { transform: scale(.4) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-failsafe { to { visibility: hidden; pointer-events: none; } }

/* ===== Pasek postępu ===== */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 80; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); pointer-events: none; }


/* ===== Nagłówek i menu ===== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(255, 255, 255, .86); }
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { background: var(--bg); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { margin-right: auto; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 700; font-size: 1.125rem; letter-spacing: -.03em; }
.brand span { font-weight: 400; color: var(--muted); margin-left: -3px; }
.brand__mark { width: 18px; height: 18px; background: currentColor; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); transition: transform .8s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.nav, .bar__cta { display: none; }

.menu-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 0 0 0 8px; margin-right: -4px; background: none; border: 0; cursor: pointer; font-size: .9375rem; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.menu-toggle__icon { position: relative; width: 20px; height: 10px; }
.menu-toggle__icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 20px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu:not([hidden]) { animation: fade .35s var(--ease); }
.mobile-menu__nav a { display: flex; align-items: baseline; gap: 16px; min-height: 64px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(2.25rem, 11vw, 3.5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.mobile-menu__nav a span { font-size: .75rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.mobile-menu__nav a:active { color: var(--accent-2); }
.mobile-menu:not([hidden]) .mobile-menu__nav a { animation: rise .7s var(--ease) both; }
.mobile-menu:not([hidden]) .mobile-menu__nav a:nth-child(2) { animation-delay: .06s; }
.mobile-menu:not([hidden]) .mobile-menu__nav a:nth-child(3) { animation-delay: .12s; }
.mobile-menu:not([hidden]) .mobile-menu__nav a:nth-child(4) { animation-delay: .18s; }
.mobile-menu__foot { display: grid; gap: 12px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) { .bar__cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { margin-right: 0; }
  .nav { display: flex; gap: 4px; }
  .nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: .9375rem; color: var(--muted); transition: color .25s; }
  .nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
  .nav a:hover, .nav a.is-active { color: var(--ink); }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
  .bar__cta { justify-self: end; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ===== Okno przeglądarki (frame) ===== */
.frame { background: #ffffff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -32px rgba(30, 18, 80, .32), 0 2px 6px rgba(30, 18, 80, .05); }
.frame__bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #f3f2f8; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d3d0de; flex: none; }
.frame__bar span { margin-left: 8px; font-size: .6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4.5rem, 10vw, 8rem); }
.hero::after { content: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
/* reflektor podążający za kursorem */
.spot {
  position: absolute; z-index: 0; left: 0; top: 0; width: 780px; height: 780px; margin: -390px 0 0 -390px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .22), rgba(124, 92, 255, .07) 55%, rgba(124, 92, 255, 0));
  transform: translate3d(60vw, 620px, 0); will-change: transform;
}

.hero__title { margin-top: clamp(1.5rem, 5vw, 2.5rem); font-size: clamp(2.5rem, 12.8vw, 4.75rem); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.hero__title .l { display: block; }
.hero__side { margin-top: clamp(1.75rem, 5vw, 2.5rem); max-width: 34rem; }
.hero__lead { font-size: 1.1875rem; line-height: 1.5; color: var(--muted); }
.hero__actions { display: grid; gap: 12px; margin-top: 1.75rem; }

/* scena z oknami projektów — wersja statyczna (bez JS / z ograniczonym ruchem) */
.stage { position: relative; margin-top: clamp(2.5rem, 6vw, 4rem); }
.stage__side, .orbit, .floor, .stage__cap { display: none; }
.stage__main { position: relative; z-index: 2; }
.stage .frame { translate: calc(var(--mx, 0) * var(--d, 0) * 1px) calc(var(--py, 0px) * var(--d, 0)); }
.stage__main { --d: .5; }
.stage__side { --d: 1.4; }
@media (max-width: 599px) {
  .stage__main img { aspect-ratio: 4 / 3; }
  .stage__side--r { display: block; position: relative; z-index: 3; width: 82%; margin: -44px 0 0 auto; }
  .stage__side--r img { aspect-ratio: 16 / 10; }
}
@media (min-width: 480px) { .hero__actions { grid-template-columns: repeat(2, auto); justify-content: start; } }
@media (min-width: 600px) {
  .stage { aspect-ratio: 2.75 / 1; }
  .stage__side, .stage__main { display: block; position: absolute; }
  .stage__main { left: 50%; top: 0; width: 60%; transform: translateX(-50%); }
  .stage__side { top: 16%; width: 40%; z-index: 1; }
  .stage__side--l { left: 0; }
  .stage__side--r { right: 0; }
}
@media (min-width: 768px) {
  .hero__title { font-size: clamp(4rem, 9.2vw, 6rem); }
  .hero__title .l:nth-child(1), .hero__title .l:nth-child(2) { display: inline; }
  .hero__lead { font-size: 1.3125rem; }
}
@media (min-width: 1024px) {
  .hero { --h1: clamp(4.75rem, 7.2vw, 6.75rem); }
  .hero__title { font-size: var(--h1); grid-row: 2; }
  .hero .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .eyebrow, .hero__title, .stage { grid-column: 1 / -1; }
  /* „wrażenie.” zostaje w ostatniej linii, a tekst z przyciskami siada obok niej */
  .hero__side { grid-column: 8 / -1; grid-row: 3; align-self: end; max-width: none; margin-top: calc(var(--h1) * -1); }
  .stage { grid-row: 4; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__actions { grid-template-columns: 1fr; justify-items: start; }
}

/* scena — karuzela 3D (włączana skryptem) */
.stage.is-carousel { aspect-ratio: 1.12 / 1; perspective: 1500px; perspective-origin: 50% 35%; }
.is-carousel .frame { position: absolute; display: block; left: 50%; top: 0; width: 82%; margin: 0; transform-origin: 50% 60%; will-change: transform, opacity; }
.is-carousel .frame img { aspect-ratio: 4 / 3; }
.is-carousel .orbit { display: block; position: absolute; left: 2%; right: 2%; top: 38%; bottom: -8%; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.is-carousel .orbit--b { left: 12%; right: 12%; top: 48%; bottom: -2%; }
.is-carousel .floor { display: block; position: absolute; left: 14%; right: 14%; bottom: 0; height: 24%; pointer-events: none; background: radial-gradient(closest-side, rgba(124, 92, 255, .3), rgba(124, 92, 255, 0)); filter: blur(10px); }
.is-carousel .stage__cap { display: flex; position: absolute; left: 0; right: 0; bottom: -6px; z-index: 300; justify-content: center; align-items: baseline; gap: 12px; font-size: .875rem; color: var(--muted); }
.stage__n { font-variant-numeric: tabular-nums; }
.stage__name { color: var(--ink); font-weight: 500; }
.stage__cap.swap .stage__name { animation: rise .7s var(--ease); }
@media (min-width: 600px) {
  .stage.is-carousel { aspect-ratio: 2.1 / 1; }
  .is-carousel .frame { width: 54%; }
  .is-carousel .frame img { aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) { .stage.is-carousel { aspect-ratio: 2.55 / 1; } }

/* ===== Pasek słów ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1rem, 2.6vw, 1.75rem); }
.marquee__track { display: flex; width: max-content; }
.marquee p { display: flex; flex: none; align-items: center; gap: clamp(1.25rem, 3.5vw, 3rem); padding-right: clamp(1.25rem, 3.5vw, 3rem); font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; white-space: nowrap; }
.marquee i { font-style: normal; font-size: .5em; color: var(--accent); }
.marquee .o { color: transparent; -webkit-text-stroke: 1px var(--ink); }

/* ===== Podejście (tekst rozświetlany przy przewijaniu) ===== */
.manifesto { padding-block: var(--section-y) calc(var(--section-y) * .7); }
.manifesto .label { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.manifesto__text { max-width: 26ch; font-size: clamp(1.75rem, 5.8vw, 4.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
@media (min-width: 1024px) { .manifesto__text { max-width: 30ch; } }
.sw { display: inline; }

/* ===== Sekcje ===== */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(2.75rem, 7vw, 5rem); }
.section__head h2 { font-size: clamp(2.25rem, 8.6vw, 4.75rem); line-height: 1.02; letter-spacing: -.05em; max-width: 16ch; }
.section__note { max-width: 28rem; color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 768px) {
  .section__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; column-gap: 32px; }
  .section__head .label { grid-column: 1 / -1; }
  .section__note { justify-self: end; }
}

/* maski tekstu (słowa/linie wjeżdżają spod krawędzi) */
.w { display: inline-block; vertical-align: top; clip-path: inset(-.14em -.12em -.3em -.12em); }
.wi { display: block; }
.hero__title .l .w { display: block; }
.hero__title .l:nth-child(1) .w, .hero__title .l:nth-child(2) .w { display: inline-block; }
@media (max-width: 767px) { .hero__title .l .w { display: block; } }

/* ===== Projekty ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .9375rem; transition: background-color .25s, color .25s, border-color .25s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.projects { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(4rem, 11vw, 6rem) 32px; }
.card { position: relative; display: flex; flex-direction: column; gap: 24px; cursor: pointer; }
.card__frame { transform: perspective(1300px) rotateX(var(--rx, 0deg)); transform-origin: 50% 90%; }
.card__media { position: relative; overflow: hidden; background: var(--raise); }
.card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%); }
.card__media img, .card__media .ph { width: 100%; aspect-ratio: 4 / 3; transition: transform 1s var(--ease); }
.card__media img { height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; background: var(--raise); color: var(--muted); }
.ph__t { font-size: clamp(2.5rem, 9vw, 5rem); font-weight: 600; letter-spacing: -.05em; }
.card__info { display: grid; gap: 10px; align-content: start; }
.card__meta { min-height: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.badge { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font-size: .6875rem; }
.card h3 { font-size: clamp(1.75rem, 6.6vw, 2.5rem); line-height: 1.05; letter-spacing: -.045em; overflow-wrap: anywhere; }
.card__desc { color: var(--muted); max-width: 36rem; }
.card__link { display: inline-flex; align-items: center; gap: .4em; width: max-content; min-height: 44px; margin-top: 2px; font-weight: 500; line-height: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:focus-within .card__frame { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.card__link:focus-visible { outline: none; }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
.empty, .noscript-list { color: var(--muted); }
.noscript-list { display: grid; gap: 8px; }
.noscript-list a { text-decoration: underline; }
.projects-more { display: flex; justify-content: center; margin-top: clamp(3rem, 8vw, 4.5rem); }

@media (hover: hover) {
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__media::after { opacity: 1; }
  .card:hover .arrow { transform: translate(3px, -3px); }
}
.card:active .card__media img { transform: scale(1.015); }

@media (min-width: 768px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(4.5rem, 8vw, 7rem); }
  .card--featured, .card--wide { grid-column: 1 / -1; }
  .card__media img, .card__media .ph { aspect-ratio: 16 / 10; }
  .card--featured .card__media img, .card--wide .card__media img, .card--featured .card__media .ph, .card--wide .card__media .ph { aspect-ratio: 16 / 9; }
  .card h3 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
}
@media (min-width: 1024px) {
  .card--featured { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; column-gap: 40px; }
  .card--featured h3 { font-size: clamp(2.5rem, 4vw, 3.75rem); }
  .card--wide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: 40px; }
  .card--wide:nth-of-type(even) .card__frame { order: 2; }
}

/* ===== Usługi ===== */
.services { display: grid; }
.service-list { border-bottom: 1px solid var(--line); }
.service { position: relative; display: grid; gap: 10px; padding-block: 30px; border-top: 1px solid var(--line); transition: background-color .4s, padding-left .5s var(--ease); }
.service__n { font-size: .8125rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.service h3 { font-size: clamp(1.5rem, 5.6vw, 2.125rem); line-height: 1.1; letter-spacing: -.04em; }
.service p { color: var(--muted); max-width: 32rem; }
@media (min-width: 768px) {
  .service { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 16px; padding-block: 36px; }
  .service h3, .service p { grid-column: 2; }
}
@media (min-width: 1024px) {
  .services { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .services__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); display: block; }
  .services__head h2 { margin-top: 16px; max-width: 12ch; }
  .service-list { grid-column: 6 / -1; }
  .service { padding-block: 42px; }
}
@media (hover: hover) and (min-width: 1024px) {
  .service:hover { background: var(--bg-2); padding-left: 16px; }
}

/* ===== Proces ===== */
.steps { --sp: 1; position: relative; display: grid; padding-left: 38px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.steps::after { background: var(--accent); transform: scaleY(var(--sp)); transform-origin: top; }
.step { position: relative; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -38px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background-color .5s, border-color .5s, box-shadow .6s; }
.step.on::before, html:not(.motion) .step::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 7px rgba(124, 92, 255, .16); }
.step__n { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.step h3 { font-size: clamp(1.75rem, 6.6vw, 2.25rem); line-height: 1.05; letter-spacing: -.045em; }
.step p { margin-top: 10px; color: var(--muted); max-width: 22rem; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; padding: 44px 0 0; }
  .steps::before, .steps::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; }
  .steps::after { transform: scaleX(var(--sp)); transform-origin: left; }
  .step { padding-bottom: 0; }
  .step::before { left: 0; top: -45px; }
  .step h3 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; padding-top: 0; }
  .steps::before, .steps::after { display: none; }
  .step { padding-top: 24px; border-top: 1px solid var(--line-2); transition: border-color .6s; }
  .step.on { border-top-color: var(--accent); }
  .step::before { display: none; }
}

/* ===== Kontakt i formularz ===== */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--bg-2); padding-block: var(--section-y); border-top: 1px solid var(--line); }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 55% at 88% 0%, rgba(124, 92, 255, .16), rgba(124, 92, 255, 0) 70%); }
.contact__grid { display: grid; gap: clamp(3rem, 8vw, 4.5rem); }
.contact h2 { margin-top: 18px; font-size: clamp(2.25rem, 10.5vw, 3.5rem); line-height: 1; letter-spacing: -.05em; max-width: 12ch; }
.contact__lead { margin-top: 22px; max-width: 28rem; color: var(--muted); font-size: 1.125rem; }
.contact__actions { display: grid; gap: 12px; margin-top: clamp(1.75rem, 5vw, 2.5rem); }
.contact__list { display: grid; gap: 22px; margin-top: clamp(2.5rem, 7vw, 3.5rem); padding-top: 26px; border-top: 1px solid var(--line); }
.contact__list dt { font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact__list dd { font-size: clamp(1.125rem, 5vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact__list a { display: inline-flex; align-items: center; min-height: 44px; transition: color .25s; }
@media (hover: hover) { .contact__list a:hover { color: var(--accent-2); } }
@media (min-width: 480px) { .contact__actions { grid-template-columns: repeat(2, auto); justify-content: start; } }
@media (min-width: 768px) { .contact h2 { font-size: clamp(3rem, 7vw, 5rem); } }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .contact__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); }
  .contact h2 { font-size: clamp(2.75rem, 4.4vw, 4.5rem); }
  .form-card { grid-column: 7 / -1; }
}

.form-card { position: relative; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--line-2); border-radius: 24px; background: var(--raise); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85); }
.form { display: grid; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row { display: grid; gap: 14px; }

.field__box { position: relative; }
.field input, .field textarea {
  display: block; width: 100%; margin: 0; padding: 26px 0 10px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; outline: none; caret-color: var(--accent-2);
  transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: none; min-height: 132px; }
.field label { position: absolute; left: 0; top: 26px; font-size: 1.0625rem; line-height: 1.5; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .45s var(--ease), color .3s; }
.field label small { font-size: .85em; opacity: .75; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.76); color: var(--accent-2); }
.field__box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-2); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field__box:focus-within::after { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--danger); }
.field.is-invalid label { color: var(--danger); }
.field__err { margin-top: 8px; font-size: .8125rem; color: var(--danger); }
.field__err:empty { display: none; }
.field input:-webkit-autofill, .field textarea:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); box-shadow: 0 0 0 1000px var(--raise) inset; transition: background-color 9999s; }

.chips { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chips legend small { text-transform: none; letter-spacing: 0; opacity: .75; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: .9375rem; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s, transform .2s var(--ease); }
.chip-radio:active span { transform: scale(.97); }
.chip-radio input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 3px; }
@media (hover: hover) { .chip-radio input:not(:checked) + span:hover { border-color: var(--ink); } }

.form__error { padding: 14px 16px; border: 1px solid rgba(255, 157, 157, .45); border-radius: 12px; background: rgba(255, 157, 157, .07); color: var(--ink); font-size: .9375rem; }
.form__error a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.form__foot { display: grid; gap: 14px; margin-top: 6px; }
.form__submit { width: 100%; }
.form__note { font-size: .8125rem; color: var(--muted); }
.btn__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(127, 127, 127, .35); border-top-color: currentColor; animation: spin .7s linear infinite; }
.form.is-sending .btn__spin { display: inline-block; }
.form.is-sending { pointer-events: none; }
.form.is-sending .form__submit { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 600px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .form__foot { grid-template-columns: auto 1fr; align-items: center; column-gap: 22px; }
  .form__submit { width: auto; }
}

.form-done { display: grid; justify-items: start; gap: 14px; padding: clamp(.5rem, 3vw, 1.5rem) 0; outline: none; }
.form-done:not([hidden]) { animation: rise .9s var(--ease) both; }
.form-done h3 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.08; letter-spacing: -.045em; }
.form-done p { color: var(--muted); margin-bottom: 8px; }
.done__check { width: 68px; height: 68px; }
.done__check circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .9s var(--ease) forwards; }
.done__check path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===== Stopka ===== */
.site-footer { position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; padding-bottom: env(safe-area-inset-bottom); }
.footer { padding-top: 44px; }
.footer__top { display: grid; gap: 28px; }
.footer__name { color: var(--ink); font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; margin-bottom: 4px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); transition: color .25s; }
@media (hover: hover) { .footer__nav a:hover { color: var(--accent-2); } }
.footer__mark { margin-top: clamp(2rem, 6vw, 4rem); font-size: clamp(5.5rem, 27vw, 24rem); font-weight: 700; letter-spacing: -.06em; line-height: .8; color: rgba(255, 255, 255, .06); user-select: none; white-space: nowrap; transform: translateY(8%); }
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1fr auto auto; align-items: center; column-gap: 56px; }
}

/* ===== Warstwa ruchu (tylko gdy użytkownik nie ogranicza animacji) ===== */
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(124, 92, 255, 0); } 0% { box-shadow: 0 0 0 0 rgba(124, 92, 255, .45); } }
  .spot { animation: drift 18s ease-in-out infinite alternate; }
  @keyframes drift { to { translate: 70px 36px; } }
  .marquee__track { animation: marq 42s linear infinite; }
  @keyframes marq { to { transform: translateX(-50%); } }
  .is-carousel .orbit--a { animation: breathe 7s ease-in-out infinite; }
  .is-carousel .orbit--b { animation: breathe 7s ease-in-out -3.5s infinite; }
  @keyframes breathe { 50% { transform: scale(1.04); opacity: .45; } }
  .contact__actions .btn--solid { animation: glow 3s ease-in-out infinite; }
  @keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(124, 92, 255, .22); } 0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); } }
  .field.is-invalid { animation: nudge .4s var(--ease); }
  @keyframes nudge { 25% { translate: -6px 0; } 60% { translate: 5px 0; } }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.motion .eyebrow, .motion .hero__side, .motion .stage { opacity: 0; }
.motion .hero__title { translate: 0 calc(var(--hp, 0) * -36px); opacity: calc(1 - var(--hp, 0) * .6); }
.motion .hero__side { translate: 0 calc(var(--hp, 0) * -18px); }
.hero-in .eyebrow { animation: rise 1s .1s var(--ease) both; }
.hero-in .hero__side { animation: rise 1s .55s var(--ease) both; }
.hero-in .stage { animation: rise 1.1s .35s var(--ease) both; }

/* nagłówek hero: linie wjeżdżają spod maski */
.split-ready .hero__title .wi { transform: translateY(112%); }
.split-ready.hero-in .hero__title .wi { transform: none; transition: transform 1.25s var(--ease) calc(var(--i, 0) * 110ms + 150ms); }
/* nagłówki sekcji: słowo po słowie */
.split-ready .split .wi { transform: translateY(112%); }
.split-ready .split.in .wi { transform: none; transition: transform 1.05s var(--ease) calc(var(--i, 0) * 70ms); }
/* wielki napis w stopce */
.split-ready .footer__mark .wi { transform: translateY(105%); }
.split-ready .footer__mark.in .wi { transform: none; transition: transform 1.3s var(--ease) calc(var(--i, 0) * 110ms); }

/* pojawianie się elementów */
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }

.is-scrub .sw { opacity: .16; transition: opacity .6s ease; }
.is-scrub .sw.on { opacity: 1; }

/* karty projektów */
.motion .card.reveal { opacity: 1; transform: none; }
.motion .card .card__frame { translate: 0 44px; scale: .94; opacity: 0; transition: translate 1.3s var(--ease), scale 1.3s var(--ease), opacity 1s var(--ease); }
.motion .card.in .card__frame { translate: 0 0; scale: 1; opacity: 1; }
.motion .card .card__info > * { opacity: 0; translate: 0 16px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.motion .card.in .card__info > * { opacity: 1; translate: 0 0; }
.motion .card.in .card__info > :nth-child(1) { transition-delay: .3s; }
.motion .card.in .card__info > :nth-child(2) { transition-delay: .38s; }
.motion .card.in .card__info > :nth-child(3) { transition-delay: .46s; }
.motion .card.in .card__info > :nth-child(4) { transition-delay: .54s; }

/* usługi */
.motion .service::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease); }
.motion .service.in::before { transform: scaleX(1); }
.motion .service:not(.in) h3 { translate: -18px 0; }
.motion .service h3 { transition: translate 1s var(--ease) .1s; }

/* proces: linia i punkty rysowane razem z przewijaniem */
.motion .steps { --sp: 0; }
.motion .card__media img { scale: 1.06; will-change: translate; }

/* ===== Dokumenty prawne ===== */
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .875rem; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .25s; }
@media (hover: hover) { .footer__legal a:hover { color: var(--accent-2); } }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.doc-page .bar { display: flex; }
.doc-back { margin-left: auto; }
.doc.wrap { max-width: calc(52rem + 2 * var(--gutter)); padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 8rem); }
.doc h1 { margin: 18px 0 12px; font-size: clamp(2.25rem, 8vw, 4.5rem); line-height: 1.02; letter-spacing: -.05em; }
.doc__meta { margin-bottom: clamp(2rem, 6vw, 3.5rem); color: var(--muted); font-size: .9375rem; }
.doc__lead { font-size: clamp(1.125rem, 2.4vw, 1.375rem); line-height: 1.5; color: var(--ink); margin-bottom: 1rem; }
.doc h2 { margin: clamp(2.25rem, 5vw, 3rem) 0 .75rem; font-size: clamp(1.375rem, 3.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.03em; }
.doc h3 { margin: 1.5rem 0 .5rem; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; }
.doc p { margin-bottom: .9rem; }
.doc ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; }
.doc ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 1rem; }
.doc li { margin-bottom: .5rem; padding-left: .25rem; }
.doc li::marker { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (hover: hover) { .doc a:hover { color: var(--accent-2); } }
.doc code { padding: 2px 6px; border-radius: 6px; background: var(--raise); border: 1px solid var(--line); font-size: .9em; }
.doc__table { margin: 0 0 1rem; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.doc__table > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
.doc__table > div + div { border-top: 1px solid var(--line); }
.doc__table [role="columnheader"] { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.doc__table > div:first-child { display: none; }
.doc__table [role="cell"] { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
@media (min-width: 768px) {
  .doc__table > div { grid-template-columns: 9rem minmax(0, 1fr) 11rem; gap: 20px; }
  .doc__table > div:first-child { display: grid; background: var(--raise); }
}
.todo { padding: 0 .3em; border-radius: 4px; background: rgba(255, 157, 157, .16); color: var(--danger); font-weight: 600; }

/* ===== Strona „Dziękuję” (wersja bez JavaScriptu) ===== */
.thanks { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 18px; padding: var(--gutter); max-width: 40rem; margin-inline: auto; }
.thanks h1 { font-size: clamp(2.5rem, 9vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.thanks p { color: var(--muted); font-size: 1.125rem; }

/* ===== Ograniczony ruch ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .done__check circle, .done__check path { stroke-dashoffset: 0; }
  .progress, .intro { display: none !important; }
}

/* =====================================================================
   WARSTWA „MINIMAL” — biel, czerń, lekki fiolet
   ===================================================================== */
body::after { opacity: .028; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline-color: var(--accent); }

/* sekcje ciemne (odwrócone kolory): intro, kontakt, stopka */
.intro, .contact, .site-footer {
  --bg: #0b0b10; --bg-2: #0b0b10; --raise: #15141c; --ink: #f5f4fa; --ink-2: #d9d7e4; --muted: #a3a0b3;
  --line: rgba(255, 255, 255, .11); --line-2: rgba(255, 255, 255, .2); --accent-2: #b3a1ff;
  color: var(--ink);
}
.contact::before { background: radial-gradient(60% 60% at 90% 0%, rgba(124, 92, 255, .28), rgba(124, 92, 255, 0) 70%); }
.site-footer { background: var(--bg); }

/* typografia: nowoczesny grotesk, akcent w fiolecie */
em { font-style: normal; color: var(--accent-2); }
.hero__title, .section__head h2, .contact h2, .manifesto__text { font-weight: 600; }
.hero__title { letter-spacing: -.055em; }
.section__head h2, .contact h2 { letter-spacing: -.05em; }

/* etykiety sekcji z numerem */
.label { gap: 12px; font-size: .75rem; letter-spacing: .14em; font-weight: 600; }
.label::before { width: 22px; background: var(--accent); }
.label__n { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.label__count { color: var(--accent-2); }
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.eyebrow b { color: var(--ink); font-weight: 700; }
@media (max-width: 767px) {
  .eyebrow { display: block; line-height: 1.7; }
  .eyebrow .dot { display: inline-block; vertical-align: middle; margin: -2px 10px 0 0; }
  .eyebrow b { white-space: nowrap; }
}

/* marka i nawigacja */
.brand span { color: var(--accent-2); font-weight: 500; }
.brand__mark { background: var(--accent); }
.nav a::after { background: var(--accent); height: 2px; border-radius: 2px; }

/* przyciski */
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
@media (hover: hover) {
  .btn--solid:hover { background: var(--accent); color: #fff; }
  .btn--line:hover, .btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}

/* hero */
.hero { background:
  radial-gradient(60% 50% at 85% 10%, rgba(124, 92, 255, .10), rgba(124, 92, 255, 0) 70%),
  linear-gradient(rgba(11, 11, 16, .045) 1px, transparent 1px) 0 0 / 100% 96px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .0), #fff 92%); }
.spot { background: radial-gradient(closest-side, rgba(124, 92, 255, .20), rgba(124, 92, 255, .06) 55%, rgba(124, 92, 255, 0)); }
.hero__sign { margin-top: 16px; font-size: .9375rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.hero__sign::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.stage__name { color: var(--ink); font-weight: 600; }
.is-carousel .floor { background: radial-gradient(closest-side, rgba(124, 92, 255, .35), rgba(124, 92, 255, 0)); }
@media (min-width: 1280px) {
  .hero__side { grid-column: 7 / -1; }
  .hero__actions .btn { white-space: nowrap; }
}

/* pasek słów */
.marquee { background: var(--ink); border: 0; }
.marquee p { color: #fff; }
.marquee .o { -webkit-text-stroke: 1px rgba(255, 255, 255, .8); }
.marquee i { color: #a48dff; }

/* tekst rozświetlany */
.is-scrub .sw { opacity: .14; }

/* projekty */
.card__idx { color: var(--accent-2); font-variant-numeric: tabular-nums; font-weight: 700; }
.card__meta { gap: 12px; }
.card__meta > span + span:not(.badge)::before { content: ""; display: inline-block; vertical-align: middle; width: 14px; height: 1px; margin-right: 12px; background: var(--line-2); }
.card__link { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.card__link .arrow { color: var(--accent-2); }
.card h3 { transition: color .35s var(--ease); }
@media (hover: hover) { .card:hover h3 { color: var(--accent-2); } }
.card__media::after { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(124, 92, 255, .18), rgba(124, 92, 255, 0) 60%); }
.motion .card .card__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-io) .1s; }
.motion .card.in .card__media { clip-path: inset(0 0 0 0); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* usługi i proces */
.section--alt { background: var(--bg-2); }
.service__n, .step__n { color: var(--accent-2); font-weight: 700; }
.step::before { background: var(--bg); }

/* kontakt */
.form-card { background: var(--raise); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); }
.contact__list dd { font-weight: 600; }
.chip-radio input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.field__box::after { background: var(--accent-2); }

/* stopka */
.footer__name em { color: var(--accent-2); }
.footer__brand strong { color: var(--ink); font-weight: 600; }
.footer__mark { color: transparent; -webkit-text-stroke: 1px rgba(164, 141, 255, .28); font-weight: 700; letter-spacing: -.06em; font-size: clamp(6rem, 30vw, 27rem); line-height: .82; }

/* podstrony */
.doc h1 { font-weight: 600; }
.doc h2 { letter-spacing: -.03em; }
.nf { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 22px; padding: var(--gutter); max-width: 44rem; margin-inline: auto; }
.nf h1 { font-size: clamp(3.25rem, 14vw, 7rem); line-height: .95; letter-spacing: -.055em; }
.nf p { color: var(--muted); font-size: 1.125rem; }

/* ===== Dopracowanie treści i czytelności (usługi, opisy, karty) ===== */
.hero__lead { max-width: 38rem; line-height: 1.6; }
.section__note { line-height: 1.65; }
.service p { max-width: 38rem; line-height: 1.7; color: var(--ink-2); }
.service p + p { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.service__points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.service__points li { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: .8125rem; font-weight: 500; line-height: 1.3; }
@media (min-width: 768px) { .service__points { grid-column: 2; } }
.services__cta { margin-top: 10px; justify-self: start; }
@media (min-width: 768px) { .services__head .section__note { justify-self: start; grid-column: 1 / -1; } .services__cta { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .services__head .section__note { margin-top: 18px; } .services__cta { margin-top: 26px; } }
.step p { max-width: 24rem; line-height: 1.65; }
.contact__lead { max-width: 32rem; line-height: 1.65; }
.card__desc { line-height: 1.65; }
.card__frame { transition: box-shadow .5s var(--ease); }
@media (hover: hover) { .card:hover .card__frame { box-shadow: 0 40px 80px -34px rgba(60, 30, 160, .38), 0 2px 6px rgba(30, 18, 80, .06); } }
.btn:focus-visible { outline-offset: 4px; }
@media (min-width: 1024px) { .hero__lead { font-size: 1.1875rem; } }

/* =====================================================================
   UKŁAD v2 — wyśrodkowany hero, bento z usługami, karty procesu,
   przesunięta siatka projektów
   ===================================================================== */

/* ---- HERO: wyśrodkowana kompozycja ---- */
.hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .eyebrow { display: inline-flex; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__title { margin-top: clamp(1.5rem, 4vw, 2.25rem); }
.hero__title .l { display: block !important; }
.hero__title .l:nth-child(1), .hero__title .l:nth-child(2) { display: inline !important; }
.hero__title .l:nth-child(2)::after { content: "\A"; white-space: pre; }
.hero__side { margin: clamp(1.5rem, 4vw, 2rem) auto 0 !important; max-width: 40rem !important; display: flex; flex-direction: column; align-items: center; }
.hero__lead { margin-inline: auto; }
.hero__sign { justify-content: center; }
.hero__actions { justify-content: center; width: 100%; }
@media (min-width: 480px) { .hero__actions { width: auto; } }
.stage { width: 100%; }
@media (min-width: 1024px) {
  .hero { --h1: clamp(5rem, 8.4vw, 8.25rem); }
  .hero .wrap { display: flex; }
  .hero__title { font-size: var(--h1); }
  .hero__lead { font-size: 1.25rem; }
  .stage { margin-top: clamp(3rem, 5vw, 4.5rem); }
}
@media (max-width: 767px) {
  .hero .wrap { align-items: flex-start; text-align: left; }
  .hero .eyebrow { display: block; }
  .hero__title .l:nth-child(1), .hero__title .l:nth-child(2) { display: block !important; }
  .hero__title .l:nth-child(2)::after { content: none; }
  .hero__side { align-items: flex-start; margin-left: 0 !important; }
  .hero__lead { margin-inline: 0; }
  .hero__sign { justify-content: flex-start; }
}

/* ---- projekty: przesunięta siatka (druga kolumna niżej) ---- */
@media (min-width: 1024px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 64px); row-gap: clamp(4rem, 7vw, 6.5rem); align-items: start; }
  .card--featured, .card--wide { grid-column: 1 / -1; }
  .card:not(.card--featured):not(.card--wide):nth-child(odd) { margin-top: clamp(4rem, 9vw, 9rem); }
}
.card__frame { border-radius: 16px; }

/* ---- USŁUGI: bento ---- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 24px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(30, 18, 80, .04);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .9s var(--ease);
  overflow: hidden;
}
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(60, 30, 160, .28); border-color: rgba(124, 92, 255, .3); }
}
.tile h3 { font-size: clamp(1.5rem, 5.4vw, 2rem); line-height: 1.08; letter-spacing: -.04em; }
.tile p { color: var(--ink-2); line-height: 1.7; max-width: 40rem; }
.tile__n { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.tile__fine { font-size: .9375rem; color: var(--muted) !important; }
.tile__points { display: grid; gap: 8px; margin-top: 6px; }
.tile__points li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.ico { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.tile--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile--dark h3 { color: #fff; }
.tile--dark p { color: rgba(255, 255, 255, .78); }
.tile--dark .tile__n { color: #b3a1ff; }
.tile--dark .tile__points li { color: #fff; }
.tile--dark .ico { background: rgba(124, 92, 255, .25); stroke: #c9bcff; }
.tile--dark::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 92, 255, .45), rgba(124, 92, 255, 0)); pointer-events: none; }
.tile--accent { background: var(--accent-soft); border-color: rgba(124, 92, 255, .2); }

/* urządzenia (dekoracja w kafelku responsywności) */
.devices { display: flex; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 14px; height: 110px; }
.dv { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; }
.dv b { display: block; height: 5px; border-radius: 3px; background: var(--line-2); }
.dv b:first-child { background: var(--accent); width: 60%; }
.dv--desk { width: 46%; height: 92px; }
.dv--tab { width: 24%; height: 78px; border-radius: 10px; }
.dv--phone { width: 14%; height: 64px; border-radius: 10px; }

/* wynik wyszukiwania (ilustracja tytułu i opisu meta) */
.serp { display: grid; gap: 4px; margin: 0; padding: 18px 18px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -28px rgba(30, 18, 80, .35); text-align: left; }
.serp__site { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ink-2); }
.serp__site i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.serp__title { font-size: 1.125rem; font-weight: 500; color: #1a0dab; letter-spacing: -.01em; }
.serp__desc { font-size: .875rem; line-height: 1.55; color: var(--muted); }
.serp figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.tile--seo { gap: 24px; }
.tile__body, .tile__aside { display: flex; flex-direction: column; gap: 12px; }

/* pasek szybkości */
.speed { margin-top: auto; padding-top: 10px; }
.speed i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #b3a1ff); transform-origin: left; }
.motion .tile .speed i { transform: scaleX(.08); transition: transform 1.6s var(--ease) .3s; }
.motion .tile.in .speed i { transform: scaleX(1); }

.tile--wide { gap: 20px; }
.tile--wide .btn { align-self: flex-start; }

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .tile--a, .tile--b, .tile--seo { grid-column: span 6; }
  .tile--c { grid-column: span 3; }
  .tile--accent { grid-column: span 6; }
  .tile--wide { grid-column: span 6; flex-direction: row; align-items: center; justify-content: space-between; }
  .tile--wide .btn { align-self: center; flex: none; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  .tile--a { grid-column: span 7; }
  .tile--b { grid-column: span 5; }
  .tile--seo { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; column-gap: 48px; }
  .tile--c, .tile--accent { grid-column: span 4; }
  .tile--wide { grid-column: span 12; }
  .tile h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }
}

/* ---- PROCES: karty ---- */
.steps { --sp: 1 !important; padding: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps::before, .steps::after { display: none !important; }
.step { padding: clamp(1.5rem, 4vw, 2rem) !important; border: 1px solid var(--line) !important; border-radius: 24px; background: var(--bg-2); transition: background-color .4s, border-color .4s, transform .45s var(--ease), opacity .9s var(--ease); }
.step::before { display: none !important; }
.step__n { display: block; font-size: clamp(3.5rem, 12vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 18px; }
.step h3 { font-size: clamp(1.5rem, 5vw, 1.75rem) !important; letter-spacing: -.04em; }
.step p { max-width: none; }
.step.on { background: #fff; border-color: rgba(124, 92, 255, .3) !important; }
@media (hover: hover) { .step:hover { transform: translateY(-4px); } }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
  .step:nth-child(even) { margin-top: 48px; }
}
.step__n { color: #cfc3ff; -webkit-text-stroke: 0; }
.step.on .step__n { color: var(--accent); }
.step__n { transition: color .6s var(--ease); }
@media (min-width: 1024px) { .hero { --h1: clamp(4.5rem, 7.4vw, 7.25rem); } }
@media (max-width: 767px) {
  .hero .eyebrow { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero__side { width: 100%; }
}
@media (max-width: 479px) { .hero__actions { justify-content: stretch; } }
@media (min-width: 1024px) and (max-width: 1279px) { .hero__actions { grid-template-columns: repeat(2, auto); justify-items: stretch; } }

/* ===== Napis NOVA w stopce — wypełniony, przestrzenny (3D) ===== */
.footer__mark {
  color: #c9bcff;
  -webkit-text-stroke: 0;
  letter-spacing: -.045em;
  transform: perspective(900px) rotateX(18deg) translateY(4%);
  transform-origin: 50% 100%;
  text-shadow:
    1px 1px 0 #a48dff,
    2px 2px 0 #9479ff,
    3px 3px 0 #8566f5,
    4px 4px 0 #7656ea,
    5px 5px 0 #6847dc,
    6px 6px 0 #5b3bcc,
    7px 7px 0 #4f31ba,
    8px 8px 0 #4428a6,
    9px 9px 0 #3a2192,
    10px 10px 0 #301a7d,
    12px 14px 24px rgba(0, 0, 0, .55),
    0 0 60px rgba(124, 92, 255, .25);
}
/* maska animacji wejścia nie może ucinać „głębi” liter */
.footer__mark .w { clip-path: inset(-.2em -.25em -.35em -.2em); }
@media (min-width: 768px) {
  .footer__mark {
    text-shadow:
      1px 1px 0 #a48dff, 2px 2px 0 #9b84ff, 3px 3px 0 #9479ff, 4px 4px 0 #8c6ffc,
      5px 5px 0 #8566f5, 6px 6px 0 #7d5eef, 7px 7px 0 #7656ea, 8px 8px 0 #6f4fe3,
      9px 9px 0 #6847dc, 10px 10px 0 #6141d4, 11px 11px 0 #5b3bcc, 12px 12px 0 #5536c3,
      13px 13px 0 #4f31ba, 14px 14px 0 #4a2cb0, 15px 15px 0 #4428a6, 16px 16px 0 #3f249c,
      17px 17px 0 #3a2192, 18px 18px 0 #351d88,
      22px 26px 40px rgba(0, 0, 0, .6),
      0 0 90px rgba(124, 92, 255, .28);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .footer__mark { transition: transform 1.2s var(--ease); }
  @media (hover: hover) { .site-footer:hover .footer__mark { transform: perspective(900px) rotateX(8deg) translateY(2%); } }
}
.footer__mark { line-height: .9; padding-bottom: clamp(1.25rem, 4vw, 3rem); transform: perspective(900px) rotateX(18deg); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) { .site-footer:hover .footer__mark { transform: perspective(900px) rotateX(6deg); } }
