/* ==========================================================================
   proside — monochromatyczny, kosmiczny design system
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-2: #0a0a0b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --line-3: rgba(255, 255, 255, .26);
  --text: #f5f5f4;
  --text-2: #a3a3a9;
  --text-3: #6c6c73;

  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --max: 1200px;
  --pad: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }

/* ikony liniowe (strzałki itp.) */
svg[viewBox="0 0 16 16"] { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- tło: gwiazdy + ziarno ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.container { width: min(var(--max), 100% - 2 * var(--pad)); margin-inline: auto; position: relative; }
.section { position: relative; padding: 150px 0; }
.section::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: min(var(--max), 100% - 2 * var(--pad)); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

/* ---------- typografia ---------- */
.h2 { font-size: clamp(40px, 5.2vw, 72px); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.h2--xl { font-size: clamp(44px, 6.4vw, 96px); }
.h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -.04em; line-height: 1.12; }
.dim { color: var(--text-3); }
em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  padding-right: .06em;
  background: linear-gradient(180deg, #fff 20%, #8e8e95 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.label::before { content: ""; width: 5px; height: 5px; background: #fff; box-shadow: 0 0 10px 1px rgba(255, 255, 255, .7); }
.label-sm { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 72px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.section__head--center .section__sub { margin-top: 28px; }
.section__sub { max-width: 420px; color: var(--text-2); font-size: 16px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 54px; padding: 0 8px 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), color .4s;
}
.btn__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: transform .5s var(--ease); }
.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn--primary {
  background: #f2f2f1; color: #050505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 12px 40px -12px rgba(255, 255, 255, .45);
}
.btn--primary .btn__icon { background: #050505; color: #fff; }
.btn--primary:hover { background: #fff; box-shadow: 0 0 0 1px #fff, 0 14px 60px -8px rgba(255, 255, 255, .55); }
.btn--ghost { padding: 0 26px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); backdrop-filter: blur(12px); }
.btn--ghost:hover { border-color: var(--line-3); background: rgba(255, 255, 255, .07); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

.round-btn {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line-2); transition: .4s var(--ease);
}
.round-btn svg { width: 16px; height: 16px; }
.round-btn:hover { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, .3); }

/* spotlight podążający za kursorem */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .075), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.spot:hover::after { opacity: 1; }

/* animacje wejścia */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js .card[data-reveal] {
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease),
              translate .7s var(--ease), border-color .5s var(--ease);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; padding-inline: 16px; }
.nav__bar {
  max-width: calc(var(--max) + 32px); margin: 0 auto; height: 62px;
  display: flex; align-items: center; gap: 24px; padding: 0 11px 0 20px;
  border: 1px solid transparent; border-radius: 18px;
  transition: max-width .8s var(--ease), height .6s var(--ease), padding .6s var(--ease),
              background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-scrolled .nav__bar { max-width: 860px; height: 56px; padding: 0 8px 0 18px; }
.nav.is-scrolled .nav__bar, .nav.is-open .nav__bar {
  background: rgba(10, 10, 11, .62); border-color: var(--line);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 500; letter-spacing: -.04em; }
/* logo: konstelacja „P” na tle przygaszonego sześcianu */
.brand__mark { width: 28px; height: 30px; overflow: visible; }
.brand__mark .lg-box { fill: none; stroke: currentColor; stroke-opacity: .24; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.brand__mark .lg-box2 { fill: none; stroke: currentColor; stroke-opacity: .11; stroke-width: 1; vector-effect: non-scaling-stroke; }
.brand__mark .lg-line { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .lg-star { fill: currentColor; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .9)); }
.brand__mark .lg-dim { fill: currentColor; }
.brand__mark .lg-spark { transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.55) rotate(45deg); opacity: .7; } }
.nav__links { display: flex; gap: 2px; margin-inline: auto; }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color .3s, background .3s; }
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__burger { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; padding: 120px 0 36px;
}
.hero__visual {
  position: absolute; top: 50%; right: max(-40px, calc((100vw - var(--max)) / 2 - 70px));
  width: min(44vw, 680px); aspect-ratio: 1; translate: 0 -46%;
  mix-blend-mode: screen; pointer-events: none;
  animation: heroIn 2.4s var(--ease) both .2s;
}
.hero__halo { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent); filter: blur(30px); }
.hero__video {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  animation: float 14s ease-in-out infinite;
}
@keyframes heroIn { from { opacity: 0; scale: .92; } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }

