/* =========================================================
   Dominik Rudkowski: system wizualny
   Siatka 8 px, jedna rodzina pisma, 3 poziomy szkła, jeden akcent.
   ========================================================= */

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

:root {
  /* odstępy: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  /* promienie */
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-pill: 999px;
  /* typografia */
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-xs: 0.8125rem;  /* 13 */
  --t-sm: 0.9375rem;  /* 15 */
  --t-md: 1.0625rem;  /* 17 */
  --t-lg: 1.25rem;    /* 20 */
  --t-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --t-2xl: clamp(1.625rem, 1.2rem + 2vw, 2.5rem);
  --t-3xl: clamp(2.5rem, 1.6rem + 4.4vw, 4.5rem);
  /* ruch */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: .18s; --mid: .32s;

  /* kolory: jasny motyw */
  --bg: #eaf2f9;
  --ink: #14171c;
  --muted: #485665;
  --line: rgba(20, 44, 74, .14);
  --accent: #b9400b;        /* tekst i znaczniki (kontrast > 4.5:1 na jasnym tle) */
  --accent-fill: #e8590c;   /* wypełnienia i pasek postępu */
  --pill: #14171c; --pill-ink: #f6f7f9;
  --focus: #0b5cd5;
  --orb1: rgba(120, 196, 240, .75); --orb2: rgba(170, 220, 248, .8); --orb3: rgba(255, 196, 150, .45);
  /* szkło: 1 tło sekcji i nawigacja, 2 karty, 3 kontrolki */
  --g1: rgba(255, 255, 255, .56);
  --g2: rgba(255, 255, 255, .66);
  --g3: rgba(255, 255, 255, .78);
  --g-solid: #f8fbfe;
  --rim: rgba(255, 255, 255, .9);
  --shadow: 0 18px 44px -20px rgba(24, 64, 104, .32), 0 2px 6px rgba(24, 64, 104, .06);
  --shadow-sm: 0 6px 16px -8px rgba(24, 64, 104, .3);
  --blur: blur(20px) saturate(170%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060b13; --ink: #f2f4f7; --muted: #a9b6c4; --line: rgba(255, 255, 255, .15);
    --accent: #ff9a52; --accent-fill: #ff7a2e; --pill: #f2f4f7; --pill-ink: #12151a; --focus: #7cb4ff;
    --orb1: rgba(52, 120, 200, .42); --orb2: rgba(90, 160, 230, .26); --orb3: rgba(255, 140, 60, .14);
    --g1: rgba(20, 28, 40, .52); --g2: rgba(24, 33, 47, .62); --g3: rgba(40, 50, 66, .7); --g-solid: #121a26;
    --rim: rgba(255, 255, 255, .16);
    --shadow: 0 22px 50px -20px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .3); --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060b13; --ink: #f2f4f7; --muted: #a9b6c4; --line: rgba(255, 255, 255, .15);
  --accent: #ff9a52; --accent-fill: #ff7a2e; --pill: #f2f4f7; --pill-ink: #12151a; --focus: #7cb4ff;
  --orb1: rgba(52, 120, 200, .42); --orb2: rgba(90, 160, 230, .26); --orb3: rgba(255, 140, 60, .14);
  --g1: rgba(20, 28, 40, .52); --g2: rgba(24, 33, 47, .62); --g3: rgba(40, 50, 66, .7); --g-solid: #121a26;
  --rim: rgba(255, 255, 255, .16);
  --shadow: 0 22px 50px -20px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .3); --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-md)/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dim { color: var(--muted); }
.inner { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--s4); }
.inner.narrow { max-width: 760px; }
@media (min-width: 600px) { .inner { padding-inline: var(--s6); } }

.skip { position: absolute; left: var(--s4); top: -100px; z-index: 100; padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--pill); color: var(--pill-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--s4); }

