/* Web Floyd — motyw Noir */
:root {
  --bg: #0b0d14;
  --bg-2: #0f121c;
  --bg-3: #141826;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef0f6;
  --text-2: #c9ccd8;
  --muted: #8e93a8;
  --orange: #ff7547;
  --orange-2: #ff9a75;
  --peri: #a3aaff;
  --ink: #202438;
  --glow: 0 0 0 1px rgba(255, 117, 71, .35), 0 18px 60px -18px rgba(255, 117, 71, .45);
  --display: "Sora", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --wrap: 1180px;
  --header-h: 76px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 117, 71, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.nx-wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.nx-wrap--narrow { width: min(100% - 48px, 760px); }
.nx-sr, .nx-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nx-skip:focus { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; border-radius: 99px; background: var(--orange); color: var(--ink); font-weight: 600; }

/* ---------- Typografia ---------- */
.nx-display { font-family: var(--display); font-size: clamp(48px, 7.2vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.nx-display span, .nx-h2 span { color: var(--orange); background: linear-gradient(100deg, var(--orange) 10%, var(--orange-2) 60%, #ffc2a8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nx-display--cta { font-size: clamp(42px, 6vw, 84px); }
.nx-h2 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }
.nx-h2--md { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; }
.nx-eyebrow { color: var(--peri); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.nx-lead { max-width: 60ch; color: var(--text-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7; }
.nx-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(48px, 6vw, 76px); }
.nx-head.is-center { align-items: center; text-align: center; }
.nx-head.is-center .nx-lead { margin-inline: auto; }
.is-center { text-align: center; }

/* ---------- Przyciski ---------- */
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 99px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: transform .35s var(--ease), background-color .3s, border-color .3s, box-shadow .35s, color .3s; }
.nx-btn--primary { background: var(--orange); color: #1b1410; box-shadow: 0 10px 40px -12px rgba(255, 117, 71, .7); }
.nx-btn--primary:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(255, 117, 71, .85); }
.nx-btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); }
.nx-btn--ghost:hover { border-color: rgba(255, 255, 255, .32); background: var(--surface-2); transform: translateY(-2px); }
.nx-btn--link { min-height: 0; padding: 0; color: var(--orange-2); }
.nx-btn--link:hover { color: #ffc2a8; }
.nx-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nx-arrow { display: inline-block; transition: transform .35s var(--ease); }
.nx-btn:hover .nx-arrow { transform: translateX(4px); }
.nx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nx-actions.is-center { justify-content: center; }
.nx-center-link { margin-top: 56px; text-align: center; }

/* ---------- Wejście elementów przy przewijaniu ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Nagłówek ---------- */
.nx-header { position: fixed; z-index: 40; inset: 0 0 auto; height: var(--header-h); display: flex; align-items: center; border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s, backdrop-filter .4s; }
.nx-header.is-scrolled { background: rgba(11, 13, 20, .72); border-color: var(--line); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.preview-bar { position: fixed; z-index: 60; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding: 9px 16px; background: #363fa3; color: #fff; font: 600 12px/1.4 var(--body); }
.preview-bar a { text-decoration: underline; text-underline-offset: 3px; }
.nx-header-inner { display: flex; align-items: center; gap: 22px; }
.nx-brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; font-family: var(--display); font-size: 21px; letter-spacing: -.05em; }
.nx-brand-word { font-weight: 300; }
.nx-brand-word b { font-weight: 700; }
.nx-brand-symbol { display: inline-flex; align-items: end; gap: 3px; width: 24px; height: 22px; transform: skewX(-24deg); }
.nx-brand-symbol i { display: block; width: 5px; border-radius: 4px 4px 1px 1px; background: var(--orange); transition: height .5s var(--ease); }
.nx-brand-symbol i:nth-child(1) { height: 11px; }
.nx-brand-symbol i:nth-child(2) { height: 20px; background: var(--peri); }
.nx-brand-symbol i:nth-child(3) { height: 15px; }
.nx-brand:hover .nx-brand-symbol i:nth-child(1) { height: 17px; }
.nx-brand:hover .nx-brand-symbol i:nth-child(3) { height: 9px; }
.nx-nav { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, .02); }
.nx-nav a { padding: 8px 15px; border-radius: 99px; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .25s, background-color .25s; }
.nx-nav a:hover, .nx-nav a.is-active { color: var(--text); background: var(--surface-2); }
.nx-nav .nx-nav-cta { display: none; }
.nx-burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; }
.nx-burger span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: var(--text); transition: transform .3s var(--ease); }
.nx-open .nx-burger span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nx-open .nx-burger span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.nx-admin { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; margin-left: -8px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); transition: background-color .25s, color .25s; }
.nx-admin:hover { background: var(--text); color: var(--bg); }

