/* Chapter 5 as a scroll film: the device leaves the bar, takes a magnet mount and goes machine to machine,
   while the features appear as messages; the app closes it. */
.cine2-sec{padding-bottom:0}
.cine2{position:relative;height:640vh}
.cine2-stage{position:sticky;top:0;height:100vh;min-height:560px;overflow:hidden}
.cine2-film{position:absolute;left:50%;top:50%;translate:-50% -50%;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.cgroup{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .25s}
.cgroup.on{opacity:1}
.ccap{position:absolute;left:0;right:0;bottom:6vh;text-align:center;padding:0 20px}
.ccap h2{font-size:clamp(26px,3.6vw,46px);letter-spacing:-.03em}
.ccap p{margin:8px 0 0;font-size:clamp(15px,1.4vw,18px);color:var(--label2)}
.ccol{position:absolute;top:50%;translate:0 -50%;display:flex;flex-direction:column;gap:12px}
.ccol.l{left:max(24px,6vw);align-items:flex-start}.ccol.r{right:max(24px,6vw);align-items:flex-end}
.cchip{display:inline-flex;align-items:center;gap:11px;padding:10px 18px 10px 10px;border-radius:999px;font-size:15px;
  background:var(--glass-thick);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);box-shadow:var(--rim),var(--lift);
  opacity:0;transform:translateY(14px) scale(.96);transition:opacity .35s,transform .45s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--i) * 70ms)}
.cgroup.on .cchip{opacity:1;transform:none}
.cchip svg{width:34px;height:34px;padding:7px;border-radius:50%;background:#000;color:#fff;flex:none}
.cchip b{font-weight:600;white-space:nowrap}
.cphones{position:absolute;left:50%;top:46%;translate:-50% -50%;display:flex;align-items:center;gap:18px}
.cphones .phone{width:min(19vw,22vh,210px);transform:translateY(40px) scale(.94);opacity:0;transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .4s}
.cphones .phone.mid{width:min(23vw,27vh,250px);transition-delay:.08s}
.cphones .phone:last-child{transition-delay:.16s}
.cgroup.on .cphones .phone{transform:none;opacity:1}
@media(max-width:820px){
  .ccol{top:76px;translate:none;flex-direction:row;flex-wrap:wrap;gap:6px;left:12px!important;right:12px!important;justify-content:center}
  .ccol.r{top:auto;bottom:calc(6vh + 96px)}
  .cchip{font-size:12px;padding:6px 11px 6px 6px;gap:7px}.cchip svg{width:24px;height:24px;padding:5px}
  .cphones .phone{width:27vw}.cphones .phone.mid{width:33vw}
  .capp .ccol.r{bottom:calc(6vh + 84px)}
}

/* live panel, bottom left: rep bars + range / speed / power in step with the machine */
.clive{position:absolute;left:max(20px,4vw);bottom:5vh;width:270px;padding:14px 16px 12px;border-radius:22px;text-align:left;opacity:0;transform:translateY(16px);transition:opacity .3s,transform .4s;pointer-events:none;
  background:var(--glass-thick);backdrop-filter:saturate(180%) blur(22px);-webkit-backdrop-filter:saturate(180%) blur(22px);box-shadow:var(--rim),var(--lift2)}
.clive.on{opacity:1;transform:none}
.cl-head{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.cl-head i{width:8px;height:8px;border-radius:50%;background:#ff3b30;box-shadow:0 0 0 3px rgba(255,59,48,.2)}
.cl-head b{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--label2);font-weight:600}
.cl-bars{display:flex;align-items:flex-end;gap:8px;height:74px;margin:12px 0 10px}
.cl-bar{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px;position:relative}
.cl-bar span{width:100%;min-height:3px;border-radius:7px;background:#000;transition:height .12s linear}
.cl-bar.ghost span{background:rgba(0,0,0,.08);height:3px}
.cl-bar em{position:absolute;top:-2px;font-style:normal;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--label)}
.cl-bar.ghost em{color:var(--label3)}
.cl-bar small{font-size:10px;color:var(--label2)}
.cl-bar span{max-height:calc(100% - 30px)}
.cl-charts{display:grid;gap:7px}
.cl-charts figure{margin:0}
.cl-charts figcaption{display:flex;justify-content:space-between;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--label2)}
.cl-charts figcaption b{color:var(--label);text-transform:none;letter-spacing:0;font-variant-numeric:tabular-nums}
.cl-charts canvas{display:block;width:100%;height:34px;margin-top:2px}
@media(max-width:820px){.clive{left:12px;bottom:calc(6vh + 150px);width:190px;padding:10px 12px}.cl-charts figure:nth-child(n+2){display:none}.cl-bars{height:54px}}

.cine2{height:540vh}

@supports (height:100svh){.cine2-stage{height:100svh}}
