/* WebStars — styles.css  (v2: modern gradient direction)
   Fonts: Syne (display) / Sora (alt) + Space Grotesk (body/ui). No serif.
   Gradient palette (--g1 --g2 --g3) + typeface + motion driven from app.jsx. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --g1: #7C3AED; --g2: #2563EB; --g3: #06B6D4;
  --accent: #7C3AED;
  --accent-ink: #ffffff;

  --bg: #F6F6FB;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0E0E16;
  --ink-2: rgba(14,14,22,.62);
  --ink-3: rgba(14,14,22,.40);
  --line: rgba(14,14,22,.10);
  --line-2: rgba(14,14,22,.055);

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Plus Jakarta Sans', system-ui, sans-serif; /* labels/eyebrows (legacy var name) */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;

  --maxw: 1600px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 24px;
  --radius-sm: 16px;
}
[data-type="clean"] { --font-display: 'Sora', system-ui, sans-serif; }

[data-theme="dark"] {
  --bg: #08070E;
  --bg-2: #0E0D18;
  --surface: #12111E;
  --ink: #F4F3FB;
  --ink-2: rgba(244,243,251,.66);
  --ink-3: rgba(244,243,251,.44);
  --line: rgba(244,243,251,.12);
  --line-2: rgba(244,243,251,.06);
}

:root, [data-theme] {
  --grad: linear-gradient(120deg, var(--g1), var(--g2) 52%, var(--g3));
  --grad-soft: color-mix(in oklab, var(--g1) 12%, var(--bg));
  --grad-line: color-mix(in oklab, var(--g2) 36%, transparent);
  --glow: 0 24px 70px -28px color-mix(in oklab, var(--g1) 70%, transparent);
  --shadow: 0 2px 10px rgba(8,7,14,.05), 0 36px 70px -36px rgba(8,7,14,.32);
}

/* SVG star gradient stops (referenced via fill=url(#ws-grad)) */
.ws-stop-1 { stop-color: var(--g1); }
.ws-stop-2 { stop-color: var(--g2); }
.ws-stop-3 { stop-color: var(--g3); }

/* ── Reset / base ───────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; transition: background .5s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--g1); color: #fff; }

.display { font-family: var(--font-display); font-weight: 800; line-height: 1.0; }
[data-type="clean"] .display { font-weight: 700; }

/* gradient text */
.grad-text, .ht-accent, .ht-accent em {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; font-style: normal;
}

.app-root { position: relative; min-height: 100vh; }