/* ---------- Sekcje: wspólne ---------- */
.nx-section { position: relative; padding: clamp(96px, 12vw, 150px) 0; }
.nx-card { position: relative; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); transition: border-color .4s, background-color .4s, box-shadow .5s, transform .5s var(--ease); }
.nx-icon-box { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--orange-2); }
.nx-num { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.nx-grid-bg::before, .nx-layers::before, .nx-tech::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%); opacity: .55; }
.nx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-tags li { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: 12.5px; }
.nx-visual { position: relative; }
.nx-canvas { width: 100%; height: 100%; }
.nx-art { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.nx-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 96px; overflow: hidden; isolation: isolate; }
.nx-hero-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 52% at 76% 44%, rgba(255, 117, 71, .16), transparent 70%), radial-gradient(30% 40% at 18% 78%, rgba(99, 110, 255, .14), transparent 70%), radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, .04), transparent 70%); }
.nx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; }
.nx-hero-copy { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 1; }
.nx-hero .nx-display { font-size: clamp(44px, 5.6vw, 84px); }
.nx-hero-lead { max-width: 46ch; }
.nx-hero-stats { display: flex; flex-wrap: wrap; gap: 18px 48px; margin-top: 18px; padding-top: 30px; border-top: 1px solid var(--line); }
.nx-hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.nx-hero-stats strong { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.nx-hero-stats span { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.nx-hero-art { aspect-ratio: 1 / 1.05; }
.nx-hero-art.nx-visual--image img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.nx-badge { position: absolute; right: clamp(18px, 4vw, 60px); bottom: clamp(18px, 5vw, 64px); width: 112px; height: 112px; color: var(--muted); }
.nx-badge svg { width: 100%; height: 100%; animation: nx-spin 22s linear infinite; }
.nx-badge text { fill: currentColor; font: 600 8.6px var(--body); letter-spacing: .28em; }
.nx-badge span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange); font-size: 20px; }
@keyframes nx-spin { to { transform: rotate(360deg); } }

/* ---------- Scena: dwa słowa i kadr ---------- */
.nx-reveal { --grow: 0; --slide: 0; --text: 0; position: relative; height: 280vh; }
.nx-reveal-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.nx-reveal-word { position: absolute; z-index: 3; font-family: var(--display); font-size: clamp(64px, 11.5vw, 190px); line-height: 1; letter-spacing: -.055em; font-weight: 600; white-space: nowrap; pointer-events: none; will-change: transform, opacity; }
.nx-reveal-word--a { top: 11vh; left: 5vw; transform: translateX(calc(var(--slide) * -85vw)); opacity: calc(1 - var(--slide)); color: var(--text); }
.nx-reveal-word--b { bottom: 9vh; right: 4vw; transform: translateX(calc(var(--slide) * 85vw)); opacity: calc(1 - var(--slide)); color: var(--orange-2); }
.nx-reveal-card { position: relative; z-index: 2; width: calc(52vw + 48vw * var(--grow)); height: calc(46svh + 54svh * var(--grow)); border: 1px solid rgba(255, 255, 255, calc(.12 - var(--grow) * .12)); border-radius: calc(28px * (1 - var(--grow))); overflow: hidden; background: var(--bg-2); box-shadow: 0 40px 120px -30px rgba(255, 117, 71, calc(.35 * (1 - var(--grow)))); will-change: width, height; }
.nx-reveal-visual { position: absolute; inset: 0; }
.nx-reveal-visual img { width: 100%; height: 100%; object-fit: cover; }
.nx-reveal-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 20, calc(.85 * var(--text))) 0%, rgba(11, 13, 20, calc(.35 * var(--text))) 55%, transparent 80%); }
.nx-reveal-copy { position: absolute; z-index: 2; left: max(24px, calc((100vw - var(--wrap)) / 2)); top: 50%; display: flex; flex-direction: column; gap: 20px; width: min(520px, calc(100% - 48px)); transform: translateY(calc(-50% + (1 - var(--text)) * 40px)); opacity: var(--text); }
.nx-reveal-copy .nx-lead { font-size: 16px; }

