/* INFINITY portfolio. Kolory i typografia z brand kitu INFINITY. */
/* Fonty: Montserrat (nagłówki i tekst, lekki krój 300), Inter tylko w drobnych etykietach. Akcent: złoto. */
@font-face { font-family: Montserrat; src: url(fonts/montserrat-light.woff) format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: Montserrat; src: url(fonts/montserrat-medium.woff) format('woff'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(fonts/montserrat-semibold.woff) format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1D1D1D;
  --ink-2: #272624;
  --ivory: #F5F3EF;
  --paper: #EAE5DC;
  --orange: #C9A45C; /* złoto (dawniej pomarańcz; nazwa zmiennej zostaje) */
  --copper: #9C7738; /* ciemne złoto do tekstu na jasnym tle */
  --mute-d: rgba(245, 243, 239, .7);
  --mute-l: #5d5850;
  --line-d: rgba(245, 243, 239, .14);
  --line-l: rgba(29, 29, 29, .14);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font-family: Montserrat, system-ui, sans-serif; font-size: 1.0625rem; font-weight: 300; line-height: 1.7; letter-spacing: 0; color: var(--ivory); background: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-kerning: normal; font-feature-settings: 'ss01', 'cv05', 'cv08', 'calt'; }
p, li { text-wrap: pretty; }
b, strong { font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .next b, .nav__logo, .btn { font-family: Montserrat, Arial, sans-serif; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; font-kerning: normal; }
h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 99; background: var(--orange); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }

/* znak nieskończoności */
.mark { width: 2.4rem; height: auto; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }

/* ---------- nawigacja ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.1rem var(--pad); transition: background .3s, padding .3s; }
.nav.is-solid { background: rgba(29, 29, 29, .92); backdrop-filter: blur(10px); padding-block: .7rem; }
.nav__logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; letter-spacing: .32em; font-size: .95rem; font-weight: 500; }
.nav__logo .mark { color: var(--orange); }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__menu a { text-decoration: none; font-size: .98rem; color: var(--mute-d); transition: color .2s; }
.nav__menu a:hover { color: var(--ivory); }
.nav__menu .nav__cta { color: var(--ivory); background: rgba(245, 243, 239, .08); border: 1px solid rgba(245, 243, 239, .28); padding: .5rem 1.25rem; border-radius: 999px; font-weight: 600;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .35s var(--ease), border-color .35s, color .35s; }
.nav__menu .nav__cta:hover, .nav__menu .nav__cta:focus-visible { color: var(--ivory); background: rgba(201, 164, 92, .22); border-color: rgba(201, 164, 92, .7); }
.nav__toggle { display: none; }

/* ---------- przyciski ---------- */
/* Przyciski: płaskie, bez połysku. Wypełnienie wjeżdża od dołu przy najechaniu. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  min-height: 3.4rem; padding: 0 1.6rem 0 1.9rem; border-radius: 999px; font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .5s var(--ease), border-color .5s var(--ease); }
.btn__arrow { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.6; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(3px); }
.btn--solid { background: rgba(201, 164, 92, .16); border-color: rgba(201, 164, 92, .5); color: var(--ivory); }
.btn--solid:hover, .btn--solid:focus-visible { background: rgba(201, 164, 92, .26); border-color: rgba(201, 164, 92, .85); }
.btn--line { padding: 0 1.9rem; background: rgba(245, 243, 239, .05); border-color: rgba(245, 243, 239, .2); color: var(--ivory); }
.btn--line:hover, .btn--line:focus-visible { background: rgba(245, 243, 239, .11); border-color: rgba(245, 243, 239, .45); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: -2%; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.04); transition: transform .8s var(--ease); }
.hero__img .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.04); transition: transform .8s var(--ease), opacity 1.2s var(--ease); opacity: 0; pointer-events: none; }
.hero__img .hero__video.is-on { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(29, 29, 29, .92) 0%, rgba(29, 29, 29, .55) 42%, rgba(29, 29, 29, 0) 70%),
              linear-gradient(0deg, rgba(29, 29, 29, .95) 0%, rgba(29, 29, 29, 0) 30%); }
.hero__in { align-self: center; padding: 8rem var(--pad) 3rem; max-width: 62rem; }
.hero__title { font-size: clamp(2.5rem, 6.4vw, 6.8rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.hero__title span { display: inline-block; }
.hero__title span:last-child { font-weight: 300; }
.hero__sub { margin-top: 1.8rem; max-width: 31rem; font-size: clamp(1.08rem, 1.45vw, 1.3rem); font-weight: 330; line-height: 1.55; letter-spacing: -.015em; color: rgba(245, 243, 239, .78); }
.hero__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; }

/* wejście hero: jedna sekwencja przy ładowaniu */
@media (prefers-reduced-motion: no-preference) {
  .hero__title span { animation: rise 1s var(--ease) both; }
  .hero__title span:nth-child(2) { animation-delay: .08s; }
  .hero__title span:nth-child(3) { animation-delay: .16s; }
  .hero__sub, .hero__cta { animation: fade 1s .45s var(--ease) both; }
  .hero__img img { animation: zoom 2.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.5em); } }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { transform: scale(1.12); } }