/* grain overlay (very faint, modern) */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .025;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] .grain-overlay { opacity: .05; mix-blend-mode: screen; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: var(--sec-pad-y, clamp(64px, 11vh, 150px)) var(--pad); }
.section-head { margin-bottom: clamp(36px, 6vw, 64px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title { font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 16ch; margin-top: 16px; text-wrap: balance; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-weight: 600; font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-2);
}
.eyebrow-star { color: var(--g1); }

/* ── Reveal / motion ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(var(--ry, 24px)); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0ms) * var(--motion-mult, 1)); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.magnetic { display: inline-flex; transition: transform .35s cubic-bezier(.2,.8,.25,1); will-change: transform; }
[data-motion="subtle"] { --motion-mult: 0; }
[data-motion="subtle"] .reveal { transition-duration: .5s; --ry: 12px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .stagger { animation: none; }
  .page-hero .eyebrow, .page-hero-title, .page-hero-lead { animation: none; }
  .hero-photo-img, .about-portrait-img { animation: none; }
  .hero-bigstar, .page-hero-deco, .contact-side-star, .cs-hero-deco { animation: none; }
  .hero-photo-glow, .about-portrait-glow { animation: none; }
  .marquee-track { animation-play-state: paused; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-weight: 600; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .3s cubic-bezier(.2,.8,.25,1), box-shadow .3s, background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { transition: transform .45s cubic-bezier(.2,.8,.25,1); }
.btn-lg { padding: 18px 32px; font-size: .84rem; }
.btn-primary { background: var(--grad); color: #fff; background-size: 160% 160%; }
.btn-primary:hover { box-shadow: var(--glow); transform: translateY(-2px); background-position: 100% 50%; }
.btn-primary:hover svg { transform: rotate(90deg) scale(1.15); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: transparent; color: #fff; background: var(--ink); }
[data-theme="dark"] .btn-ghost:hover { background: #fff; color: var(--bg); }
.btn-ghost:hover svg { transform: rotate(90deg); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: padding .35s ease; }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: all .35s ease;
}
.site-header.is-scrolled .header-inner {
  margin: 10px auto 0; max-width: calc(var(--maxw) - 40px);
  padding: 11px 14px 11px 22px; border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 44px -22px rgba(8,7,14,.4);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; }
[data-type="clean"] .brand { font-weight: 700; }
.brand-logo { height: 34px; width: auto; display: block; transition: transform .5s cubic-bezier(.2,.8,.25,1); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
.site-footer .brand-logo { height: 38px; }
.brand-star { transition: transform .6s cubic-bezier(.2,.8,.25,1); }
.brand:hover .brand-star { transform: rotate(180deg) scale(1.12); }
.brand-name { line-height: 1; }

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; padding: 8px 15px; font-size: .92rem; font-weight: 500; white-space: nowrap; color: var(--ink-2); border-radius: 999px; transition: color .25s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-dot { position: absolute; left: 50%; bottom: 1px; width: 16px; height: 3px; border-radius: 999px; background: var(--grad); transform: translateX(-50%) scaleX(0); transition: transform .3s cubic-bezier(.2,.8,.25,1); }
.nav-link.active .nav-dot { transform: translateX(-50%) scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: background .25s, border-color .25s; }
.icon-btn:hover { background: var(--grad-soft); border-color: var(--grad-line); }
.theme-toggle-inner { position: relative; width: 18px; height: 18px; }
.theme-toggle-inner .ti { position: absolute; inset: 0; margin: auto; transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.25,1); color: var(--ink); }
.theme-toggle-inner[data-dark="0"] .ti-sun { opacity: 1; transform: rotate(0); }
.theme-toggle-inner[data-dark="0"] .ti-moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
.theme-toggle-inner[data-dark="1"] .ti-sun { opacity: 0; transform: rotate(90deg) scale(.4); }
.theme-toggle-inner[data-dark="1"] .ti-moon { opacity: 1; transform: rotate(0); }

.lang-toggle { position: relative; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.lang-toggle button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--ink-3); font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; transition: color .3s; }
.lang-toggle button.on { color: #fff; }
.lang-thumb { position: absolute; top: 3px; bottom: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--grad); transition: left .32s cubic-bezier(.3,.7,.4,1); }
.lang-thumb[data-lang="pl"] { left: 3px; }
.lang-thumb[data-lang="en"] { left: 50%; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger i { width: 16px; height: 1.8px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger.open i:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(130px, 19vh, 200px) var(--pad) clamp(50px, 8vh, 90px); overflow: visible; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 46% at 14% 18%, color-mix(in oklab, var(--g1) 60%, transparent), transparent 70%),
    radial-gradient(34% 42% at 86% 8%, color-mix(in oklab, var(--g2) 52%, transparent), transparent 70%),
    radial-gradient(40% 50% at 70% 60%, color-mix(in oklab, var(--g3) 48%, transparent), transparent 70%);
  filter: blur(34px); opacity: .42;
}
[data-theme="dark"] .hero::before { opacity: .5; filter: blur(46px); }
.hero-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.logo-star { display: block; height: auto; width: 110px; }
.hero-bigstar { position: absolute; top: 10%; right: 4%; width: 150px; opacity: .9; filter: drop-shadow(0 14px 40px color-mix(in oklab, var(--g1) 50%, transparent)); }
.page-hero-deco .logo-star { width: 120px; }
.contact-side-star { width: 72px; }
.cs-hero-deco .logo-star { width: 130px; }
/* Smaller hero star on tablet / phone — centered in the gap between the header and the "DOSTĘPNY" badge */
/* Base .hero-bigstar overrides are here; variant-specific overrides follow after variant rules (line ~280) */
@media (max-width: 1024px) {
  .hero-bigstar { width: 48px; top: 92px; left: 50%; right: auto; margin-left: -24px; transform: none; opacity: .8; }
  [data-motion="rich"] .hero-bigstar { animation: spin 48s linear infinite; }
  .page-hero-deco .logo-star { width: 72px; }
  .cs-hero-deco .logo-star { width: 80px; }
}
@media (max-width: 480px) {
  .hero-bigstar { width: 36px; top: 88px; left: 50%; right: auto; margin-left: -18px; }
  .contact-side-star { width: 48px; }
}
[data-motion="rich"] .hero-bigstar { animation: spin 40s linear infinite, floatY 9s ease-in-out infinite; }
.hero-orb { display: none; }

.hero-inner { position: relative; z-index: 1; }

/* editorial: text left, cut-out photo right — vertically centered (symmetric to text) */
.hero--editorial .hero-inner { display: flex; align-items: center; gap: clamp(24px, 5vw, 80px); }
.hero--editorial .hero-textcol { flex: 1 1 auto; min-width: 0; max-width: 760px; }
.hero-photo { flex: 0 0 auto; position: relative; width: clamp(320px, 32vw, 480px); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.hero-photo-img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(8,7,14,.18)); animation: heroPhotoIn 1.1s cubic-bezier(.16,.84,.3,1) .35s backwards; }
[data-theme="dark"] .hero-photo-img { filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.hero-photo-glow { position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%); width: 96%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--g2) 52%, transparent), color-mix(in oklab, var(--g1) 28%, transparent) 44%, transparent 66%); filter: blur(26px); opacity: .5; }
[data-theme="dark"] .hero-photo-glow { opacity: .66; }
[data-motion="rich"] .hero-photo-glow { animation: gradShift 9s ease-in-out infinite, floatY 12s ease-in-out infinite; }
@keyframes heroPhotoIn { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }

/* show photo only in editorial layout */
.hero--centered .hero-photo, .hero--split .hero-photo { display: none; }
@media (max-width: 1024px) {
  .hero--editorial .hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .hero--editorial .hero-textcol { max-width: 100%; text-align: center; }
  .hero--editorial .hero-photo { width: clamp(260px, 60vw, 400px); margin: 28px auto 0; }
  .hero--editorial .hero-top { justify-content: center; }
  .hero--editorial .hero-actions { justify-content: center; }
  .hero--editorial .hero-sub { margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) { .hero--editorial .hero-photo { width: 240px; } }

.hero-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-avail { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in oklab, var(--surface) 60%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #19c37d; box-shadow: 0 0 0 0 rgba(25,195,125,.5); animation: pulse 2.4s ease-out infinite; }
.hero-eyebrow-line { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.hero-title { font-size: clamp(2.6rem, 5vw, 5.6rem); margin: 0; }
.ht-line { display: block; }

.hero-sub { max-width: 46ch; margin: 30px 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-2); line-height: 1.55; text-wrap: pretty; font-weight: 400; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; margin-top: 64px; font-family: var(--font-mono); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hero-scroll-line { width: 46px; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ''; position: absolute; inset: 0; width: 44%; border-radius: 2px; background: var(--grad); animation: scrollLine 2.2s ease-in-out infinite; }

.hero .stagger { animation: heroIn 1s cubic-bezier(.16,.84,.3,1) backwards; }
.hero-top.stagger { animation-delay: .05s; }
.hero-title.stagger { animation-delay: .15s; }
.hero-sub.stagger { animation-delay: .3s; }
.hero-actions.stagger { animation-delay: .42s; }
.hero-scroll.stagger { animation-delay: .54s; }
[data-motion="subtle"] .hero .stagger { animation-delay: 0s; animation-duration: .6s; }

.hero--centered { text-align: center; }
.hero--centered .hero-top, .hero--centered .hero-actions, .hero--centered .hero-scroll { justify-content: center; }
.hero--centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero--centered .hero-bigstar { top: 5%; right: 50%; transform: translateX(50%); }

.hero--split .hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero--split .hero-top { grid-column: 1 / -1; }
.hero--split .hero-title { grid-column: 1; }
.hero--split .hero-sub { grid-column: 2; margin-top: 0; align-self: end; padding-bottom: 12px; }
.hero--split .hero-actions { grid-column: 1; }
.hero--split .hero-scroll { grid-column: 1 / -1; }
@media (max-width: 1024px) { .hero--split .hero-inner { grid-template-columns: 1fr; } .hero--split .hero-sub { grid-column: 1; } }
/* Variant-specific hero-bigstar responsive overrides — placed after variant rules so same-specificity cascade wins */
@media (max-width: 1024px) {
  .hero--editorial .hero-bigstar,
  .hero--centered .hero-bigstar,
  .hero--split .hero-bigstar { width: 92px; top: 92px; left: 50%; right: auto; margin-left: -46px; transform: none; opacity: .8; }
}
@media (max-width: 480px) {
  .hero--editorial .hero-bigstar,
  .hero--centered .hero-bigstar,
  .hero--split .hero-bigstar { width: 58px; top: 88px; left: 50%; right: auto; margin-left: -29px; }
}

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 24px 0; background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--mq-dur, 30s) linear infinite; animation-direction: var(--mq-dir, normal); }
[data-motion="subtle"] .marquee-track { animation-duration: calc(var(--mq-dur, 30s) * 1.8); }
.marquee-row { display: flex; align-items: center; }
.marquee-item { display: inline-flex; align-items: center; gap: clamp(20px, 4vw, 48px); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 3.4rem); letter-spacing: -.02em; padding-left: clamp(20px, 4vw, 48px); white-space: nowrap; color: var(--ink); }
[data-type="clean"] .marquee-item { font-weight: 700; }
.marquee-item:nth-child(even) { -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.4px var(--ink-3); }
.marquee-star { color: var(--g1); -webkit-text-fill-color: initial; }