/* ---------- Pas haseł ---------- */
.nx-marquee { display: flex; flex-direction: column; gap: clamp(6px, 1vw, 14px); padding: clamp(56px, 7vw, 100px) 0; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.nx-marquee-row { overflow: hidden; }
.nx-marquee-track { display: flex; width: max-content; will-change: transform; }
.nx-marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.nx-marquee-word { padding: 0 .28em; font-family: var(--display); font-size: clamp(52px, 8.6vw, 132px); line-height: 1.1; letter-spacing: -.045em; font-weight: 600; white-space: nowrap; }
.nx-marquee-word.is-outline { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .28); }
.nx-marquee-dot { flex: 0 0 auto; width: .16em; height: .16em; margin: 0 .3em; border-radius: 50%; background: var(--orange); font-size: clamp(52px, 8.6vw, 132px); box-shadow: 0 0 24px rgba(255, 117, 71, .7); }
html:not(.js) .nx-marquee-track, .nx-reduced .nx-marquee-track { animation: nx-marq 60s linear infinite; }
.nx-reduced .nx-marquee-track { animation: none; }
@keyframes nx-marq { to { transform: translateX(-50%); } }

/* ---------- Logotypy ---------- */
.nx-logos { padding: 34px 0 40px; background: #eceef3; color: #2a2e40; overflow: hidden; }
.nx-logos-title { margin-bottom: 22px; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #5b6075; }
.nx-logos-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.nx-logos-track { display: flex; width: max-content; animation: nx-marq calc(var(--count) * 4.5s) linear infinite; }
.nx-logos-track:hover { animation-play-state: paused; }
.nx-logos-group { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.nx-logos-group > * { display: grid; place-items: center; height: 54px; }
.nx-logos-group img { width: auto; max-width: 150px; max-height: 46px; filter: grayscale(1) contrast(.9); opacity: .7; transition: filter .3s, opacity .3s; }
.nx-logos-group > *:hover img { filter: none; opacity: 1; }
.nx-logos-group span { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.03em; opacity: .6; white-space: nowrap; }

/* ---------- Warstwy ---------- */
.nx-layers { isolation: isolate; overflow-x: clip; }
.nx-layers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.nx-stack-wrap { position: sticky; top: calc(var(--header-h) + 8vh); height: min(520px, 68vh); display: grid; place-items: center; perspective: 1400px; }
.nx-stack { position: relative; width: min(360px, 80%); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-42deg); }
.nx-plane { position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 26px; background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); transform: translateZ(calc((var(--n) - 1 - var(--i)) * 70px)); transition: transform .8s var(--ease), background .6s, border-color .6s, box-shadow .6s, opacity .6s; opacity: .55; }
.nx-plane svg { position: absolute; inset: 12%; width: 76%; height: 76%; }
.nx-plane span { position: absolute; right: 18px; bottom: 14px; color: rgba(255, 255, 255, .6); font: 600 11px var(--body); letter-spacing: .32em; }
.nx-stack[data-active="0"] [data-plane="0"], .nx-stack[data-active="1"] [data-plane="1"], .nx-stack[data-active="2"] [data-plane="2"], .nx-stack[data-active="3"] [data-plane="3"], .nx-stack[data-active="4"] [data-plane="4"] { opacity: 1; border-color: rgba(255, 154, 117, .8); background: linear-gradient(135deg, rgba(255, 117, 71, .34), rgba(255, 117, 71, .06)); box-shadow: 0 0 60px rgba(255, 117, 71, .35); transform: translateZ(calc((var(--n) - 1 - var(--i)) * 70px + 34px)); }
.nx-layer-cards { display: flex; flex-direction: column; gap: 22px; padding: 4vh 0; }
.nx-layer-card { padding: 30px; }
.nx-layer-card.is-active { border-color: rgba(255, 154, 117, .45); box-shadow: var(--glow); background: linear-gradient(180deg, rgba(255, 117, 71, .08), rgba(255, 255, 255, .015)); }
.nx-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.nx-layer-card h3, .nx-tile h3, .nx-step-card h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.nx-layer-card p, .nx-tile p, .nx-step-card p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.7; }