.hero::after { /* miękkie przejście do kolejnej sekcji */
  content: ""; position: absolute; inset: auto 0 0; height: 180px; pointer-events: none;
  background: linear-gradient(0deg, var(--bg), transparent);
}
.hero__inner { position: relative; z-index: 2; align-self: center; }
.hero__content { max-width: 640px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 5px 0 16px; margin-bottom: 30px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .035);
  backdrop-filter: blur(12px); font-size: 13.5px; color: var(--text-2); transition: border-color .3s, color .3s;
}
.pill:hover { border-color: var(--line-3); color: var(--text); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 0 12px #fff; animation: blink 2.6s ease-in-out infinite; }
.pill__arrow { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.pill__arrow svg { width: 12px; height: 12px; }
@keyframes blink { 50% { opacity: .35; } }

.hero__title {
  font-size: clamp(40px, 5vw, 74px); font-weight: 400; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, #fff 35%, #a9a9af 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title em { font-size: 1.06em; letter-spacing: -.03em; }
.hero__lead { max-width: 470px; margin-top: 26px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--text-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

.hero__meta { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 48px; }
.hero__meta ul { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.hero__meta li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.hero__meta li span { font: 500 11px var(--mono); color: var(--text-3); padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; }
.scroll-hint { display: flex; align-items: center; gap: 14px; font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.scroll-hint i { position: relative; width: 1px; height: 44px; background: var(--line-2); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ==========================================================================
   TECHNOLOGIE
   ========================================================================== */
.tech { padding: 110px 0 120px; }
.tech__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
/* pasek technologii — jedna linia, płynnie przesuwa się w pętli */
.marquee {
  position: relative; overflow: hidden; padding-block: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee img { -webkit-user-drag: none; pointer-events: none; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.tech__item {
  flex: none; width: 300px; margin-right: 16px; /* margin zamiast gap — pętla -50% zgadza się co do piksela */
  display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding: 30px;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  transition: border-color .5s var(--ease);
}
.tech__item:hover { border-color: var(--line-2); }
.tech__no { position: absolute; top: 30px; right: 30px; font: 500 11px var(--mono); color: var(--text-3); }
.tech__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -10px rgba(0, 0, 0, .8);
  transition: box-shadow .5s var(--ease);
}
.tech__icon img { width: 22px; height: 22px; filter: invert(1); opacity: .92; }
.tech__item:hover .tech__icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 30px -4px rgba(255, 255, 255, .25); }
.tech__item h3 { font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.tech__item p { margin-top: 4px; font-size: 14px; color: var(--text-3); }

/* ==========================================================================
   OFERTA
   ========================================================================== */
.offer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008));
  transition: border-color .5s var(--ease), translate .7s var(--ease), opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.card:hover { border-color: var(--line-2); translate: 0 -6px; }
.card__visual {
  position: relative; height: 260px; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 55% at 50% 50%, rgba(255, 255, 255, .07), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px;
}
.card__visual::after { /* winieta na siatce */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 50%, transparent 30%, #080809 85%);
}
.card__visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
  mix-blend-mode: screen; transform: scale(var(--s, 1.75)); transition: transform 1.4s var(--ease);
}
.card:hover .card__visual img { transform: scale(calc(var(--s, 1.75) * 1.08)) translateY(-2%); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 30px 30px 28px; }
.card__no { font: 500 11px var(--mono); color: var(--text-3); letter-spacing: .1em; }
.card h3 { margin: 14px 0 12px; font-size: 26px; font-weight: 400; letter-spacing: -.04em; }
.card p { font-size: 15px; color: var(--text-2); }
.ticks { margin: 26px 0 30px; }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.ticks li::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-3);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-size: 14px; font-weight: 500; color: var(--text); }
.card__link svg { transition: transform .4s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   REALIZACJE (karuzela)
   ========================================================================== */
.work__controls { display: flex; align-items: center; gap: 10px; }
.work__count { margin-right: 18px; font: 500 14px var(--mono); color: var(--text-3); }
.work__count b { font-weight: 500; color: var(--text); }

.cases { overflow: hidden; border-radius: 30px; touch-action: pan-y; }
.cases__track { display: flex; gap: 24px; transition: transform 1.1s var(--ease); }
.case {
  position: relative; flex: 0 0 100%; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 30px; background: #070708;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.case__bg { position: absolute; inset: 0; pointer-events: none; }
.case__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 75%); mask-image: linear-gradient(180deg, #000 10%, transparent 75%);
}
.case__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 45% at 50% 62%, rgba(255, 255, 255, .13), transparent 70%);
}
.case__top {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 40px;
  padding: 44px 64px 36px;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; margin-bottom: 20px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04);
  font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.case__top h3 { font-size: clamp(26px, 2.7vw, 38px); font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
.case__aside { justify-self: end; max-width: 420px; }
.case__aside p { color: var(--text-2); }
.case__link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; height: 38px; padding: 0 6px 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04);
  font-size: 14px; font-weight: 500; transition: background .4s var(--ease), border-color .4s var(--ease), color .4s;
}
.case__link span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: transform .5s var(--ease); }
.case__link svg { width: 12px; height: 12px; }
.case__link:hover { background: #fff; border-color: #fff; color: #000; }
.case__link:hover span { background: #000; color: #fff; transform: rotate(45deg); }

.case__stage { position: relative; padding: 0 64px; }
.browser {
  overflow: hidden; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 16px 16px 0 0;
  background: #0b0b0c;
  box-shadow: 0 -30px 90px -30px rgba(255, 255, 255, .22), 0 0 0 7px rgba(255, 255, 255, .025);
}
.browser__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.browser__url {
  display: flex; align-items: center; gap: 7px; height: 25px; padding: 0 16px; margin: 0 auto;
  border-radius: 8px; background: rgba(255, 255, 255, .05); font: 12px var(--mono); color: var(--text-3);
}
.browser__url::before { content: ""; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--text-3); }
.browser img { width: 100%; aspect-ratio: 16 / 6.6; object-fit: cover; object-position: top; }

/* slajd „Twój projekt” — puste okno z zaproszeniem */
.browser__empty {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 16 / 6.6; overflow: hidden; text-align: center;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px;
}
.browser__empty::before { content: ""; position: absolute; inset: 22px; border: 1px dashed var(--line-3); border-radius: 12px; }
.browser .browser__empty img {
  position: absolute; left: 50%; top: 50%; width: min(62%, 560px); height: auto; aspect-ratio: 1; translate: -50% -50%;
  object-fit: contain; mix-blend-mode: screen; opacity: .22; animation: float 14s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent);
}
.browser__plus {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%;
  background: #fff; color: #000; box-shadow: 0 0 50px rgba(255, 255, 255, .35); transition: transform .6s var(--ease);
}
.browser__plus svg { width: 22px; height: 22px; stroke-width: 1.6; }
.browser__empty strong { position: relative; font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -.04em; }
.browser__empty small { position: relative; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.browser__empty:hover .browser__plus { transform: rotate(90deg) scale(1.06); }

.case__features {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2); background: rgba(8, 8, 9, .92);
}
.feat { padding: 26px 30px 30px; border-left: 1px solid var(--line); }
.feat:first-child { border-left: 0; }
.feat__no { font: 500 11px var(--mono); color: var(--text-3); }
.feat h4 { margin: 12px 0 6px; font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.feat p { font-size: 14px; line-height: 1.55; color: var(--text-3); }

.case-tabs { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 24px; margin-top: 30px; }
.case-tab { position: relative; padding-top: 20px; text-align: left; color: var(--text-3); transition: color .4s; }
.case-tab::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-2); }
.case-tab i { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px rgba(255, 255, 255, .7); }
.case-tab span { display: block; font: 500 11px var(--mono); letter-spacing: .12em; margin-bottom: 6px; }
.case-tab strong { font-size: 15px; font-weight: 400; letter-spacing: -.02em; }
.case-tab:hover, .case-tab.is-active { color: var(--text); }
.case-tab.is-active i { animation: fill var(--dur, 8s) linear forwards; }
.cases:hover ~ .case-tabs .is-active i, .work.is-paused .case-tabs .is-active i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* ==========================================================================
   PROCES
   ========================================================================== */