/* ── Service list ───────────────────────────────────────────────────────── */
.service-list { border-top: 1px solid var(--line); }
.service-row { border-bottom: 1px solid var(--line); }
.service-head { display: flex; align-items: flex-start; gap: clamp(16px, 4vw, 48px); padding: clamp(24px, 4vw, 40px) 0; cursor: default; transition: padding-left .4s cubic-bezier(.2,.8,.25,1); }
.service-row:hover .service-head { padding-left: 8px; }
.service-no { font-family: var(--font-mono); font-weight: 600; font-size: .85rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; padding-top: 12px; min-width: 32px; }
.service-headmain { flex: 1; }
.service-tag { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.service-title { font-size: clamp(1.9rem, 5vw, 3.6rem); margin-top: 8px; transition: color .3s; padding-bottom: 0.15em; }
.service-row:hover .service-title { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.service-plus { position: relative; width: 26px; height: 26px; flex-shrink: 0; margin-top: 14px; }
.service-plus i { position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; background: var(--ink); transform: translate(-50%,-50%); transition: transform .35s cubic-bezier(.2,.8,.25,1); }
.service-plus i:last-child { transform: translate(-50%,-50%) rotate(90deg); }
.service-plus.x i:last-child { transform: translate(-50%,-50%) rotate(0); }
.service-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s cubic-bezier(.4,0,.1,1); }
.service-body-inner { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 40px); padding-left: clamp(48px, 8vw, 80px); }
.service-lead { font-size: 1.15rem; color: var(--ink-2); line-height: 1.5; max-width: 38ch; }
.service-points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.service-points li { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1rem; }
.sp-star { color: var(--g1); flex-shrink: 0; }
.service-cta { grid-column: 1 / -1; margin-top: clamp(10px, 1.5vw, 18px); }
/* CTA turns gradient in sync with the row-hover title (and on touch press) */
.service-row:hover .service-cta-btn,
.service-cta-btn:active {
  background: var(--grad); background-size: 160% 160%; color: #fff; border-color: transparent;
}
.service-row:hover .service-cta-btn:hover { box-shadow: var(--glow); transform: translateY(-2px); background-position: 100% 50%; }
.service-row:hover .service-cta-btn svg, .service-cta-btn:active svg { transform: rotate(90deg); }
@media (max-width: 1024px) { .service-body-inner { grid-template-columns: 1fr; padding-left: 0; gap: 18px; } }
/* ── Service cards (2×2 grid, non-accordion) ─────────────────────────────── */
.service-list--cards { border-top: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); }
.service-list--cards .service-row { border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.2,.8,.25,1), box-shadow .4s, border-color .4s; }
.service-list--cards .service-row:hover { transform: translateY(-4px); box-shadow: 0 18px 50px -24px rgba(14,14,22,.4); border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.service-list--cards .service-head { padding: 0; gap: 16px; }
.service-list--cards .service-row:hover .service-head { padding-left: 0; }
.service-list--cards .service-title { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.service-list--cards .service-body { display: flex; flex: 1; }
.service-list--cards .service-body-inner { display: flex; flex-direction: column; flex: 1; grid-template-columns: 1fr; padding-left: 0; padding-bottom: 0; padding-top: clamp(18px, 2.2vw, 26px); gap: clamp(16px, 2vw, 22px); }
.service-list--cards .service-lead { font-size: 1.02rem; max-width: none; }
.service-list--cards .service-cta { margin-top: auto; }
@media (max-width: 1024px) { .service-list--cards { grid-template-columns: 1fr; } }

/* ── Work grid ──────────────────────────────────────────────────────────── */
.work-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.work-grid--clean { grid-template-columns: repeat(2, 1fr); }
.work-grid--overlap { display: flex; align-items: flex-start; gap: clamp(28px, 4vw, 56px); }
.wg-col { flex: 1; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 56px); margin-top: var(--col-offset, 0); }
@media (max-width: 1024px) { .work-grid--overlap { display: block; columns: 2; column-gap: clamp(28px, 4vw, 56px); } .wg-col { display: contents; } .work-card { break-inside: avoid; margin-bottom: clamp(28px, 4vw, 56px); } }
@media (max-width: 480px) { .work-grid--clean { grid-template-columns: 1fr; } .work-grid--overlap { columns: 1; } }

.work-card-link { display: block; }
.pcover { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; box-shadow: var(--shadow); transition: box-shadow .4s; }
.work-card-link:hover .pcover { box-shadow: var(--glow), var(--shadow); }
.pcover-bg { position: absolute; inset: 0; background: linear-gradient(140deg, var(--c1), var(--c2)); transition: transform .8s cubic-bezier(.2,.8,.25,1); }
.work-card-link:hover .pcover-bg { transform: scale(1.06); }
.pcover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.42)); z-index: 1; }
.pcover-img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform: translateY(0); transition: transform 5s linear; }
.work-card-link:hover .pcover-scrollable .pcover-img { transform: translateY(-65%); }
@keyframes pcover-scroll { from { object-position: top; } to { object-position: bottom; } }
.pcover-grain { position: absolute; inset: 0; z-index: 2; opacity: .1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.pcover-star { position: absolute; top: 16px; left: 16px; z-index: 3; color: rgba(255,255,255,.92); }
.pcover-name { position: absolute; left: 18px; bottom: 16px; z-index: 3; color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.pcover-big .pcover-name { font-size: clamp(2rem, 4vw, 3rem); }

.work-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px 0; }
.wcm-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.wcm-role { font-size: .9rem; color: var(--ink-3); margin-top: 2px; }
.wcm-view { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-weight: 600; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.wcm-view svg { color: var(--g1); }
.work-card-link:hover .wcm-view { opacity: 1; transform: translateX(0); }

.work-index { list-style: none; border-top: 1px solid var(--line); }
.work-index-row { display: grid; grid-template-columns: 48px 1.6fr 1fr auto 70px 30px; align-items: center; gap: 20px; padding: clamp(18px, 3vw, 30px) 4px; border-bottom: 1px solid var(--line); cursor: default; transition: padding-left .35s cubic-bezier(.2,.8,.25,1), background .35s; }
.work-index-row:hover { padding-left: 18px; background: var(--grad-soft); }
.wi-no { font-family: var(--font-mono); font-weight: 600; font-size: .8rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.wi-name { font-size: clamp(1.4rem, 3.2vw, 2.4rem); }
.wi-kind, .wi-year { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.wi-swatch { width: 70px; height: 30px; border-radius: 8px; }
.wi-arrow { color: var(--ink-3); transition: transform .35s, color .35s; }
.work-index-row:hover .wi-arrow { color: var(--g1); transform: rotate(90deg); }
@media (max-width: 480px) { .work-index-row { grid-template-columns: 34px 1fr auto; gap: 12px; } .wi-kind, .wi-swatch, .wi-arrow { display: none; } }

.work-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: clamp(32px, 5vw, 52px); }
.filter-chip { font-family: var(--font-mono); font-weight: 600; font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); transition: all .25s; }
.filter-chip:hover { border-color: var(--grad-line); color: var(--ink); }
.filter-chip.on { background: var(--grad); border-color: transparent; color: #fff; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.section-stats { padding-block: clamp(48px, 8vh, 90px); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); border-block: 1px solid var(--line); padding: clamp(36px, 5vw, 56px) 0; }
.stat-n { font-size: clamp(2.2rem, 4.8vw, 3.5rem); min-height: clamp(2.2rem, 4.8vw, 3.5rem); display: flex; align-items: flex-end; justify-content: center; line-height: 1; white-space: nowrap; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat-label { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; gap: 28px; } }

/* ── Centered section content (services teaser, work header, stats) ───────── */
/* Services teaser — header centered + list container centered (inner layout unchanged) */
.section-services .section-head { text-align: center; }
.section-services .section-head .eyebrow { justify-content: center; }
.section-services .section-head .section-title { margin-left: auto; margin-right: auto; }
.section-services .service-list { max-width: 1000px; margin-left: auto; margin-right: auto; }
.section-services .service-list--cards { max-width: 1120px; }

/* Work "Ostatnie projekty" header centered */
.section-work .section-head--row { flex-direction: column; align-items: center; text-align: center; }
.section-work .section-head--row .eyebrow { justify-content: center; }
.section-work .section-head--row .section-title { margin-left: auto; margin-right: auto; }
.section-work-cta { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 72px); }

/* Stats / counters band centered */
.section-stats .stat { text-align: center; }

/* Testimonials "Co mówią klienci" header centered */
.section-testimonials .section-head { text-align: center; }
.section-testimonials .section-head .eyebrow { justify-content: center; }
.section-testimonials .section-head .section-title { margin-left: auto; margin-right: auto; }

/* Process "Jak pracuję" header centered */
.section-process .section-head { text-align: center; }
.section-process .section-head .eyebrow { justify-content: center; }
.section-process .section-head .section-title { margin-left: auto; margin-right: auto; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonial-grid { gap: clamp(18px, 2.5vw, 28px); }
/* Even grid — equal-height columns (original) */
.testimonial-grid--grid { display: grid; grid-template-columns: repeat(3, 1fr); }
/* Masonry — varied-length quotes flow naturally into balanced columns */
.testimonial-grid--masonry { columns: 3; column-gap: clamp(18px, 2.5vw, 28px); }
.testimonial-grid--masonry .testimonial-card { break-inside: avoid; margin-bottom: clamp(18px, 2.5vw, 28px); width: 100%; }
/* Tablet: 2 testimonials per row, horizontal scroll slider */
@media (max-width: 1024px) {
  .testimonial-grid--grid, .testimonial-grid--masonry {
    display: flex; columns: auto; grid-template-columns: none;
    gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px 0 18px; scroll-padding-left: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--g2) 50%, transparent) transparent;
  }
  .testimonial-grid--grid .testimonial-card, .testimonial-grid--masonry .testimonial-card {
    flex: 0 0 calc(50% - 10px); width: auto; margin-bottom: 0; scroll-snap-align: start;
  }
  .testimonial-grid--grid::-webkit-scrollbar, .testimonial-grid--masonry::-webkit-scrollbar { height: 8px; }
  .testimonial-grid--grid::-webkit-scrollbar-thumb, .testimonial-grid--masonry::-webkit-scrollbar-thumb {
    background: color-mix(in oklab, var(--g2) 50%, transparent); border-radius: 4px;
  }
}
/* Phone: 1 testimonial per row, horizontal scroll slider */
@media (max-width: 480px) {
  .testimonial-grid--grid, .testimonial-grid--masonry {
    display: flex; columns: auto; grid-template-columns: none;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px 0 16px; scroll-padding-left: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--g2) 50%, transparent) transparent;
  }
  .testimonial-grid--grid .testimonial-card, .testimonial-grid--masonry .testimonial-card {
    flex: 0 0 100%; width: auto; margin-bottom: 0; scroll-snap-align: center;
  }
  .testimonial-grid--grid::-webkit-scrollbar, .testimonial-grid--masonry::-webkit-scrollbar { height: 8px; }
  .testimonial-grid--grid::-webkit-scrollbar-thumb, .testimonial-grid--masonry::-webkit-scrollbar-thumb {
    background: color-mix(in oklab, var(--g2) 50%, transparent); border-radius: 4px;
  }
}
.testimonial-card {
  border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px;
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  transition: transform .4s cubic-bezier(.2,.8,.25,1), box-shadow .4s;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--glow), var(--shadow); }
.t-stars { color: var(--g1); letter-spacing: 3px; font-size: .9rem; }
.t-quote { font-family: var(--font-display); font-weight: 400; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
/* Length-based rhythm — short quotes read as pull-quotes, long ones stay calm */
.testimonial-card[data-len="lg"] .t-quote { font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.34rem); line-height: 1.34; letter-spacing: -.02em; }
.testimonial-card[data-len="sm"] .t-quote { font-size: clamp(.95rem, 1.1vw, 1.04rem); line-height: 1.55; }
.t-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.05rem; flex-shrink: 0; background: var(--grad); }
.t-name { font-weight: 600; font-size: .96rem; }
.t-role { font-size: .82rem; color: var(--ink-3); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(20px, 3vw, 28px) 0; background: transparent; border: 0; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2.6vw, 1.6rem); color: var(--ink); transition: color .25s; }
.faq-item:hover .faq-q, .faq-item.open .faq-q { color: var(--g1); }
.faq-plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-plus i { position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%,-50%); transition: transform .35s cubic-bezier(.2,.8,.25,1); }
.faq-plus i:last-child { transform: translate(-50%,-50%) rotate(90deg); }
.faq-plus.x i:last-child { transform: translate(-50%,-50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.4,0,.1,1); }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding-bottom: clamp(20px, 3vw, 28px); color: var(--ink-2); font-size: 1.05rem; max-width: 64ch; line-height: 1.6; }