/* typografia */
.h1 { font-size: var(--t-3xl); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.h2 { font-size: var(--t-2xl); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.h3 { font-size: var(--t-xl); line-height: 1.15; font-weight: 750; letter-spacing: -.02em; text-wrap: balance; }
.h4 { font-size: var(--t-xs); line-height: 1.3; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sub { margin-top: var(--s3); font-size: var(--t-lg); line-height: 1.4; max-width: 52ch; text-wrap: pretty; }
.meta { font-size: var(--t-xs); font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.lead { font-size: var(--t-lg); line-height: 1.45; max-width: 56ch; text-wrap: pretty; }
.note { margin-top: var(--s2); max-width: 64ch; font-size: var(--t-sm); }
.fine { margin-top: var(--s1); font-size: .75rem; color: var(--muted); }

/* ---------- tło: kule światła ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.orb { position: absolute; border-radius: 50%; aspect-ratio: 1; }
.o1 { width: min(760px, 130vw); left: -22%; top: -16%; background: radial-gradient(circle, var(--orb1), transparent 66%); }
.o2 { width: min(640px, 110vw); right: -24%; top: 30%; background: radial-gradient(circle, var(--orb2), transparent 66%); }
.o3 { width: min(520px, 90vw); left: 20%; bottom: -22%; background: radial-gradient(circle, var(--orb3), transparent 66%); }
@media (prefers-reduced-motion: no-preference) {
  :root:not(.lite) .orb { animation: drift 40s ease-in-out infinite alternate; will-change: transform; }
  :root:not(.lite) .o2 { animation-duration: 52s; animation-direction: alternate-reverse; }
  :root:not(.lite) .o3 { animation-duration: 47s; }
}
@keyframes drift { from { transform: translate3d(-4%, -3%, 0) scale(.96); } to { transform: translate3d(5%, 4%, 0) scale(1.06); } }

/* ---------- szkło (3 poziomy) ---------- */
.glass { position: relative; background: var(--g2); border-radius: var(--r-lg); box-shadow: var(--shadow), inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
:root.lite .glass, :root.lite .tabs { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--g-solid); }
@media (prefers-reduced-transparency: reduce) { .glass, .tabs { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--g-solid) !important; } }
@media (max-width: 760px) { .glass { --blur: blur(12px) saturate(160%); } }

/* ---------- przyciski i linki ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-sm); background: var(--pill); color: var(--pill-ink); font-weight: 650; font-size: var(--t-md); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-2 { background: var(--g3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.btn-2:hover { background: var(--g-solid); }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: var(--t-sm); }
.link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--line); transition: text-decoration-color var(--fast); }
.link:hover { text-decoration-color: currentColor; }
.ctl { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--g3); box-shadow: inset 0 0 0 1px var(--line); font-weight: 750; font-size: var(--t-xs); text-decoration: none; letter-spacing: .03em; transition: background-color var(--fast); }
.ctl:hover { background: var(--g-solid); }
.ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; } :root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .i-sun { display: block; } :root:not([data-theme="light"]) .theme .i-moon { display: none; } }
.arr { display: inline-block; transition: transform var(--fast) var(--ease); }

/* ---------- nawigacja ---------- */
.top { position: sticky; top: 0; z-index: 30; padding-top: calc(env(safe-area-inset-top) + var(--s3)); }
.cap { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); border-radius: var(--r-pill); isolation: isolate; }
/* Szkło kapsuły jest na ::before: backdrop-filter na samej kapsule zamknąłby w niej dolny pasek zakładek (position: fixed). */
.cap.glass { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cap::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--g1); box-shadow: var(--shadow), inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transform: translateZ(0); backface-visibility: hidden; }
:root.lite .cap::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--g-solid); }
.brand { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.brand img { width: 100%; height: 100%; object-fit: cover; }
.tabs { display: flex; gap: 2px; margin-inline: auto; }
.tab { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); color: var(--muted); font-size: var(--t-sm); font-weight: 650; text-decoration: none; white-space: nowrap; transition: color var(--fast); }
.tab:hover, .tab[aria-current] { color: var(--ink); }
.tab .tl { position: relative; z-index: 1; }
.lens { position: absolute; inset: 4px 0; border-radius: var(--r-pill); background: var(--g3); box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line), var(--shadow-sm); view-transition-name: lens; }
.acts { display: flex; align-items: center; gap: var(--s2); }
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .cap { justify-content: space-between; }
  /* dolny pasek zakładek jak w aplikacji */
  .tabs { position: fixed; z-index: 40; left: var(--s3); right: var(--s3); bottom: calc(env(safe-area-inset-bottom) + var(--s3)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: var(--s1); border-radius: var(--r-pill); background: var(--g1); box-shadow: var(--shadow), inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
  .tab { min-height: 48px; padding: 0 2px; font-size: .75rem; }
  .lens { inset: 0; }
  body { padding-bottom: calc(env(safe-area-inset-bottom) + 88px); }
}

/* przejścia między podstronami (View Transitions, przeglądarki bez wsparcia po prostu przeładują) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(lens) { animation-duration: .42s; animation-timing-function: var(--ease); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}

/* ---------- sekcje ---------- */
main { display: block; }
.sec { margin-top: var(--s8); }
@media (min-width: 900px) { .sec { margin-top: var(--s9); } }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3) var(--s5); }
.phead { padding-block: var(--s7) var(--s6); }
.pts { display: grid; gap: var(--s2); }
.pts li { position: relative; padding-left: var(--s5); }
.pts li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-fill); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }

/* ---------- strona główna: hero ---------- */
.hero { display: grid; gap: var(--s5); padding-block: var(--s6) 0; }
.hero-photo img { width: 112px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow), 0 0 0 4px var(--rim); }
.hero h1 { font-size: var(--t-3xl); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.hero-line { margin-top: var(--s4); font-size: var(--t-2xl); line-height: 1.16; font-weight: 650; letter-spacing: -.025em; max-width: 24ch; text-wrap: balance; }
.hero .lead { margin-top: var(--s4); font-size: var(--t-md); }
@media (max-width: 899px) {
  /* telefon: małe zdjęcie obok nazwiska, żeby CTA zmieściło się na pierwszym ekranie */
  .hero { grid-template-columns: 88px minmax(0, 1fr); column-gap: var(--s4); row-gap: 0; padding-top: var(--s5); }
  .hero-text { display: contents; }
  .hero-photo { grid-column: 1; grid-row: 1; }
  .hero-photo img { width: 88px; }
  .hero h1 { grid-column: 2; grid-row: 1; align-self: center; font-size: clamp(2rem, 9vw, 3rem); }
  .hero-line, .hero .lead, .hero .cta { grid-column: 1 / -1; }
  .hero-line { margin-top: var(--s5); font-size: clamp(1.5rem, 6.4vw, 2rem); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: var(--s8); padding-block: var(--s8) 0; }
  .hero-photo { order: 2; }
  .hero-photo img { width: 300px; border-radius: var(--r-lg); }
  .hero .lead { font-size: var(--t-lg); }
}

/* historie + liczby */
.feat { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .feat { grid-template-columns: 340px minmax(0, 1fr); gap: var(--s5); align-items: stretch; } }
.story { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #111; color: #fff; isolation: isolate; box-shadow: var(--shadow); container-type: inline-size; }
@media (min-width: 900px) { .story { aspect-ratio: auto; min-height: 480px; } }
.bars { position: absolute; z-index: 5; top: var(--s3); left: var(--s3); right: 56px; display: flex; gap: var(--s1); }
.bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .38); overflow: hidden; }
.bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.bar.done i { transform: none; }
.bar.run i { animation: fill 6s linear forwards; }
.story.paused .bar.run i { animation-play-state: paused; }
@keyframes fill { to { transform: none; } }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s2); padding: var(--s7) var(--s5) var(--s5); visibility: hidden; opacity: 0; transition: opacity .4s ease, visibility 0s .4s; }
.slide.on { visibility: visible; opacity: 1; transition: opacity .4s ease; }
.slide .tag { font-size: var(--t-xs); font-weight: 700; opacity: .85; }
.slide h3 { font-size: clamp(1.6rem, 10cqw, 2.4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.slide p { font-size: var(--t-sm); line-height: 1.4; max-width: 30ch; opacity: .92; }
.slide-link { position: relative; z-index: 6; align-self: flex-start; margin-top: var(--s2); padding: var(--s2) var(--s3); margin-left: calc(var(--s3) * -1); border-radius: var(--r-sm); color: inherit; font-weight: 700; font-size: var(--t-sm); }
.s1 { background: linear-gradient(165deg, #ff9f0a, #e8590c 55%, #d3194a); color: #16120e; }
.s2 { background: radial-gradient(120% 80% at 80% 10%, #0e5a55, transparent 60%), linear-gradient(165deg, #0b1f20, #0b1213); }
.s2 .ghost { position: absolute; top: var(--s7); left: var(--s5); font-size: clamp(3rem, 20cqw, 4.4rem); line-height: .95; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.3px rgba(255, 255, 255, .3); font-variant-numeric: tabular-nums; }
.s3 .slide-bg { position: absolute; inset: 0; z-index: -1; }
.s3 .slide-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.s3::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 8, 6, .9) 10%, rgba(10, 8, 6, .1) 60%); }
.s4 { background: radial-gradient(110% 70% at 50% 0%, #2f4475, transparent 65%), linear-gradient(165deg, #1b2547, #0b1020); }
/* Slajd 1: trzy prawdziwe kadry z realizacji zamiast pustego tła */
.tiles { position: absolute; top: var(--s7); left: var(--s5); right: var(--s5); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.tiles span { display: grid; align-content: start; gap: var(--s1); }
.tiles picture { display: block; border-radius: var(--r-sm); overflow: hidden; background: rgba(0, 0, 0, .15); box-shadow: 0 6px 16px rgba(80, 20, 0, .25); }
.tiles img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.tiles b { font-size: var(--t-xs); font-weight: 700; overflow-wrap: anywhere; }
/* Slajd 4: ikona aplikacji */
.slide-icon { position: absolute; top: var(--s7); left: 50%; translate: -50% 0; width: min(46%, 168px); }
.slide-icon img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .45)); }
.tap { position: absolute; z-index: 4; top: 0; bottom: 0; width: 34%; }
.tap.l { left: 0; } .tap.r { right: 0; }
.tap:focus-visible { outline-offset: -6px; }
.pausebtn { position: absolute; z-index: 6; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.pausebtn svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(0, 0, 0, .4); fill: currentColor; }
.pausebtn .i-play, .pausebtn.is-paused .i-pause { display: none; }
.pausebtn.is-paused .i-play { display: block; }
:root:not(.js) .tap, :root:not(.js) .pausebtn, :root:not(.js) .bars { display: none; }

.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 900px) { .nums { gap: var(--s4); } }
.num { height: 100%; display: grid; align-content: start; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); text-decoration: none; transition: transform var(--fast) var(--ease); }
@media (min-width: 600px) { .num { padding: var(--s5); border-radius: var(--r-lg); } }
.num:hover { transform: translateY(-2px); }
.big-n { font-size: var(--t-2xl); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .big-n { font-size: clamp(2.5rem, 4vw, 3.5rem); } }
.big-n small { font-size: .45em; font-weight: 700; letter-spacing: -.01em; color: var(--muted); }
.num .dim { font-size: var(--t-sm); line-height: 1.35; }

/* trzy obszary: jeden panel, kolumny zamiast trzech kart */
.areas { margin-top: var(--s5); display: grid; padding: var(--s2) var(--s5); }
.area { padding-block: var(--s5); display: grid; gap: var(--s3); align-content: start; }
.area + .area { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--s2) 0; }
  .area { padding: var(--s6); }
  .area + .area { border-top: 0; border-left: 1px solid var(--line); }
}
.proofs { display: grid; gap: var(--s1); margin-top: var(--s2); }
.proofs a { display: flex; gap: var(--s2); padding: var(--s2) 0; font-weight: 650; text-decoration: none; line-height: 1.35; }
.proofs a::before { content: "→"; color: var(--accent); flex: none; }
.proofs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* karty realizacji */
.cases-grid { margin-top: var(--s5); display: grid; gap: var(--s4); }
@media (min-width: 700px) { .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cases-grid:not(.all) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cc { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform var(--mid) var(--ease); }
.cc:hover { transform: translateY(-3px); }
.cc:hover .arr { transform: translateX(4px); }
.cc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.cc-media img { width: 100%; height: 100%; object-fit: cover; }
.cc-media.type, .case-type { display: grid; place-items: center; text-align: center; background: #141b26; color: #f2f4f7; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.cc-body { flex: 1; display: grid; gap: var(--s2); align-content: start; padding: var(--s5); }
.cc-body h2, .cc-body h3 { font-size: var(--t-lg); line-height: 1.2; font-weight: 750; letter-spacing: -.015em; text-wrap: balance; }
.cc-body .dim { font-size: var(--t-sm); }
.cc-body .arr { margin-top: var(--s2); color: var(--accent); font-weight: 700; }

/* rekomendacje */
.recs { margin-top: var(--s5); display: grid; gap: var(--s4); }
@media (min-width: 800px) { .recs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rec { padding: var(--s6); display: grid; gap: var(--s4); }
.rec blockquote p { font-size: var(--t-lg); line-height: 1.45; }
.rec figcaption { display: grid; gap: 2px; font-size: var(--t-sm); }

/* kontakt */
.contact { padding: var(--s6) var(--s5); display: grid; gap: var(--s4); justify-items: start; overflow: hidden; scroll-margin-top: 96px; }
@media (min-width: 700px) { .contact { padding: var(--s7); } }
.contact > :not(.avatar) { position: relative; z-index: 1; max-width: 46ch; }
.mail { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.mail-big { font-size: var(--t-xl); letter-spacing: -.02em; }
.contact .links { gap: var(--s4) var(--s5); }
.contact .ok { min-height: 1.5em; font-size: var(--t-sm); }
.avatar { position: absolute; right: var(--s4); bottom: 0; pointer-events: none; }
.avatar img { height: 150px; width: auto; opacity: .95; }
@media (min-width: 700px) { .avatar { right: var(--s8); } .avatar img { height: 280px; } }
@media (max-width: 520px) { .avatar { display: none; } }

/* ---------- kariera ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--g3); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: var(--t-sm); transition: background-color var(--fast), color var(--fast); }
.chip:hover { background: var(--g-solid); }
.chip[aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); box-shadow: none; }
.count { margin-top: var(--s3); min-height: 1.5em; font-size: var(--t-sm); }
.jobs { margin-top: var(--s4); display: grid; gap: var(--s4); }
.job { padding: var(--s5); display: grid; gap: var(--s4); }
@media (min-width: 760px) { .job { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s6); padding: var(--s6); } }
.when { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); align-content: start; }
@media (min-width: 760px) { .when { flex-direction: column; align-items: flex-start; } }
.pill { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1) var(--s3); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 700; background: var(--pill); color: var(--pill-ink); }
.pill.hot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fb36b; }
.dates { font-size: var(--t-sm); font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.orglogo img { width: 120px; border-radius: var(--r-sm); }
.org { margin-top: var(--s1); font-weight: 600; color: var(--muted); }
.job .pts { margin-top: var(--s4); max-width: 68ch; }
.pts.key li { padding-bottom: var(--s1); }
.more-link { font-size: var(--t-sm); font-weight: 650; color: var(--accent); white-space: nowrap; text-underline-offset: 3px; }
details.more { margin-top: var(--s4); border-top: 1px solid var(--line); }
details.more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 48px; font-weight: 700; }
details.more summary::-webkit-details-marker { display: none; }
.plus { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--g3); box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; transition: transform var(--mid) var(--ease); }
details[open] .plus { transform: rotate(45deg); }
.grp { margin-top: var(--s4); font-size: var(--t-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.grp + .pts { margin-top: var(--s2); }
.skills { padding: var(--s5); }
@media (min-width: 760px) { .skills { padding: var(--s6); } }
.tgrid { margin-top: var(--s4); display: grid; gap: var(--s4) var(--s6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tgrid dt { font-size: var(--t-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tgrid dd { margin-top: var(--s1); }

/* ---------- realizacja ---------- */
.crumbs { display: flex; gap: var(--s2); padding-top: var(--s6); font-size: var(--t-sm); color: var(--muted); }
.crumbs a { text-underline-offset: 3px; }
.case-head { padding-block: var(--s4) var(--s6); display: grid; gap: var(--s4); }
.case-h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); max-width: 22ch; }
.stats { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); margin-top: var(--s2); }
.stats li { display: grid; gap: 2px; max-width: 22ch; }
.stats b { font-size: var(--t-2xl); line-height: 1; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stats span { font-size: var(--t-sm); line-height: 1.35; }
.cmedia { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cmedia.n1 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .cmedia.n5, .cmedia.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmedia.n5 .wide, .cmedia.n3 .wide { grid-column: span 2; }
  .cmedia.n5 figure.cm-item:nth-child(4) .zoom, .cmedia.n5 figure.cm-item:nth-child(4) picture { height: 100%; }
  .cmedia.n5 figure.cm-item:nth-child(4) img { height: 100%; aspect-ratio: auto; }
}
.cm-item.wide { grid-column: 1 / -1; }
.cm-item figcaption { margin-top: var(--s2); font-size: var(--t-xs); font-weight: 650; color: var(--muted); }
.zoom { display: block; width: 100%; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; box-shadow: inset 0 0 0 1px var(--line); }
.zoom img { width: 100%; transition: transform var(--mid) var(--ease); }
.zoom:hover img { transform: scale(1.02); }
.cmedia:not(.n1) .zoom img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.cmedia .wide .zoom img { aspect-ratio: auto; }
.case-type { aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
/* Karty aplikacji: ikona na tle w kolorze ikony */
.cc-media.app, .case-type.app { background: radial-gradient(90% 80% at 50% 0%, #2f4475, transparent 70%), linear-gradient(165deg, #1b2547, #0b1020); }
.cc-media.app picture { width: 30%; max-width: 120px; }
.case-type.app picture { width: 18%; max-width: 160px; }
.cc-media.app.logo picture { width: 56%; max-width: 240px; }
.case-type.app.logo picture { width: 34%; max-width: 320px; }
.cc-media.app img, .case-type.app img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .45)); }
.case-body { margin-top: var(--s5); padding: var(--s5); display: grid; gap: var(--s5); }
@media (min-width: 760px) {
  .case-body { padding: var(--s7); gap: var(--s6); }
  .case-body section { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s5); }
  .case-body .h4 { padding-top: .3em; }
}
.case-body section > p, .case-body .pts { max-width: 66ch; }
.case-body .res .pts li::before { background: #2fb36b; }
.case-cta { margin-top: var(--s5); padding: var(--s5); display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 760px) { .case-cta { grid-template-columns: minmax(0, 1fr) auto; padding: var(--s6); } }
.case-next { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.next { display: grid; gap: var(--s1); padding: var(--s4) var(--s5); border-radius: var(--r-md); text-decoration: none; max-width: 420px; transition: transform var(--fast) var(--ease); }
.next:hover { transform: translateX(3px); }
.next .dim { font-size: var(--t-xs); font-weight: 650; }

/* wideo */
.vid { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.vid .frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden; background: #0b1118; }
.vid.land .frame { aspect-ratio: 16 / 9; }
.vposter, .vposter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vposter { z-index: 1; pointer-events: none; }
.vplay { z-index: 2; }
.vid.baked .pb { visibility: hidden; }
:root:not(.js) .vposter { display: none; }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.vid.playing video { background: #0b1118; }
.vid.playing .vposter { visibility: hidden; }
.vplay { position: absolute; inset: 0; display: grid; place-items: center; }
.pb { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .42); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); transition: transform var(--fast) var(--ease), background-color var(--fast); }
.pb svg { width: 26px; height: 26px; margin-left: 3px; fill: #fff; }
.vplay:hover .pb { transform: scale(1.06); background: rgba(0, 0, 0, .58); }
.vplay:focus-visible { outline-offset: -4px; }
.dur { position: absolute; left: var(--s3); top: var(--s3); padding: 2px var(--s2); border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.vid figcaption { display: grid; gap: 2px; }
.vid h3 { font-size: var(--t-md); font-weight: 750; letter-spacing: -.01em; line-height: 1.25; }
.vid figcaption p { font-size: var(--t-sm); color: var(--muted); }
.vids { margin-top: var(--s5); display: grid; gap: var(--s4); grid-auto-flow: column; grid-auto-columns: min(70%, 260px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s3); overscroll-behavior-x: contain; }
.vids .vid { scroll-snap-align: start; }
@media (min-width: 900px) { .vids { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

/* galeria */
.posters { margin-top: var(--s5); display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .posters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
.poster { padding: var(--s2); border-radius: var(--r-md); }
.poster .zoom { border-radius: var(--r-sm); }
.poster figcaption { padding: var(--s2) var(--s1) var(--s1); font-size: var(--t-sm); font-weight: 650; color: var(--muted); }
.gal { margin-top: var(--s4); padding: var(--s3); display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 760px) { .gal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--s4); gap: var(--s6); } .gal.rev .gal-media { order: 2; } }
.gal-media { display: grid; gap: var(--s2); }
.gal-media.n2 { grid-template-columns: 1fr 1fr; }
.gal-media img { border-radius: var(--r-md); aspect-ratio: 3 / 4; object-fit: cover; }
.gal-media.n1 img { max-height: 420px; width: 100%; }
.gal-text { display: grid; gap: var(--s3); padding: var(--s2) var(--s3) var(--s4); }

/* edukacja */
.edu-grid { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .edu.wide { grid-column: 1 / -1; } }
.edu { padding: var(--s5); display: grid; gap: var(--s3); align-content: start; }
@media (min-width: 760px) { .edu { padding: var(--s6); } }
.certs { margin-top: var(--s5); padding: var(--s2) var(--s5); }
.certs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); padding-block: var(--s4); }
.certs li + li { border-top: 1px solid var(--line); }
.certs .h4 { font-size: var(--t-md); text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.certs p.dim { margin-top: var(--s1); font-size: var(--t-sm); max-width: 60ch; }
.prose { padding: var(--s6) var(--s5); display: grid; gap: var(--s3); }
.prose h2:not(:first-child) { margin-top: var(--s4); }
@media (min-width: 760px) { .prose { padding: var(--s7); } }

/* stopka */
.foot { margin-top: var(--s9); padding-block: var(--s6) var(--s7); font-size: var(--t-sm); color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); }
.foot a { text-underline-offset: 3px; }

/* powiększenie */
.lb { max-width: min(94vw, 900px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-md); background: transparent; overflow: visible; }
.lb::backdrop { background: rgba(6, 14, 24, .82); }
.lb img { max-width: 100%; max-height: 88vh; width: auto; border-radius: var(--r-md); }
.lbx { position: absolute; top: var(--s2); right: var(--s2); z-index: 1; font-size: 26px; font-weight: 400; background: rgba(0, 0, 0, .55); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.lbx:hover { background: rgba(0, 0, 0, .75); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .bar.run i { animation: none; }
}
@media print {
  .bg, .top, .tabs, .foot, .story, .avatar { display: none !important; }
  .glass { box-shadow: none; background: none; backdrop-filter: none; }
}