.process { overflow: hidden; }
.process__comet {
  position: absolute; top: 70px; left: 50%; width: min(1700px, 140vw); max-width: none; translate: -50% 0;
  mix-blend-mode: screen; opacity: .85; pointer-events: none;
}
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 20px; }
.steps::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--line-3), var(--line-3) 85%, transparent);
}
.step { position: relative; padding: 44px 32px 0 0; }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid #fff; transition: background .6s, box-shadow .6s; transition-delay: calc(var(--d, 0s) + .3s);
}
.step.in::before { background: #fff; box-shadow: 0 0 16px 2px rgba(255, 255, 255, .6); }
.step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step__no {
  font: italic 400 64px/1 var(--serif); letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .15)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__time { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.step h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.step p { font-size: 14.5px; color: var(--text-3); }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact { overflow: hidden; padding-top: 170px; }
.contact__horizon { /* pełna szerokość; linia horyzontu zawsze między nagłówkiem a formularzem */
  position: relative; height: var(--h); margin: 0 calc(50% - 50vw); pointer-events: none;
  --h: 220px; --rim: 120px; --w: max(1500px, 125vw);
  --img-top: calc(var(--rim) - var(--w) * .4286 * .44);
}
.contact__horizon img {
  position: absolute; top: var(--img-top); left: 50%; width: var(--w); max-width: none; translate: -50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 36%); mask-image: linear-gradient(180deg, transparent, #000 36%);
}
.contact__horizon::after { /* ciemna tarcza planety zasłania gwiazdy aż do stopki */
  content: ""; position: absolute; left: 0; right: 0; height: 4000px;
  top: calc(var(--img-top) + var(--w) * .4286 - 4px); background: #000;
}
.contact__head { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact__head .section__sub { margin-top: 28px; }

.contact__grid { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; gap: 20px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.person {
  display: flex; align-items: center; gap: 20px; padding: 24px 28px;
  border: 1px solid var(--line); border-radius: 24px; background: rgba(12, 12, 13, .7); backdrop-filter: blur(14px);
}
.person__avatar {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font: italic 400 34px/1 var(--serif); color: #050505;
  background: radial-gradient(circle at 30% 25%, #fff, #b8b8bd 70%, #7d7d83);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 0 40px -6px rgba(255, 255, 255, .4);
}
.person strong { display: block; margin: 8px 0 2px; font-size: 26px; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.person p { font-size: 14px; color: var(--text-3); }
.info-card {
  display: flex; flex-direction: column; gap: 14px; padding: 30px;
  border: 1px solid var(--line); border-radius: 24px; background: rgba(12, 12, 13, .7);
  backdrop-filter: blur(14px); transition: border-color .5s var(--ease), background .5s var(--ease);
}
.info-card strong { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; letter-spacing: -.04em; }
.info-card__arrow {
  position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-2); border-radius: 50%; transition: .5s var(--ease);
}
.info-card:hover { border-color: var(--line-2); background: rgba(18, 18, 19, .8); }
.info-card:hover .info-card__arrow { background: #fff; color: #000; border-color: #fff; transform: rotate(45deg); }
/* ukryty kontakt */
[data-protect] { cursor: pointer; }
.protect__mask { display: inline-block; filter: blur(6px); opacity: .75; user-select: none; pointer-events: none; }
.protect__hint { margin-left: 6px; letter-spacing: .08em; text-transform: none; color: var(--text-2); }
.is-revealed .protect { animation: unblur .6s var(--ease); }
@keyframes unblur { from { filter: blur(6px); opacity: .4; } }
.info-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-meta div { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(12, 12, 13, .7); }
.info-meta strong { font-size: 16px; font-weight: 400; letter-spacing: -.02em; }

.form {
  position: relative; padding: 36px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 28px;
  background: linear-gradient(180deg, rgba(22, 22, 24, .78), rgba(10, 10, 11, .78));
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.form fieldset { border: 0; margin-bottom: 26px; }
.form legend { margin-bottom: 12px; font-size: 13px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 17px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text-2);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.chip:hover span { border-color: var(--line-3); color: var(--text); }
.chip input:checked + span { background: #fff; border-color: #fff; color: #000; box-shadow: 0 0 24px -4px rgba(255, 255, 255, .4); }
.chip input:focus-visible + span { outline: 1px solid #fff; outline-offset: 3px; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 28px 18px 11px; resize: vertical;
  border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, .025);
  color: var(--text); font: 15px var(--sans);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; }
.field label { position: absolute; left: 19px; top: 19px; font-size: 15px; color: var(--text-3); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .045); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--text-2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(255, 255, 255, .7); }

.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 26px; }
.form__note { font-size: 13px; color: var(--text-3); }
.form__success {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; background: #0b0b0c; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease);
}
.form__success h3 { font-size: 28px; font-weight: 400; letter-spacing: -.04em; }
.form__success p { color: var(--text-2); }
.form__success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: #fff; color: #000; box-shadow: 0 0 50px rgba(255, 255, 255, .35); }
.form__success-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.form__sign { margin-top: 6px; font: italic 400 28px/1 var(--serif); color: var(--text-2); }
.form.is-sent .form__success { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   STOPKA
   ========================================================================== */
.footer { position: relative; padding: 90px 0 34px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 60%); }
.footer__top { display: flex; justify-content: space-between; gap: 60px; padding-bottom: 72px; }
.footer__brand .brand { gap: 14px; font-size: 24px; }
.footer__brand .brand__mark { width: 45px; height: 48px; }
.footer__brand p { max-width: 300px; margin-top: 20px; font-size: 14px; color: var(--text-3); }
.footer__cols { display: flex; gap: 88px; }
.footer__cols h4 { margin-bottom: 20px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.footer__cols a { display: block; padding: 5px 0; font-size: 14px; color: var(--text-2); transition: color .3s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.footer__bottom a:hover { color: var(--text); }
.to-top { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 1080px) {
  .offer__grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .case__features { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(3) { border-left: 0; }
  .feat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; margin-top: 0; padding-left: 36px; }
  .steps::before { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--line-3) 85%, transparent); }
  .step { padding: 0 0 48px; }
  .step::before { top: 26px; left: -36px; }
  .step__top { justify-content: flex-start; gap: 20px; }
  .step h3 { margin-top: 16px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  .section { padding: 110px 0; }
  .section__head, .tech__head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
  .section__head--center { align-items: center; }

  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 10px;
    border: 1px solid var(--line); border-radius: 18px; background: rgba(10, 10, 11, .92); backdrop-filter: blur(20px);
    opacity: 0; translate: 0 -8px; pointer-events: none; transition: .4s var(--ease);
  }
  .nav__links a { padding: 14px 16px; font-size: 17px; color: var(--text); border-radius: 12px; }
  .nav.is-open .nav__links { opacity: 1; translate: 0; pointer-events: auto; }
  .nav__cta { display: none; }
  .nav__burger { display: grid; place-items: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; border-radius: 12px; border: 1px solid var(--line-2); }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: #fff; transition: .4s var(--ease); }
  .nav.is-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__burger { grid-auto-rows: min-content; align-content: center; }

  .hero { padding-top: 96px; grid-template-rows: auto 1fr auto; }
  .hero__visual { position: relative; top: auto; right: auto; translate: none; width: 86vw; margin: -30px auto -90px; }
  .hero__inner { align-self: end; }
  .hero__meta { flex-direction: column; align-items: flex-start; padding-top: 40px; }
  .hero__meta ul { flex-direction: column; gap: 12px; }
  .scroll-hint { display: none; }
  .hero__cta .btn { flex: 1 1 auto; }

  .case__top { grid-template-columns: 1fr; gap: 16px; padding: 32px 24px 28px; }
  .case__aside { justify-self: start; }
  .case__stage { padding: 0 16px; }
  .browser img { aspect-ratio: 4 / 3; object-position: left top; }
  .browser__empty { aspect-ratio: 4 / 3; }
  .case-tabs { gap: 12px; }
  .case-tab strong { display: none; }
  .work__controls { width: 100%; }
  .work__count { margin-right: auto; }

  .contact { padding-top: 120px; }
  .contact__horizon { --h: 150px; --rim: 80px; --w: 260vw; }
  .form { padding: 24px; border-radius: 24px; }
  .form__grid { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .form__foot .btn { justify-content: space-between; }

  .footer__top { flex-direction: column; gap: 48px; }
  .footer__cols { flex-wrap: wrap; gap: 40px 56px; }
  .footer__bottom { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .tech__item { width: 250px; margin-right: 12px; gap: 48px; padding: 24px; }
  .tech__no { top: 24px; right: 24px; }
  .case__features { grid-template-columns: 1fr; }
  .feat { border-left: 0 !important; padding: 22px 24px; }
  .feat + .feat { border-top: 1px solid var(--line); }
  .info-meta { grid-template-columns: 1fr; }
  .card__visual { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}