/* Centered FAQ section */
.section-faq .section-head { text-align: center; }
.section-faq .section-head .eyebrow { justify-content: center; }
.section-faq .section-head .section-title { margin-left: auto; margin-right: auto; }
.section-faq .faq-list { margin-left: auto; margin-right: auto; }

/* ── Process ────────────────────────────────────────────────────────────── */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 1024px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .process-list { grid-template-columns: 1fr; } }
.process-step { padding-top: 22px; border-top: 2px solid; border-image: var(--grad) 1; }
.process-no { font-family: var(--font-mono); font-weight: 600; font-size: .85rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.process-t { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-top: 12px; }
.process-d { color: var(--ink-2); margin-top: 8px; font-size: .98rem; line-height: 1.5; }

/* ── Page hero (inner pages) ────────────────────────────────────────────── */
.page-hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(96px, 11vh, 138px) var(--pad) clamp(20px, 4vh, 50px); overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: -30% -10% 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 80% 10%, color-mix(in oklab, var(--g2) 50%, transparent), transparent 70%),
              radial-gradient(36% 50% at 10% 30%, color-mix(in oklab, var(--g1) 45%, transparent), transparent 70%);
  filter: blur(40px); opacity: .35;
}
[data-theme="dark"] .page-hero::before { opacity: .45; }
.page-hero-deco { position: absolute; top: 12%; right: 6%; opacity: .3; z-index: 0; filter: drop-shadow(0 10px 30px color-mix(in oklab, var(--g1) 40%, transparent)); }
[data-motion="rich"] .page-hero-deco { animation: driftDiag 17s ease-in-out infinite alternate; }
[data-motion="rich"] .page-hero-deco img { animation: spin 40s linear infinite, floatY 9s ease-in-out infinite; }
.page-hero > *:not(.page-hero-deco) { position: relative; z-index: 1; }
/* Smaller floating star on tablet / phone */
@media (max-width: 1024px) { .page-hero-deco img { width: 68px; } }
@media (max-width: 480px) { .page-hero-deco img { width: 46px; } }
.page-hero .eyebrow { animation: heroIn .8s cubic-bezier(.16,.84,.3,1) backwards; }
.page-hero-title { font-size: clamp(2.2rem, 5.5vw, 4.2rem); max-width: 18ch; margin-top: 18px; text-wrap: balance; animation: heroIn 1s cubic-bezier(.16,.84,.3,1) .1s backwards; }
.page-hero-lead { max-width: 52ch; margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-2); animation: heroIn 1s cubic-bezier(.16,.84,.3,1) .2s backwards; }

