/* Sekcja „Jak działa 04” na cerebro.html: ściana dwunastu małych ekranów (dashboardy, workflow, aplikacje) ustawiona w perspektywie.
   Ekrany nadlatują, gdy sekcja wjedzie na ekran; ściana kołysze się i obraca za kursorem, a reflektor przechodzi po kolejnych ekranach.
   Logika i lista ekranów: cerebro-wall.js. Szerokość ściany = .bc-wall; od 760 px w dół trzy kolumny bez podpisów pod ekranami. */
.bc-stage{position:relative;margin-top:clamp(28px,4vw,56px);padding:18px 0 clamp(36px,5vw,60px);overflow:hidden;perspective:1700px;perspective-origin:50% 42%;font-family:var(--mono);
  background:radial-gradient(46% 58% at 50% 46%,rgba(86,193,255,.13),transparent 72%)}
.bc-wall{display:grid;grid-template-columns:repeat(4,1fr);gap:22px 20px;width:min(960px,100% - 2*var(--gut));margin:0 auto;padding:40px 0 20px;transform-style:preserve-3d;transform:rotateX(var(--pitch,4deg)) rotateY(var(--yaw,-9deg))}
.bc-s{transform-style:preserve-3d;transition:transform .6s cubic-bezier(.16,1,.3,1),opacity .5s}
.bc-wall.wait .bc-s{opacity:0}
.bc-wall.in .bc-s{animation:bc-in 1.1s var(--d) cubic-bezier(.16,1,.3,1) backwards}
@keyframes bc-in{from{opacity:0;transform:translateZ(-900px) rotateY(-28deg)}}
.bc-wall.has .bc-s{opacity:.6}
.bc-wall.has .bc-s.on{opacity:1;transform:translateZ(120px)}
.bc-f{padding:5px;border-radius:10px;background:#101214;box-shadow:0 0 0 1px rgba(255,255,255,.12) inset;transition:box-shadow .5s}
.bc-s.on .bc-f{box-shadow:0 0 0 1px rgba(86,193,255,.7) inset,0 0 70px rgba(86,193,255,.35)}
.bc-s > p{margin:9px 2px 0;font:500 9.5px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--on-dark-mut)}
.bc-s > p b{font-weight:500;color:var(--accent)}
.bc-cap{margin:8px auto 0;padding:0 var(--gut);text-align:center;color:var(--white);transition:opacity .25s}
.bc-cap.sw{opacity:0}
.bc-cap small{font:500 11px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
.bc-cap b{display:block;margin:10px 0 8px;font:500 clamp(24px,2.8vw,34px)/1.1 var(--display);letter-spacing:-.01em}
.bc-cap span{font:11px/1 var(--mono);letter-spacing:.1em;color:var(--on-dark-mut)}
/* mały ekran: jasna aplikacja narysowana kształtami; wymiary w cqw, czyli w procentach szerokości ekranu */
.bc-v{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:6px;background:#f3f5f7;container-type:inline-size;color:var(--ink)}
.m-top{display:flex;align-items:center;gap:2.4cqw;height:11cqw;padding:0 4cqw;background:#fff;border-bottom:1px solid #dfe3e7;font:500 4.1cqw/1 var(--display);white-space:nowrap}
.m-top::before{content:"";width:3.6cqw;height:3.6cqw;border-radius:1cqw;background:var(--accent)}
.m-b{position:absolute;left:5cqw;right:5cqw;top:16cqw;bottom:5cqw}
.m-b i,.m-b u,.m-b b{display:block;font-style:normal;text-decoration:none}
.m-b p{margin:0}
.m-bars{display:flex;align-items:flex-end;gap:3cqw}
.m-bars i{flex:1;height:var(--h);border-radius:1cqw 1cqw 0 0;background:var(--accent);transform-origin:bottom;animation:m-bar 2.6s var(--d) ease-in-out infinite alternate}
.m-bars i:nth-child(3n){background:#c5ccd3}
@keyframes m-bar{to{transform:scaleY(.7)}}
.m-line{display:flex;gap:3cqw}
.m-line i{flex:1;height:9cqw;border-radius:1.2cqw;background:#fff;border:1px solid #dfe3e7}
.m-line i:first-child{border-left:.9cqw solid var(--accent)}
.m-line svg{position:absolute;left:0;bottom:0;width:100%;height:27cqw}
.m-line path{fill:none;stroke:var(--accent);stroke-width:1.2;stroke-dasharray:100;animation:m-draw 5s ease-in-out infinite}
.m-line .ar{fill:rgba(86,193,255,.18);stroke:none;animation:none}
@keyframes m-draw{0%{stroke-dashoffset:100}45%,100%{stroke-dashoffset:0}}
.m-flow::before{content:"";position:absolute;left:6cqw;right:6cqw;top:20cqw;border-top:1px dashed #a9b1b8}
.m-flow i{position:absolute;top:14cqw;width:19cqw;height:12cqw;border-radius:1.4cqw;background:#fff;border:1px solid #dfe3e7;border-left:.9cqw solid var(--accent)}
.m-flow i:nth-child(2){left:23.6cqw}.m-flow i:nth-child(3){left:47.3cqw}.m-flow i:nth-child(4){left:71cqw}
.m-flow.z i:nth-child(2){top:4cqw}.m-flow.z i:nth-child(3){top:24cqw}
.m-flow u{position:absolute;top:18.6cqw;left:0;width:3cqw;height:3cqw;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1cqw rgba(86,193,255,.3);animation:m-run 2.6s linear infinite}
@keyframes m-run{to{left:87cqw}}
.m-list p{display:flex;align-items:center;gap:3cqw;height:8.4cqw;margin-bottom:2cqw;padding:0 3cqw;background:#fff;border:1px solid #dfe3e7;border-radius:1.4cqw}
.m-list i{width:4cqw;height:4cqw;border-radius:50%;background:#c5ccd3}
.m-list b{flex:1;height:1.7cqw;border-radius:1cqw;background:#dfe3e7}
.m-list u{width:13cqw;height:4.2cqw;border-radius:2.1cqw;background:rgb(254,240,138)}
.m-list p:first-child u{animation:m-ok 4s infinite}
.m-list p:nth-child(3) u{background:rgb(134,239,172)}
@keyframes m-ok{55%,100%{background:rgb(134,239,172)}}
.m-chat p{width:54%;height:8cqw;margin-bottom:2.4cqw;border-radius:2cqw 2cqw 2cqw .5cqw;background:#fff;border:1px solid #dfe3e7}
.m-chat p.r{width:40%;margin-left:auto;border:0;border-radius:2cqw 2cqw .5cqw 2cqw;background:var(--ink)}
.m-chat p:nth-child(3){width:66%;animation:m-say 4s infinite}
@keyframes m-say{0%,30%{opacity:0;transform:translateY(2cqw)}40%,100%{opacity:1;transform:none}}
.m-chat u{position:absolute;left:0;right:0;bottom:0;height:7cqw;border-radius:1.6cqw;background:#fff;border:1px solid #dfe3e7}
.m-kan{display:grid;grid-template-columns:repeat(3,1fr);gap:3cqw}
.m-kan div{padding:2cqw 2cqw 0;border-radius:1.4cqw;background:#e6eaed}
.m-kan i{height:8cqw;margin-bottom:2cqw;border-radius:1.2cqw;background:#fff;border-left:.9cqw solid var(--accent)}
.m-kan div:nth-child(2) i:first-child{animation:m-pick 3.6s ease-in-out infinite}
@keyframes m-pick{40%,60%{transform:translate(1.5cqw,-1cqw) rotate(3deg);box-shadow:0 1cqw 3cqw rgba(30,32,35,.25)}}
.m-tab p{display:flex;align-items:center;gap:3cqw;height:7.2cqw;border-bottom:1px solid #dfe3e7}
.m-tab i{flex:1;height:1.7cqw;border-radius:1cqw;background:#cbd2d8}
.m-tab i:first-child{flex:.6;background:var(--ink)}
.m-tab u{width:3.2cqw;height:3.2cqw;border-radius:50%;background:rgb(134,239,172)}
.m-tab p:nth-child(2) u{background:rgb(250,204,21);animation:m-ok 5s infinite}
.m-g{display:flex;align-items:center;gap:6cqw}
.m-g svg{flex:none;width:38cqw;height:38cqw;transform:rotate(-90deg)}
.m-g circle{fill:none;stroke:#dfe3e7;stroke-width:5}
.m-g .v{stroke:var(--accent);stroke-linecap:round;stroke-dasharray:70 100;animation:m-g 3s ease-in-out infinite alternate}
@keyframes m-g{to{stroke-dasharray:84 100}}
.m-g div{flex:1;display:grid;gap:3cqw}
.m-g div i{height:8.6cqw;border-radius:1.2cqw;background:#fff;border:1px solid #dfe3e7}
.m-g div i:first-child{border-left:.9cqw solid var(--accent)}
@media(max-width:760px){
  .bc-wall{grid-template-columns:repeat(3,1fr);gap:12px 10px;width:calc(100% - 28px);padding:30px 0 18px}
  .bc-s > p{display:none}
  .bc-f{padding:3px;border-radius:7px}
  .bc-wall.has .bc-s.on{transform:translateZ(70px)}
}
@media(prefers-reduced-motion:reduce){.bc-s,.bc-cap{transition:none!important}.bc-stage *,.bc-stage *::before,.bc-stage *::after{animation:none!important}}