/* ---------- Usługi ---------- */
.nx-srows { border-top: 1px solid var(--line); }
.nx-srow { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) 240px 150px; align-items: center; gap: 28px; padding: 38px 20px; border-bottom: 1px solid var(--line); isolation: isolate; transition: background-color .4s; }
.nx-srow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255, 117, 71, .09), rgba(255, 255, 255, .02) 60%, transparent); opacity: 0; transition: opacity .45s; }
.nx-srow::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--orange), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.nx-srow-num { color: var(--peri); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.nx-srow-body { display: flex; flex-direction: column; gap: 14px; }
.nx-srow h3 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; transition: color .35s; }
.nx-srow p { max-width: 54ch; color: var(--text-2); font-size: 15.5px; }
.nx-srow-media { aspect-ratio: 32 / 22; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 60%, #1a1f30, #0f121c); transition: transform .7s var(--ease), box-shadow .6s, border-color .5s; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.nx-srow-media img { width: 100%; height: 100%; object-fit: cover; }
.nx-srow-more { justify-self: end; color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .3s; }
.nx-srow:hover::before, .nx-srow:focus-visible::before { opacity: 1; }
.nx-srow:hover::after, .nx-srow:focus-visible::after { transform: scaleX(1); }
.nx-srow:hover h3, .nx-srow:focus-visible h3 { color: var(--orange-2); }
.nx-srow:hover .nx-srow-media { transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.08); box-shadow: 0 30px 70px -20px rgba(255, 117, 71, .45); border-color: rgba(255, 154, 117, .35); }
.nx-srow:hover .nx-srow-more { color: var(--orange-2); }

/* ---------- Liczby ---------- */
.nx-stats { padding: clamp(72px, 9vw, 120px) 0; border-block: 1px solid var(--line); background: radial-gradient(70% 120% at 50% 0%, rgba(99, 110, 255, .12), transparent 60%), var(--bg-2); }
.nx-stats .nx-eyebrow { margin-bottom: 40px; }
.nx-stats-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 32px; }
.nx-stat { display: flex; flex-direction: column; gap: 6px; }
.nx-stat strong { font-family: var(--display); font-size: clamp(52px, 6.4vw, 92px); font-weight: 500; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .45)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nx-stat span { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.nx-stat small { color: var(--orange-2); font-size: 13px; }

/* ---------- Kafelki ---------- */
.nx-cards-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; }
.nx-tile { padding: 28px 26px 30px; overflow: hidden; }
.nx-tile .nx-icon-box { margin-bottom: 26px; }
.nx-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 117, 71, .16), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.nx-tile:hover { border-color: rgba(255, 255, 255, .18); transform: translateY(-4px); }
.nx-tile:hover::before { opacity: 1; }

/* ---------- Tekst i wizual ---------- */
.nx-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.nx-split.is-reverse .nx-split-media { order: -1; }
.nx-split-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.nx-split-lead { margin-top: 14px; color: var(--text); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; letter-spacing: -.01em; }
.nx-split-text { color: var(--text-2); }
.nx-split-media { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 50% 55%, #1b2032, #0d1019 70%); aspect-ratio: 32 / 26; }
.nx-split-media > div { width: 100%; height: 100%; transition: transform .7s var(--ease); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.nx-split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Technologie ---------- */
.nx-tech { isolation: isolate; }
.nx-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.nx-tabs button { display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 18px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255, 255, 255, .02); color: var(--text-2); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.nx-tabs button span { color: var(--muted); font-size: 11px; }
.nx-tabs button:hover { color: var(--text); border-color: rgba(255, 255, 255, .28); }
.nx-tabs button[aria-selected="true"] { background: var(--orange); border-color: var(--orange); color: #1b1410; }
.nx-tabs button[aria-selected="true"] span { color: rgba(27, 20, 16, .6); }
.nx-chips[hidden] { display: none; }
.nx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; margin: 0 auto; }
.nx-chips li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 1px solid var(--line-2); border-radius: 99px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); font-size: 15px; animation: nx-chip .6s var(--ease) both; animation-delay: calc(var(--j) * 40ms); }
.nx-chip-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 117, 71, .14); color: var(--orange-2); font-family: var(--display); font-size: 14px; font-weight: 700; }
@keyframes nx-chip { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- Oś procesu ---------- */
.nx-steps-wrap { --fill: 0; position: relative; max-width: 860px; margin: 0 auto; }
.nx-steps-line { position: absolute; top: 26px; bottom: 26px; left: 26px; width: 2px; background: var(--line); }
.nx-steps-line i { position: absolute; inset: 0 0 auto; height: calc(var(--fill) * 100%); background: linear-gradient(180deg, var(--orange), var(--orange-2)); box-shadow: 0 0 16px rgba(255, 117, 71, .6); }
.nx-steps { display: flex; flex-direction: column; gap: 16px; }
.nx-step { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 26px; align-items: start; }
.nx-step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; transition: color .4s, border-color .4s, box-shadow .5s, background-color .4s; }
.nx-step.is-done .nx-step-dot { color: var(--text); border-color: var(--orange); background: #1a1310; box-shadow: 0 0 0 6px rgba(255, 117, 71, .08), 0 0 24px rgba(255, 117, 71, .45); }
.nx-step-card { padding: 24px 28px; }

/* ---------- FAQ ---------- */
.nx-faq-list { display: flex; flex-direction: column; gap: 12px; }
.nx-faq-item { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .025); transition: border-color .3s, background-color .3s; }
.nx-faq-item[open] { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .045); }
.nx-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.nx-faq-item summary::-webkit-details-marker { display: none; }
.nx-faq-icon { position: relative; flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 50%; }
.nx-faq-icon::before, .nx-faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: var(--orange-2); transition: transform .35s var(--ease); }
.nx-faq-icon::after { transform: rotate(90deg); }
.nx-faq-item[open] .nx-faq-icon::after { transform: rotate(0); }
.nx-faq-answer { overflow: hidden; }
.nx-faq-answer p { padding: 0 24px 24px; color: var(--text-2); font-size: 15.5px; max-width: 64ch; }