/* Centered page header (tweak: headerAlign) */
.page-hero--center { text-align: center; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .page-hero-title { max-width: 22ch; margin-left: auto; margin-right: auto; }
.page-hero--center .page-hero-lead { margin-left: auto; margin-right: auto; }
.page-hero--center .page-hero-deco { left: 50%; right: auto; transform: translateX(-50%); }

/* ── About ──────────────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 280px minmax(380px, 500px); justify-content: center; align-items: center; gap: clamp(36px, 4.5vw, 68px); }
@media (max-width: 1024px) { .about-grid { grid-template-columns: 1fr; justify-content: stretch; } }
.about-portrait { position: relative; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.about-portrait-glow { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); width: 92%; aspect-ratio: 1; border-radius: 50%; z-index: 0; background: radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--g2) 55%, transparent), transparent 62%); filter: blur(8px); opacity: .5; }
[data-theme="dark"] .about-portrait-glow { opacity: .6; }
[data-motion="rich"] .about-portrait-glow { animation: gradShift 9s ease-in-out infinite, floatY 12s ease-in-out infinite; }
.about-portrait-img { position: relative; z-index: 1; width: 100%; max-width: 280px; height: auto; object-fit: contain; filter: drop-shadow(0 26px 44px rgba(8,7,14,.20)); animation: heroPhotoIn 1s cubic-bezier(.16,.84,.3,1) .15s backwards; }
[data-theme="dark"] .about-portrait-img { filter: drop-shadow(0 26px 50px rgba(0,0,0,.5)); }
.about-para { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--ink-2); margin-bottom: 22px; text-wrap: pretty; }
.about-para:first-child { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--ink); }
.about-skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.skill-chip { font-family: var(--font-mono); font-weight: 600; font-size: .78rem; letter-spacing: .03em; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); transition: all .25s; }
.skill-chip:hover { border-color: transparent; color: #fff; background: var(--grad); }

/* About — extra story section */
.about-story-inner { max-width: 1080px; margin: 0 auto; }
.about-story .section-head { text-align: center; }
.about-story .section-head .eyebrow { justify-content: center; }
.about-story .section-head .section-title { margin-left: auto; margin-right: auto; max-width: 20ch; }
.about-story-body { max-width: 1040px; margin: 0 auto; }
.about-story-lead { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.35; color: var(--ink); }
.about-story-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); margin-top: clamp(34px, 5vw, 60px); text-align: left; }
.about-story-cols .about-para,
.about-story-cols .about-para:first-child { font-family: inherit; font-weight: 400; font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.6; letter-spacing: 0; color: var(--ink-2); margin-bottom: 0; }
@media (max-width: 1024px) { .about-story-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .about-story-cols { grid-template-columns: 1fr; gap: 18px; } }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-above { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.contact-form-wrap { max-width: 760px; margin: 0 auto; width: 100%; }
.contact-side { position: relative; display: flex; flex-direction: column; gap: 26px; }
.contact-side-block { display: flex; flex-direction: column; gap: 5px; }
.contact-side-label { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact-side-val { font-size: 1.15rem; color: var(--ink); }
a.contact-side-val:hover { color: var(--g1); }
.contact-avail { display: inline-flex; align-items: center; gap: 9px; font-size: .98rem; }
.contact-socials { display: flex; flex-direction: column; gap: 4px; }
.contact-socials a { color: var(--ink-2); transition: color .2s; width: fit-content; }
.contact-socials a:hover { color: var(--g1); }
.contact-side-star { opacity: .85; margin-top: 12px; }
[data-motion="rich"] .contact-side-star { animation: spin 34s linear infinite; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g2); box-shadow: 0 0 0 3px color-mix(in oklab, var(--g2) 22%, transparent); }
.field.err input, .field.err textarea { border-color: #e0483b; box-shadow: 0 0 0 3px rgba(224,72,59,.14); }
.field.err > span { color: #e0483b; }
.contact-submit-wrap { margin-top: 8px; }
.contact-success { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius); border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.cs-star { animation: spin 8s linear infinite; }
.contact-success h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); margin-top: clamp(40px, 8vh, 100px); overflow: hidden; }
.footer-cta { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 12vh, 140px) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.footer-cta::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(50% 80% at 50% 0%, color-mix(in oklab, var(--g2) 40%, transparent), transparent 70%); filter: blur(30px); opacity: .4; }
.footer-cta > * { position: relative; z-index: 1; }
.footer-cta-title { font-size: clamp(2.4rem, 7vw, 5.4rem); max-width: 16ch; text-wrap: balance; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 50px var(--pad); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; align-items: start; border-top: 1px solid var(--line); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 54px; } }
.footer-tag { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--ink-2); transition: color .2s; width: fit-content; }
.footer-nav a:hover { color: var(--g1); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-webflow { display: flex; flex-direction: column; gap: 12px; }
.footer-shopify { display: flex; flex-direction: column; gap: 12px; }
.footer-contact > a { font-size: 1.1rem; }
.footer-contact > a:hover { color: var(--g1); }
.footer-socials { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-socials a { font-family: var(--font-mono); font-weight: 600; font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); transition: color .2s; }
.footer-socials a:hover { color: var(--g1); }
.footer-tools { display: flex; flex-direction: column; gap: 12px; }
.footer-tools-title { font-family: var(--font-mono); font-weight: 700; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footer-tools-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-tools-nav a { color: var(--ink-2); font-size: .95rem; line-height: 1.35; transition: color .2s; }
.footer-tools-nav a:hover { color: var(--g1); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .03em; color: var(--ink-3); }

/* ── Project case study ─────────────────────────────────────────────────── */
.cs-topbar { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 11vh, 120px) var(--pad) 0; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: none; border: 0; transition: color .2s, gap .2s; }
.cs-back:hover { color: var(--g1); gap: 13px; }
.cs-back-arrow { font-size: 1.15em; }

.cs-hero { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(24px, 4vh, 44px); padding-bottom: clamp(16px, 2.5vh, 32px); overflow: visible; }
.cs-content { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 0; padding-bottom: clamp(40px, 6vh, 80px); }
.cs-content-body { display: flex; flex-direction: column; gap: 16px; }
.cs-content-did { align-self: start; display: flex; flex-direction: column; gap: 16px; }
.cs-hero-deco { position: absolute; top: 4%; right: var(--pad); opacity: .3; pointer-events: none; z-index: 0; }
[data-motion="rich"] .cs-hero-deco { animation: driftDiag 19s ease-in-out infinite alternate; }
[data-motion="rich"] .cs-hero-deco img { animation: spin 44s linear infinite, floatY 10s ease-in-out infinite; }
.cs-hero-main { position: relative; z-index: 1; }
.cs-title { font-size: clamp(2.4rem, 6.5vw, 5rem); margin-top: 18px; text-wrap: balance; }
.cs-desc { max-width: 52ch; margin-top: 22px; font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }

.cs-meta { border-top: 1px solid var(--line); position: sticky; top: clamp(88px, 12vh, 116px); align-self: start; }
.cs-meta-block { display: flex; flex-direction: column; gap: 7px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cs-meta-label { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cs-meta-val { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.cs-meta-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; transition: color .2s; }
.cs-meta-link:hover { color: var(--g1); }
.cs-ext { color: var(--g1); }
.cs-did-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.cs-did-list li { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 500; color: var(--ink-2); }
.cs-did-star { color: var(--g1); flex: none; }

/* About — inside cs-content-body */
.cs-about { display: flex; flex-direction: column; gap: 16px; }
.cs-about-label { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cs-about-body { max-width: 60ch; display: flex; flex-direction: column; gap: 18px; }
.cs-about-p { font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.72; color: var(--ink-2); text-wrap: pretty; }

/* Lead preview — big full-width shot directly under the hero */
.cs-lead { padding-top: 0; padding-bottom: clamp(30px, 4.5vh, 60px); }
.cs-lead-head { margin-bottom: clamp(16px, 2vw, 26px); }
.cs-lead-shot { max-width: var(--maxw); }
.cs-lead-shot shot-slot { --shot-h: clamp(440px, 58vh, 680px); }

.cs-gallery { padding-top: clamp(30px, 4.5vh, 60px); }
.cs-gallery-head { text-align: left; margin-bottom: clamp(20px, 3vw, 36px); }
.cs-shots { display: flex; align-items: flex-start; gap: clamp(20px, 2.4vw, 34px); max-width: var(--maxw); margin: 0 auto; }
.cs-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 34px); }
/* Staggered column starts ("schodki") */
.cs-shots--c2 .cs-col:nth-child(2) { margin-top: clamp(44px, 7vw, 100px); }
.cs-shots--c3 .cs-col:nth-child(2) { margin-top: clamp(52px, 8vw, 120px); }
.cs-shots--c3 .cs-col:nth-child(3) { margin-top: clamp(24px, 4vw, 56px); }
.cs-shots shot-slot { --shot-h: 600px; }
.cs-shots--c3 shot-slot { --shot-h: 540px; }
@media (max-width: 1024px) {
  /* c3 → 2 columns; minmax(0,1fr) prevents URL white-space:nowrap from inflating track min-size */
  .cs-shots--c3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 34px); }
  .cs-shots--c3 .cs-col { display: contents; }
  .cs-shots--c3 .cs-shot { min-width: 0; }
}
@media (max-width: 480px) {
  .cs-shots--c2 { flex-direction: column; }
  .cs-shots--c2 .cs-col:nth-child(n) { margin-top: 0; }
  /* c3: collapse grid to 1 column */
  .cs-shots--c3 { grid-template-columns: 1fr; }
  .cs-shots shot-slot { --shot-h: min(560px, 72vh); }
}