/* ---------- sekcje ---------- */
.sec { padding: clamp(5rem, 11vw, 9rem) var(--pad); }
.sec > * { max-width: var(--max); margin-inline: auto; }
.sec--dark { background: var(--ink); color: var(--ivory); }
.sec--light { background: var(--ivory); color: var(--ink); }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec__head p { color: var(--mute-d); }
.sec--light .sec__head p, .sec--paper .sec__head p { color: var(--mute-l); }

/* ---------- prace: asymetryczny układ ---------- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); }
.work { grid-column: span 12; }
.work__link { display: grid; gap: 1.1rem; text-decoration: none; color: inherit; }
.work__media { --c1: #2a2724; --c2: #151413; --glow: rgba(201, 164, 92, .35); position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 18px; isolation: isolate;
  background: radial-gradient(60% 55% at 75% 85%, var(--glow), transparent 70%), linear-gradient(155deg, var(--c1), var(--c2) 75%); }
.work__media::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask: radial-gradient(70% 70% at 70% 80%, #000, transparent); mask: radial-gradient(70% 70% at 70% 80%, #000, transparent); }
.work--1 .work__media { --c1: #3b2615; --c2: #17120f; --glow: rgba(201, 164, 92, .45); }
.work--2 .work__media { --c1: #1d2638; --c2: #10131b; --glow: rgba(201, 162, 91, .38); }
.work--3 .work__media { --c1: #17302b; --c2: #0f1614; --glow: rgba(72, 196, 160, .3); }
.work--4 .work__media { --c1: #33261c; --c2: #141211; --glow: rgba(156, 119, 56, .45); }
.work--5 .work__media { --c1: #3a1d12; --c2: #150f0d; --glow: rgba(255, 90, 31, .4); }
.work--6 .work__media { --c1: #3a1418; --c2: #140e0f; --glow: rgba(255, 176, 32, .38); }
.work__mock { position: absolute; inset: 40% -4% 0 12%; transform-style: preserve-3d; transform-origin: 30% 0;
  transform: perspective(1600px) rotateX(16deg) rotateY(-20deg) rotateZ(5deg); transition: transform 1.1s var(--ease); }
.work__browser { position: absolute; left: 0; top: 0; width: 100%; border-radius: 10px; box-shadow: 30px 50px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1); }
.work__browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work__phone { position: absolute; right: 8%; top: 18%; width: 26%; transform: translateZ(70px); box-shadow: 20px 40px 60px -15px rgba(0, 0, 0, .85); }
.work__phone img { aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.work__mock--solo { inset: 42% -10% 0 12%; }
.work__link:hover .work__mock { transform: perspective(1600px) rotateX(8deg) rotateY(-10deg) rotateZ(2deg) translateY(-3%); }
.work__title { position: absolute; z-index: 1; left: clamp(1.25rem, 2.5vw, 2rem); right: 1.25rem; top: clamp(1.25rem, 2.6vw, 2rem); display: grid; gap: .25rem; color: var(--ivory); }
.work__title b { font-family: Montserrat, Arial, sans-serif; font-weight: 300; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -.01em; }
.work__title span { font-size: clamp(.95rem, 1.2vw, 1.1rem); color: rgba(245, 243, 239, .6); }
.work__body { display: grid; gap: .35rem; padding: 0 .2rem; }
.work h3 { font-size: 1.05rem; font-weight: 600; }
.work__lead { color: var(--mute-d); font-size: .95rem; max-width: 34rem; }
.work__link:hover h3 { color: var(--orange); }

@media (min-width: 700px) { .work { grid-column: span 6; } }
@media (min-width: 1000px) {
  .work { grid-column: span 4; }
}

/* ---------- inne realizacje: karuzela 3D ---------- */
.rail { margin-top: clamp(5rem, 10vw, 8rem); }
.rail__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 2rem; margin-bottom: 2rem; }
.rail__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.rail__head p { color: var(--mute-d); font-size: .95rem; }
.flow { position: relative; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(2rem, 5vw, 4rem) 0 1.5rem; touch-action: pan-y; }
.flow__bg { position: absolute; inset: 0; -webkit-mask: radial-gradient(50% 46% at 50% 48%, #000 20%, transparent 100%); mask: radial-gradient(50% 46% at 50% 48%, #000 20%, transparent 100%); }
.flow__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(48px) brightness(.32) saturate(1.3); transform: scale(1.25); transition: opacity .5s; }
.flow__track { position: relative; list-style: none; margin: 0; padding: 0; height: 34rem; perspective: 1800px; outline-offset: -4px; cursor: grab; user-select: none; }
.flow__track:active { cursor: grabbing; }
.flow__item { --w: min(74vw, 30rem); position: absolute; left: 50%; top: 0; width: var(--w); margin-left: calc(var(--w) / -2);
  transform: translateX(calc(var(--o, 0) * 78%)) translateZ(calc(var(--a, 0) * -140px)) rotateY(calc(var(--o, 0) * -24deg));
  z-index: calc(10 - var(--a, 0)); filter: brightness(calc(1 - var(--a, 0) * .38)); transition: transform .75s var(--ease), filter .75s var(--ease), opacity .5s; }
.flow__item.is-far { opacity: 0; pointer-events: none; }
.flow__track.is-drag .flow__item { transition: none; }
.flow__track { touch-action: pan-y; }
.flow__card { display: grid; text-decoration: none; background: var(--ink-2); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.flow__card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.flow__item.is-active .flow__card:hover img { transform: scale(1.04); }
.flow__text { padding: 1.3rem 1.5rem 1.6rem; display: grid; gap: .45rem; align-content: start; transition: opacity .5s; }
.flow__item:not(.is-active) .flow__text { opacity: .35; }
.flow__text h3 { font-size: 1.35rem; }
.flow__text p { color: var(--mute-d); font-size: .96rem; }
.flow__text .flow__kind { color: var(--copper); font-size: .85rem; }
.flow__go { color: var(--orange); font-weight: 600; font-size: .95rem; }
.flow__ctrl { position: relative; display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.flow__ctrl button { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(245, 243, 239, .22); background: rgba(245, 243, 239, .06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ivory); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.flow__ctrl button:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.flow__ctrl svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.flow__count { min-width: 5rem; text-align: center; color: var(--mute-d); font-variant-numeric: tabular-nums; }
.flow__count b { color: var(--ivory); font-weight: 600; }

/* ---------- usługi: akordeon ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem 5rem; align-items: start; }
.split__aside { position: sticky; top: 7rem; display: grid; gap: 1.2rem; }
.split__aside p { color: var(--mute-l); max-width: 24rem; }
.services { border-top: 1px solid var(--line-l); }
.svc { min-height: 100svh; display: grid; align-content: center; padding-block: clamp(3.5rem, 8vh, 5.5rem); }
.svc > * { width: 100%; min-width: 0; }
.svc .sec__head { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.svc h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.svc .sec__head p { color: var(--mute-l); font-size: .95rem; }
.svc__wrap { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.svc__list { display: grid; gap: .25rem; }
.svc__tab { all: unset; box-sizing: border-box; position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.1rem; padding: clamp(.7rem, 1.5vh, 1rem) 1.1rem; border-radius: 16px; cursor: pointer; transition: background-color .45s var(--ease); }
.svc__tab:not(.is-on)::before { content: ''; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -.125rem; height: 1px; background: var(--line-l); }
.svc__tab:hover:not(.is-on) { background: rgba(29, 29, 29, .045); }
.svc__tab.is-on { background: var(--ink); }
.svc__tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.svc__n { width: 1.6rem; font-size: .78rem; color: var(--mute-l); font-variant-numeric: tabular-nums; transition: color .4s; }
.svc__name { flex: 1; font-family: Montserrat, Arial, sans-serif; font-size: clamp(1.1rem, 1.7vw, 1.45rem); letter-spacing: -.02em; color: rgba(29, 29, 29, .5); transition: color .4s; }
.svc__tab:hover .svc__name { color: var(--ink); }
.svc__tab.is-on .svc__name { color: var(--ivory); font-weight: 500; }
.svc__tab.is-on .svc__n { color: var(--orange); }
.svc__tab::after { content: '→'; display: grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; border: 1px solid rgba(245, 243, 239, .25); color: var(--orange); font-size: .9rem; opacity: 0; transform: translateX(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.svc__tab.is-on::after { opacity: 1; transform: none; }
.svc__bar { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.svc__tab.is-on .svc__bar { transform: scaleX(1); }
.svc.is-auto .svc__tab.is-on .svc__bar { animation: svc-run 6s linear both; }
.svc.is-auto:not(.is-seen) .svc__tab.is-on .svc__bar, .svc.is-auto:hover .svc__tab.is-on .svc__bar, .svc.is-auto:focus-within .svc__tab.is-on .svc__bar { animation-play-state: paused; }
@keyframes svc-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.svc__stage { display: grid; }
.svc__panel { grid-area: 1 / 1; display: grid; gap: 1.2rem; padding: clamp(1rem, 1.6vw, 1.4rem); border-radius: 18px; background: var(--ink); color: var(--ivory);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.svc__panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.svc__shot { box-shadow: none; }
.svc__shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.svc__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .4rem 1.6rem; padding: 0 .4rem .4rem; align-items: start; }
.svc__ex { grid-column: 1 / -1; font-size: .8rem; color: var(--copper); }
.svc__text { color: var(--mute-d); font-size: .95rem; }
.svc__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-content: start; }
.svc__tags li { padding: .28rem .7rem; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .05); }
@media (min-width: 900px) { .svc__wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (max-width: 899px) {
  .svc__list { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; }
  .svc__tab { flex: none; border: 1px solid var(--line-l); border-radius: 999px; padding: .4rem .85rem; }
  .svc__tab.is-on .svc__name { font-weight: 400; }
  .svc__tab.is-on { background: var(--ink); }
  .svc__tab.is-on .svc__name { color: var(--ivory); }
  .svc__n, .svc__bar, .svc__tab::after, .svc__tab::before { display: none; }
  .svc__name { font-size: .88rem; white-space: nowrap; }
  .svc__info { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .svc__panel, .svc__panel.is-on { transition: none; transform: none; } }

/* ---------- technologie ---------- */
.techline ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tech { min-height: 100svh; display: grid; align-content: center; padding-block: clamp(4rem, 9vh, 6rem); }
.tech > * { width: 100%; min-width: 0; }
.tech h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.tech .sec__head p { color: var(--mute-l); font-size: .95rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .95rem; border-radius: 99px; font-size: .95rem; border: 1px solid var(--line-l); background: rgba(255, 255, 255, .5); transition: border-color .2s, background .2s; }
.chip::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; border: 1.5px solid var(--copper); }
.chip--use::before { background: var(--copper); }
.chip--learn { background: transparent; border-style: dashed; }
.chip:hover { border-color: var(--copper); }
.sec--dark .chip { border-color: var(--line-d); background: rgba(255, 255, 255, .04); }

/* ---------- proces ---------- */
.loop__stick { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.loop__stage { position: relative; display: grid; place-items: center; }
.loop__big { position: absolute; z-index: -1; font: 200 clamp(9rem, 22vw, 20rem)/1 Montserrat, Arial, sans-serif; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 243, 239, .09); user-select: none; }
.loop__big.is-new { animation: loop-big .9s var(--ease); }
@keyframes loop-big { from { opacity: 0; transform: translateY(8%) scale(.96); filter: blur(6px); } }
.loop__art { width: 100%; overflow: visible; }
.loop__comet { fill: none; stroke: var(--ivory); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: .07 1; stroke-dashoffset: calc(.07 - var(--p, 0)); }
.loop__comet--glow { stroke: #E8CF95; stroke-width: 3; opacity: .7; }
.loop:not(.is-live) .loop__comet { display: none; }
.loop__ring { fill: none; stroke: var(--orange); stroke-width: .5; transform-box: fill-box; transform-origin: center; animation: loop-ring 1.1s var(--ease) forwards; pointer-events: none; }
@keyframes loop-ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.loop__base { fill: none; stroke: rgba(245, 243, 239, .12); stroke-width: .7; }
.loop__spark { fill: none; stroke: var(--copper); stroke-width: .7; stroke-linecap: round; stroke-dasharray: 6 94; animation: loop-run 9s linear infinite; opacity: .7; }
.loop__trail { fill: none; stroke: url(#loop-grad); stroke-width: 1; stroke-linecap: round; stroke-dasharray: var(--p, 1) 1; }
.loop__trail--glow { stroke-width: 2.2; opacity: .55; }
.loop__node { fill: var(--ink); stroke: rgba(245, 243, 239, .35); stroke-width: .45; transition: fill .4s, stroke .4s, r .4s; cursor: pointer; }
.loop__node.is-done { stroke: var(--orange); }
.loop__node.is-on { fill: var(--orange); stroke: var(--orange); r: 2.1; }
.loop__label { font: 600 2.6px Inter, sans-serif; fill: var(--mute-d); text-anchor: middle; pointer-events: none; transition: fill .4s; }
.loop__label.is-on { fill: var(--ivory); }
.loop__dot { fill: var(--ivory); }
.loop__halo { fill: var(--orange); opacity: .35; filter: url(#loop-glow); animation: loop-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.loop:not(.is-live) [data-loop-dot] { display: none; }
@keyframes loop-run { to { stroke-dashoffset: -100; } }
@keyframes loop-pulse { 50% { transform: scale(1.6); opacity: .15; } }
.loop__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.loop__step { position: relative; border-bottom: 1px solid var(--line-d); }
.loop__step::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--orange); }
.loop.is-live .loop__step.is-on::after { width: calc(var(--sp, 0) * 100%); }
.loop__btn { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: baseline; gap: 1.2rem; padding: clamp(.4rem, 1.15vh, .85rem) 0; cursor: pointer; }
.loop__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.loop__n { min-width: 2.2rem; font-size: .9rem; color: var(--mute-d); font-variant-numeric: tabular-nums; transition: color .4s; }
.loop__t i { font: 500 .85rem Inter, sans-serif; font-style: normal; color: var(--orange); margin-left: .5rem; vertical-align: middle; }
.loop__t { font-family: Montserrat, Arial, sans-serif; font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: rgba(245, 243, 239, .45); transition: color .4s, transform .5s var(--ease); }
.loop__btn:hover .loop__t { color: var(--ivory); }
.loop__step p { color: var(--mute-d); padding: 0 0 1rem 3.4rem; max-width: 30rem; }
.loop.is-live .loop__step p { display: grid; max-height: 0; padding-bottom: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s, padding .6s var(--ease); }
.loop.is-live .loop__step.is-on p { max-height: 6rem; opacity: 1; padding-bottom: .7rem; }
.loop__step.is-on .loop__t { color: var(--ivory); transform: translateX(.4rem); }
.loop__step.is-on .loop__n { color: var(--orange); }
.loop.is-live { height: 360vh; }
.loop.is-live .loop__stick { position: sticky; top: 0; height: 100vh; min-height: 0; align-content: center; padding: 4.5rem 0 1.5rem; }
.loop.is-live .loop__art { max-height: calc(100vh - 8rem); }
@media (min-width: 900px) { .loop__stick { grid-template-columns: 1.35fr 1fr; } }
@media (max-width: 899px) {
  .loop.is-live .loop__stick { gap: 1.2rem; padding-top: 4.5rem; }
  .loop__btn { padding: .55rem 0; }
  .loop__step p { padding-left: 3.4rem; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { .loop__spark, .loop__halo, .loop__big.is-new, .loop__ring { animation: none; } .loop__ring { display: none; } }

/* ---------- podejście ---------- */
.about { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__text { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.about__photo { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(29, 29, 29, .5); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.03); }
.about__photo::after { content: ''; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(to top, rgba(29, 29, 29, .35), transparent); pointer-events: none; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.about__big { font-size: clamp(2rem, 3.6vw, 3.4rem); max-width: 20ch; font-weight: 300; letter-spacing: -.03em; line-height: 1.12; }
.about__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; color: var(--mute-l); }
.about__pt { padding-top: 1.1rem; border-top: 1px solid rgba(29, 29, 29, .14); position: relative; }
.about__pt::before { content: ''; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 1px; background: var(--copper); transition: width .8s var(--ease); }
.about__pt:hover::before { width: 100%; }
.about__pt h3 { font-size: 1.05rem; font-weight: 500; color: var(--ink); margin: 0 0 .45rem; letter-spacing: 0; }
.about__pt p { margin: 0; font-size: .98rem; line-height: 1.65; }
@media (min-width: 900px) { #o-mnie { min-height: 100svh; display: grid; align-content: center; padding-block: 5.5rem 2.5rem; } .about__photo { aspect-ratio: auto; height: calc(100svh - 9rem); max-height: 760px; } }

/* ---------- kontakt ---------- */
.contact { position: relative; overflow: hidden; }
.contact { min-height: 100svh; display: grid; align-content: center; padding-block: 4.6rem 1.6rem; }
/* duży znak nieskończoności w tle: światło biegnie po kształcie, całość powoli „oddycha” */
.contact__bg { position: absolute; left: 50%; top: 52%; width: min(115vw, 175vh); translate: -50% -50%; overflow: visible; pointer-events: none; animation: contact-breathe 14s ease-in-out infinite; }
.contact__base { fill: none; stroke: rgba(156, 119, 56, .16); stroke-width: .3; }
.contact__run { fill: none; stroke: var(--orange); stroke-width: .45; stroke-linecap: round; stroke-dasharray: 18 82; animation: contact-run 14s linear infinite; opacity: .4; filter: drop-shadow(0 0 1.2px rgba(201, 164, 92, .8)); }
.contact__run--b { stroke: var(--copper); stroke-dasharray: 6 94; animation-delay: -5.5s; opacity: .4; }
@keyframes contact-run { to { stroke-dashoffset: -100; } }
@keyframes contact-breathe { 50% { scale: 1.035; } }
@media (prefers-reduced-motion: reduce) { .contact__bg, .contact__run { animation: none; } }
.contact__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 6rem; align-items: center; }
.contact h2 { max-width: 14ch; }
.contact__in > div { display: grid; gap: 1.4rem; }
.contact__in > div p { color: var(--mute-d); max-width: 30rem; }
.contact__mail { font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ivory) !important; text-underline-offset: .3em; text-decoration-color: var(--orange); }
.form { display: grid; gap: clamp(.6rem, 1.6vh, 1.1rem); padding: clamp(1.2rem, 2.5vw, 2rem); border-radius: 24px; background: rgba(29, 29, 29, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-d); }
.form__topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.form__topics legend { margin-bottom: .6rem; color: var(--mute-d); }
.form__topics input { position: absolute; opacity: 0; pointer-events: none; }
.form__topics span { display: inline-block; padding: .4rem .9rem; border-radius: 99px; border: 1px solid var(--line-d); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.form__topics label:hover span { border-color: var(--ivory); }
.form__topics input:checked + span { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.form__topics input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .92rem; color: var(--mute-d); }
.field input, .field textarea { font: inherit; color: var(--ivory); background: transparent; border: 0; border-bottom: 1.5px solid var(--line-d); padding: .45rem 0; border-radius: 0; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.form .btn { justify-self: start; margin-top: .6rem; }
.form__msg { min-height: 1.6em; color: var(--mute-d); }

/* ---------- stopka ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 2rem var(--pad); border-top: 1px solid var(--line-d); color: var(--mute-d); font-size: .95rem; }

/* ---------- case study ---------- */
.case__hero { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.case__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.case__hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(29, 29, 29, .97) 20%, rgba(29, 29, 29, .35) 75%, rgba(29, 29, 29, .5)); }
.case__in { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding: 9rem var(--pad) 3.5rem; display: grid; gap: 1.4rem; }
.crumbs { color: var(--mute-d); font-size: .95rem; }
.crumbs a { color: var(--ivory); }
.case h1 { font-size: clamp(2.6rem, 7.5vw, 6.8rem); letter-spacing: -.045em; line-height: .95; }
.case__lead { font-size: clamp(1.15rem, 1.8vw, 1.5rem); max-width: 44rem; color: var(--mute-d); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem 2.5rem; margin: 1.5rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line-d); }
.facts dt { font-size: .88rem; color: var(--mute-d); margin-bottom: .3rem; }
.facts dd { margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; }
.pair h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 1.2rem; }
.pair p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--mute-l); max-width: 34rem; }
.scope { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-l); counter-reset: s; }
.scope li { padding: 1rem 0 1rem 3rem; border-bottom: 1px solid var(--line-l); position: relative; font-size: 1.12rem; }
.scope li::before { content: ''; position: absolute; left: 0; top: 1.55rem; width: 1.6rem; height: 1.5px; background: var(--copper); }
.arch { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.arch li { position: relative; padding: 1.6rem 1.6rem 1.8rem; border: 1px solid var(--line-d); margin-left: -1px; display: grid; gap: .7rem; align-content: start; }
.arch li:not(:last-child)::after { content: ''; position: absolute; right: -.45rem; top: 2.1rem; z-index: 1; width: .8rem; height: .8rem; border-radius: 50%; background: var(--orange); }
.arch p { color: var(--mute-d); font-size: .98rem; }
.techline { margin-top: 3rem; display: grid; grid-template-columns: 14rem 1fr; gap: 1rem 2rem; align-items: center; }
.techline h3 { font-size: 1.15rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.gallery figure { margin: 0; display: grid; gap: .7rem; }
.gallery figure:first-child, .gallery__wide { grid-column: 1 / -1; }
.gallery img { width: 100%; border-radius: 6px; border: 1px solid var(--line-l); background: #fff; }
.gallery figcaption { font-size: .92rem; color: var(--mute-l); }
.summary { display: grid; gap: 1.6rem; max-width: 56rem !important; }
.summary p { font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.45; }
.next { margin-top: 2.5rem; display: grid; gap: .3rem; text-decoration: none; padding-top: 2rem; border-top: 1px solid var(--line-d); }
.next span { color: var(--mute-d); }
.next b { font-size: clamp(2rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.03em; transition: color .2s; }
.next:hover b { color: var(--orange); }

/* ---------- mockup aplikacji (case study) ---------- */
.showcase { background: #141312; }
.stage { position: relative; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-d);
  background: radial-gradient(55% 65% at 72% 45%, rgba(201, 164, 92, .22), transparent 70%), radial-gradient(40% 50% at 15% 90%, rgba(156, 119, 56, .18), transparent 70%), #1b1a19; }
.stage > * { position: absolute; margin: 0; transform: translate3d(0, var(--dy, 0), 0) rotate(var(--rot, 0)); transition: transform .3s linear; }
.browser { margin: 0; border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
.browser__bar { display: flex; gap: 5px; padding: 9px 12px; background: #232221; }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #4a4743; }
.browser img { width: 100%; }
.phone { margin: 0; border-radius: 13% / 6%; overflow: hidden; border: clamp(4px, .55vw, 8px) solid #0b0b0b; background: #0b0b0b;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14); }
.phone img { width: 100%; border-radius: 10% / 4.6%; }
.stage__browser { left: 7%; top: 12%; width: 58%; }
.stage__p1 { right: 17%; top: 12%; width: 16.5%; --rot: -5deg; }
.stage__p2 { right: 4.5%; top: 25%; width: 16.5%; --rot: 4deg; }
.stage__card { left: 2.5%; bottom: 7%; width: 17%; --rot: -3deg; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(201, 164, 92, .35); }
.screens { margin-top: clamp(3rem, 7vw, 6rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem); align-items: center; }
.screens__item { display: grid; gap: .9rem; }
.screens__item--desktop { grid-column: span 2; }
.screens__item p { font-size: .92rem; color: var(--mute-d); }
.screens__item--phone .phone { width: 78%; justify-self: center; }
.screens__item--phone p { text-align: center; }

/* ---------- mobile ---------- */
@media (max-width: 899px) {
  .nav__toggle { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border: 1px solid var(--line-d); border-radius: 50%; background: none; color: var(--ivory); cursor: pointer; z-index: 2; }
  .nav__toggle > span:first-child, .nav__toggle > span:first-child::before { display: block; width: 1.1rem; height: 1.5px; background: currentColor; transition: transform .3s; }
  .nav__toggle > span:first-child { position: relative; transform: translateY(-3px); }
  .nav__toggle > span:first-child::before { content: ''; position: absolute; top: 6px; }
  .nav__toggle[aria-expanded="true"] > span:first-child { transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] > span:first-child::before { transform: translateY(-6px) rotate(-90deg); }
  .nav__menu { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem; background: var(--ink); visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
  .nav__menu a { font-size: 1.8rem; color: var(--ivory); }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; }
  /* rozmycie paska zamyka fixed menu w jego obrysie, więc przy otwartym menu je wyłączamy */
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero::after { background: linear-gradient(0deg, rgba(29, 29, 29, 1) 42%, rgba(29, 29, 29, 0) 62%, rgba(29, 29, 29, 0) 85%, rgba(29, 29, 29, .55)); }
  /* telefon: kadr z całą nieskończonością i postacią u góry, tekst pod spodem */
  .hero__img { inset: 0 0 auto; height: min(104vw, 54%); -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .hero__img img, .hero__img .hero__video { object-position: 100% 45%; }
  .hero__in { align-self: end; padding-top: min(92vw, 46svh); }
  .sec__head, .split, .contact__in, .pair, .techline { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .about__cols { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch li { margin: -1px 0 0; }
  .arch li:not(:last-child)::after { right: auto; left: 1.6rem; top: auto; bottom: -.45rem; }
  .gallery { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 5; }
  .stage__browser { left: 4%; top: 5%; width: 92%; }
  .stage__p1 { left: 8%; right: auto; top: 36%; width: 40%; }
  .stage__p2 { right: 7%; top: 44%; width: 40%; }
  .stage__card { left: auto; right: 3%; bottom: auto; top: 26%; width: 36%; }
  .screens { grid-template-columns: 1fr 1fr; }
  .screens__item--phone .phone { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
body { overflow-x: clip; }

/* ---------- technologie: chmura nazw ---------- */
.orb { display: grid; gap: 2rem; align-items: center; }
.orb__side h2 { margin-bottom: 1rem; }
.orb__side > p { color: var(--mute-l); font-size: .95rem; max-width: 26rem; margin-bottom: 1.6rem; }
.orb__cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.orb__cats button { font: inherit; font-size: .9rem; display: inline-flex; align-items: baseline; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-l); background: rgba(255, 255, 255, .35); color: var(--ink); cursor: pointer; transition: background-color .35s, color .35s, border-color .35s; }
.orb__cats button span { font-size: .72rem; color: var(--mute-l); font-variant-numeric: tabular-nums; }
.orb__cats button:hover, .orb__cats button.is-hint { border-color: var(--ink); }
.orb__cats button.is-on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.orb__cats button.is-on span { color: var(--orange); }
.orb__chart { display: block; width: 100%; max-height: calc(100svh - 9.5rem); overflow: visible; font-family: Inter, Arial, sans-serif; }
.orb__core { fill: var(--ink); }
.orb__mark { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; }
.orb__arc { cursor: pointer; }
.orb__arc path { fill: rgba(29, 29, 29, .06); stroke: var(--paper, #F5F3EF); stroke-width: 0; transition: fill .4s; }
.orb__arc text { font-family: Montserrat, Arial, sans-serif; font-size: 15px; fill: var(--ink); letter-spacing: -.01em; pointer-events: none; transition: fill .4s; }
.orb__arc:hover path, .orb__arc.is-hint path { fill: rgba(29, 29, 29, .14); }
.orb .orb__arc.is-on path { fill: var(--ink); }
.orb__arc.is-on text { fill: var(--ivory); }
.orb__spin { transform-box: view-box; transform-origin: 0 0; animation: orb-spin 40s linear infinite; }
.orb__chart:hover .orb__spin, .orb:focus-within .orb__spin { animation-play-state: paused; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.orb__arc:focus { outline: none; }
.orb__arc { transform-box: view-box; transform-origin: 0 0; transition: transform .6s var(--ease); }
.orb__arc.is-lit { transform: scale(1.12); }
.orb__arc.is-lit path { fill: rgba(29, 29, 29, .16); }
.orb[data-show] .orb__chart .cloud__w.is-hit { transform: scale(1.16); }
.orb[data-show] .orb__chart .cloud__w.is-hit text { font-weight: 500; }
.orb__chart .cloud__w { pointer-events: bounding-box; transform-box: view-box; transform-origin: 0 0; transition: opacity .45s var(--ease), transform .5s var(--ease); }
.orb[data-show] .orb__chart .cloud__w.is-hit:hover, .orb__chart .cloud__w:hover { transform: scale(1.3); }
.orb__chart .cloud__w:hover text { font-weight: 600; }
.orb__chart .cloud__w line { stroke: rgba(29, 29, 29, .35); stroke-width: 1.5; }
.orb__chart .cloud__w text { font-size: 17px; fill: var(--ink); transition: fill .35s; }
.orb__chart .cloud__w.is-learn text { fill: rgba(29, 29, 29, .45); }
.orb__chart .cloud__w.is-learn line { stroke-dasharray: 3 3; }
.orb__chart .cloud__w:hover text { fill: var(--orange); }
.cloud[data-show] .cloud__w, .orb[data-show] .cloud__w { opacity: .18; }
.orb[data-show] .cloud__w.is-hit { opacity: 1; }
.orb[data-show] .orb__chart .cloud__w.is-hit text { fill: var(--copper); }
.orb[data-show] .orb__chart .cloud__w.is-hit line { stroke: var(--copper); }
.orb__stage { position: relative; display: grid; place-items: center; }
.orb__stage > * { grid-area: 1 / 1; }
.orb__chart { transition: filter 1s var(--ease), opacity 1s var(--ease); }
.orb.is-pop .orb__chart { filter: blur(7px); opacity: .28; pointer-events: none; }
.orb.is-pop .orb__spin { animation-play-state: paused; }
.orb__stage:has(.is-open) { cursor: zoom-out; }
/* karta kategorii: same napisy na rozmytym kole; elementy wpadają i wypadają jeden po drugim */
.orb__card { position: relative; z-index: 2; width: min(22rem, 90%); color: var(--ink); visibility: hidden; transition: visibility 0s 1.3s; }
.orb__card.is-open { visibility: visible; transition: none; }
.orb__card h3, .orb__card li, .orb__close { opacity: 0; filter: blur(8px); transform: translateY(-16px);
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.orb__card.is-open h3, .orb__card.is-open li, .orb__card.is-open .orb__close { opacity: 1; filter: none; transform: none;
  transition-duration: .9s, .9s, 1s; transition-delay: calc(.2s + var(--i) * 110ms); }
.orb__card:not(.is-open) :is(h3, li, .orb__close) { transform: translateY(26px); }
.orb__card h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: clamp(2rem, 3.2vw, 2.8rem); letter-spacing: -.035em; margin-bottom: 1.1rem; }
.orb__card h3 span { font-size: .9rem; color: var(--orange); font-variant-numeric: tabular-nums; }
.orb__card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .15rem; }
.orb__card li { display: flex; align-items: center; gap: .9rem; padding: .3rem 0; font-family: Montserrat, Arial, sans-serif; font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -.02em; }
.orb__card li::before { content: ''; width: 18px; flex: none; border-top: 2px solid var(--orange); }
.orb__card li.is-learn { color: var(--mute-l); }
.orb__card li.is-learn::before { border-top-style: dashed; }
.orb__card li small { margin-left: auto; font-family: Inter, Arial, sans-serif; font-size: .75rem; color: var(--mute-l); }
.orb__close { font: inherit; font-size: .85rem; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-l); background: rgba(255, 255, 255, .4); color: var(--ink); cursor: pointer; backdrop-filter: blur(8px); }
.orb__close:hover { background: rgba(255, 255, 255, .75); }
.orb__list { display: none; }
@media (min-width: 900px) { .orb { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
@media (max-width: 899px) {
  /* telefon: duże koło wychodzi poza ekran i kręci się, krawędzie znikają za brzegiem */
  .orb__stage { margin-inline: calc(var(--pad) * -1); overflow: hidden; }
  .orb__chart { width: 150vw; max-width: none; max-height: none; justify-self: start; margin-left: calc(50% - 75vw); margin-block: -11vw; }
  .orb__card { padding-block: 1.5rem; }
  .orb__chart .cloud__w:hover, .orb[data-show] .orb__chart .cloud__w.is-hit:hover { transform: none; }
  .orb__card { width: min(20rem, 86%); }
  .orb__card li { font-size: 1.1rem; }
  .orb__cats button { padding: .38rem .8rem; font-size: .82rem; }
  .orb__side > p { margin-bottom: 1rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .orb__card :is(h3, li, .orb__close) { transition: opacity .2s !important; transform: none !important; filter: none !important; } .orb__spin { animation: none; } .orb__chart .cloud__w, .orb__arc path { transition: none; } .orb__chart .cloud__w:hover, .orb__chart .cloud__w.is-hit, .orb__arc.is-lit { transform: none !important; } }