/* ---------- Wezwanie do kontaktu ---------- */
.nx-cta { position: relative; min-height: 92svh; display: grid; place-items: center; padding: 120px 0 220px; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 100%, rgba(255, 117, 71, .2), transparent 70%), var(--bg); }
.nx-cta-canvas { position: absolute; inset: auto 0 0; z-index: -1; height: 62%; }
.nx-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.nx-cta-inner .nx-lead { margin-inline: auto; }

/* ---------- Moduły wspólne: nagłówek podstrony, tekst, projekty ---------- */
.page-header { width: min(100% - 48px, var(--wrap)); margin-inline: auto; padding: calc(var(--header-h) + 90px) 0 70px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow { color: var(--peri); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.page-header .status-dot { display: none; }
.page-header h1 { margin-top: 24px; font-family: var(--display); font-size: clamp(48px, 7vw, 96px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.page-header h1 span { color: var(--orange); }
.page-header .lead { max-width: 56ch; margin-top: 26px; color: var(--text-2); font-size: 18px; }
.page-header-actions { margin-top: 32px; }
.page-header-actions .contact-button { display: inline-flex; padding: 14px 22px; border-radius: 99px; background: var(--orange); color: #1b1410; font-weight: 600; }
.text-section { padding: clamp(64px, 8vw, 110px) 0; }
.text-section--sand { background: var(--bg-2); }
.text-section--ink { background: #070910; }
.text-inner { width: min(100% - 48px, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: .55fr 1fr; gap: 6%; align-items: start; }
.text-inner > .prose:only-child { grid-column: 2; }
.text-section h2 { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.035em; font-weight: 600; }
.text-section h2 span { color: var(--orange); }
.prose { max-width: 70ch; color: var(--text-2); font-size: 16px; line-height: 1.78; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3, .prose h4 { margin-top: 2em; color: var(--text); font-family: var(--display); letter-spacing: -.02em; line-height: 1.25; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 20px; } .prose h4 { font-size: 17px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--text); }
.prose blockquote { margin-left: 0; padding-left: 18px; border-left: 2px solid var(--orange); color: var(--text); font-size: 18px; }
.projects-section { width: min(100% - 48px, var(--wrap)); margin-inline: auto; padding: clamp(96px, 12vw, 150px) 0; }
.projects-section .section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.projects-section .eyebrow { color: var(--peri); font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.projects-section .eyebrow-separator { opacity: .5; }
.projects-section h2 { margin-top: 18px; font-family: var(--display); font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }
.projects-section h2 span { color: var(--orange); }
.projects-section .section-aside { color: var(--text-2); }
.project-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.project-card { display: flex; flex-direction: column; gap: 16px; }
.project-card--wide { grid-row: span 2; }
.project-image { position: relative; display: block; flex: 1; min-height: 260px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-2); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); }
.project-card:hover .project-image img { transform: scale(1.05); filter: none; }
.project-arrow { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(11, 13, 20, .65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; transition: background-color .3s, color .3s, transform .4s var(--ease); }
.project-card:hover .project-arrow { background: var(--orange); color: #1b1410; transform: rotate(45deg); }
.project-number { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 12px; letter-spacing: .1em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.project-meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.project-meta h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.project-meta p { color: var(--muted); font-size: 14px; }
.project-type { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--text-2); font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.portfolio-note { margin-top: 30px; color: var(--muted); font-size: 13px; }
.note-star { color: var(--orange); }

/* ---------- Stopka ---------- */
.nx-footer { padding: 90px 0 32px; border-top: 1px solid var(--line); background: #080a10; color: var(--text-2); font-size: 14.5px; }
.nx-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.nx-footer-brand { display: flex; flex-direction: column; gap: 20px; }
.nx-footer-brand .nx-brand { margin-right: 0; color: var(--text); align-self: flex-start; }
.nx-footer-brand p { max-width: 28ch; color: var(--muted); }
.nx-footer-brand p span { color: var(--orange-2); }
.nx-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-socials a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; transition: border-color .3s, color .3s; }
.nx-socials a:hover { border-color: var(--orange); color: var(--text); }
.nx-footer-title { margin-bottom: 18px; color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.nx-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.nx-footer-col a { transition: color .25s; }
.nx-footer-col a:hover { color: var(--orange-2); }
.nx-footer-col address { margin-top: 16px; font-style: normal; line-height: 1.6; color: var(--muted); }
.nx-footer-col address strong { color: var(--text-2); font-weight: 500; }
.nx-footer-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.nx-legal { margin-top: 6px; font-size: 11.5px; opacity: .8; }
.nx-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nx-footer-legal a:hover { color: var(--text); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nx-srow { grid-template-columns: 50px minmax(0, 1fr) 200px; }
  .nx-srow-more { display: none; }
  .nx-cols-4, .nx-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-footer-grid { grid-template-columns: 1fr 1fr; }
  .nx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nx-header-cta { display: none; }
  .nx-burger { display: block; }
  .nx-nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 26px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(11, 13, 20, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
  .nx-open .nx-nav { transform: none; opacity: 1; visibility: visible; transition: opacity .3s, transform .4s var(--ease); }
  .nx-nav a { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .nx-nav .nx-nav-cta { display: block; margin-top: 10px; background: var(--orange); color: #1b1410; text-align: center; font-weight: 600; }
  .nx-hero-grid, .nx-layers-grid, .nx-split-grid { grid-template-columns: 1fr; }
  .nx-hero { min-height: 0; padding-top: calc(var(--header-h) + 40px); }
  .nx-hero-art { order: -1; width: min(420px, 90%); margin: 0 auto -30px; aspect-ratio: 1; }
  .nx-badge { display: none; }
  .nx-stack-wrap { position: relative; top: 0; height: 340px; }
  .nx-split.is-reverse .nx-split-media { order: 0; }
  .nx-stats-grid, .nx-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-section .section-heading, .project-grid, .text-inner { grid-template-columns: 1fr; }
  .text-inner > .prose:only-child { grid-column: auto; }
  .project-card--wide { grid-row: auto; }
  .nx-reveal { height: 220vh; }
  .nx-reveal-card { width: calc(84vw + 16vw * var(--grow)); height: calc(52svh + 48svh * var(--grow)); }
  .nx-reveal-word--a { top: 14vh; }
  .nx-reveal-word--b { bottom: 12vh; }
}
@media (max-width: 640px) {
  .nx-wrap, .nx-wrap--narrow, .page-header, .text-inner, .projects-section { width: min(100% - 36px, var(--wrap)); }
  .nx-header .nx-admin { margin-left: -12px; }
  .nx-hero-stats { gap: 18px 28px; }
  .nx-hero-stats strong { font-size: 22px; }
  .nx-actions .nx-btn { flex: 1 1 auto; }
  .nx-srow { grid-template-columns: 1fr; gap: 18px; padding: 30px 6px; }
  .nx-srow-num { order: -1; }
  .nx-srow-media { order: -1; max-width: 100%; }
  .nx-cards-grid { grid-template-columns: 1fr; }
  .nx-stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .nx-step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .nx-step-dot { width: 44px; height: 44px; }
  .nx-steps-line { left: 21px; }
  .nx-step-card { padding: 20px; }
  .nx-faq-item summary { padding: 18px; font-size: 16px; }
  .nx-faq-answer p { padding: 0 18px 20px; }
  .nx-footer-grid { grid-template-columns: 1fr; }
  .nx-footer-bottom { flex-direction: column; align-items: flex-start; }
  .nx-cta { min-height: 0; padding: 100px 0 200px; }
}

/* ---------- Ograniczone animacje ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .nx-reveal { height: auto; --grow: 1; --slide: 1; --text: 1; }
  .nx-reveal-sticky { position: relative; height: auto; min-height: 80svh; }
  .nx-reveal-word { display: none; }
  .nx-reveal-card { width: 100%; height: 80svh; border-radius: 0; }
}