/* Fullscreen screenshot lightbox (appended to <body> by shot-slot) */
.shot-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(8,7,14,.88); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.shot-lightbox.open { opacity: 1; }
.slb-scroll { height: 100%; overflow-y: auto; padding: clamp(24px, 6vh, 64px) 16px; display: flex; justify-content: center; }
.slb-scroll img { width: min(1100px, 100%); height: auto; border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.55); align-self: flex-start; }
.slb-close { position: fixed; top: 20px; right: 24px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.slb-close:hover { background: rgba(255,255,255,.3); transform: scale(1.08); }
.slb-close:active { transform: scale(.95); }

.cs-next { cursor: pointer; }
.cs-next-inner { border-top: 1px solid var(--line); padding-top: clamp(26px, 4vw, 44px); }
.cs-next-label { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cs-next-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 12px 0 8px; }
.cs-next-name { font-size: clamp(2rem, 5.5vw, 3.6rem); transition: color .3s; padding-bottom: 0.15em; }
.cs-next:hover .cs-next-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.cs-next-swatch { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; box-shadow: var(--glow); transition: transform .35s; }
.cs-next:hover .cs-next-swatch { transform: rotate(90deg); }
.cs-next-kind { font-family: var(--font-mono); font-weight: 500; font-size: .8rem; letter-spacing: .03em; color: var(--ink-2); }

@media (max-width: 1024px) {
  .cs-hero { grid-template-columns: 1fr; gap: 36px; }
  .cs-hero-deco { display: none; }
  .cs-content { grid-template-columns: 1fr; }
}

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes heroIn { from { transform: translateY(32px); } to { transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flyAcross { 0% { transform: translateX(118vw); } 100% { transform: translateX(-135vw); } }
@keyframes driftDiag { from { transform: translate(-130px, 70px); } to { transform: translate(150px, -90px); } }
@keyframes floatY { 0%,100% { translate: 0 0; } 50% { translate: 0 -26px; } }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25,195,125,.45); } 70% { box-shadow: 0 0 0 8px rgba(25,195,125,0); } 100% { box-shadow: 0 0 0 0 rgba(25,195,125,0); } }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ── Responsive header ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-main { display: none; }
  .header-cta-wrap { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); flex-direction: column; gap: 4px; padding: 100px var(--pad) 40px; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(8,7,14,.18); transform: translateX(100%); opacity: 1; pointer-events: none; transition: transform .5s cubic-bezier(.5,0,.1,1); z-index: 1001; overflow-y: auto; }
  .mobile-menu.open { transform: translateX(0); pointer-events: auto; }
  .mobile-link { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; letter-spacing: -.025em; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line-2); transition: color .25s, padding-left .3s; }
  .mobile-link:hover, .mobile-link.active { color: var(--g1); }
  .mobile-link-no { font-family: var(--font-mono); font-weight: 600; font-size: .8rem; color: var(--ink-3); }
  .mobile-cta { margin-top: 24px; align-self: flex-start; }
  .mobile-close { position: absolute; top: 22px; right: var(--pad); width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--glow); transition: transform .25s ease, filter .25s ease; }
  .mobile-close:hover { transform: rotate(90deg); filter: brightness(1.06); }
  .mobile-close:active { transform: rotate(90deg) scale(.94); }
}
@media (max-width: 480px) {
  .footer-cta, .footer-bottom { text-align: center; justify-content: center; }
  .lang-toggle button { padding: 5px 8px; }
}

/* ── Tablet + phone: center everything ───────────────────────────────────── */
@media (max-width: 1024px) {
  /* Hero */
  .hero--editorial .hero-inner, .hero--centered .hero-inner { align-items: center; text-align: center; }
  .hero--editorial .hero-textcol { text-align: center; }
  .hero-top { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-scroll { justify-content: center; width: 100%; }

  /* Generic section heads */
  .section-head { text-align: center; align-items: center; }
  .section-head .eyebrow { justify-content: center; }
  .section-head .section-title { margin-left: auto; margin-right: auto; }

  /* Inner page hero */
  .page-hero { text-align: center; }
  .page-hero .eyebrow { justify-content: center; }
  .page-hero-title { margin-left: auto; margin-right: auto; }
  .page-hero-lead { margin-left: auto; margin-right: auto; }
  .page-hero-deco { left: 50%; right: auto; transform: translateX(-50%); }

  /* Services list */
  .service-head { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .service-headmain { width: 100%; }

  /* Work filters + index rows */
  .work-filters { justify-content: center; }

  /* About story */
  .about-story-cols { text-align: center; }

  /* Contact side */
  .contact-side, .contact-side-block { text-align: center; align-items: center; }

  /* Footer — keep the big CTA centered, but left-align the column content */
  .footer-cta { text-align: center; }
  .footer-grid { text-align: left; }
  .footer-brand, .footer-nav, .footer-contact, .footer-tools { align-items: flex-start; }
}

/* ── Device preview switcher ─────────────────────────────────────────────── */
body.is-preview-shell { overflow: hidden; }
.dp-stage {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px 92px;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in oklab, var(--g1) 7%, var(--bg)) 0%, var(--bg) 60%);
}
.dp-frame {
  position: relative; flex: none;
  border-radius: 38px; background: #0b0a11; padding: 12px;
  transform-origin: center center;
  box-shadow: 0 50px 90px -34px rgba(8,7,14,.6), 0 0 0 1px rgba(8,7,14,.06);
}
.dp-mobile .dp-frame { border-radius: 52px; padding: 13px; }
.dp-iframe {
  width: 100%; height: 100%; border: 0; display: block;
  border-radius: 24px; background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(8,7,14,.08);
}
.dp-mobile .dp-iframe { border-radius: 40px; }

.dp-switch {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 1000; display: flex; gap: 4px; padding: 5px;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgba(8,7,14,.4), 0 1px 0 rgba(255,255,255,.4) inset;
}
.dp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .01em;
  transition: color .2s, background .2s, box-shadow .2s;
}
.dp-btn:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.dp-btn.is-active {
  color: #fff;
  background: var(--grad);
  box-shadow: var(--glow);
}
.dp-btn svg { flex: none; }
@media (max-width: 480px) {
  .dp-btn-label { display: none; }
  .dp-btn { padding: 10px; }
}
