/* MB-02 player in the PORTFOLIO section: it stands where the phone used to (left of the queue on desktop, above it on phones).
   The section keeps the old .pl styles (index.html); this file only swaps the phone window for the player.
   Not pinned: the assembly follows where the player is in the viewport (mb02.js).
   Layers: film grain z 40 < the player render (.mb2-fr, z 45), so the grain sits under the player and the player stays sharp.
   The opened player slides up (mb02.js) so its body and shadow clear the button under it.
   No z-index on .pl / .pl-win here: they would trap the render below the grain. */
.pl.mb2{--ov:0px;--top:0px;z-index:auto;overflow-x:clip;pointer-events:none}
/* the section reaches up over the hero (phones): only its own controls take taps, so the hero's BEATS / START / SHOP stay clickable */
.mb2 .pl-pane,.mb2 .mb2-btn{pointer-events:auto}
.mb2 .pl-stage{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
.mb2 .pl-frame{min-width:0}
.mb2 .pl-win{z-index:auto;animation:none;filter:none;width:100%;height:var(--wh);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:34px}   /* the gap keeps the player's soft shadow off the EXPLODE outline */
.mb2-fr{position:relative;z-index:45;flex:none;width:100%;height:0;pointer-events:none}
.mb2-wrap{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:transform .9s cubic-bezier(.65,0,.35,1)}
.mb2-cv{position:absolute;display:block;pointer-events:none}
.mb2-lcd{position:absolute;display:none;pointer-events:none;background:#000}
.mb2-lcd.on{display:block}
.mb2-z{position:absolute;pointer-events:auto;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:none;-webkit-user-select:none;user-select:none;outline:none}
.mb2-z.wheel{cursor:grab;border-radius:50%}
.mb2-z.wheel.drag{cursor:grabbing}
.mb2-z.off{pointer-events:none}
.mb2-probe{position:fixed;left:0;top:0;width:0;height:100vh;height:100svh;visibility:hidden;pointer-events:none}

.mb2-btn{position:relative;z-index:4;flex:none;font:inherit;font-family:"Tracker Mono Pixel",ui-monospace,monospace;font-size:13px;letter-spacing:var(--ls);text-transform:uppercase;min-width:176px;
  color:#a260ff;background:rgba(0,0,0,.55);border:1px solid rgba(162,96,255,.75);padding:11px 20px;cursor:pointer;
  transition:opacity .5s ease,visibility 0s .5s,background .2s,color .2s;-webkit-tap-highlight-color:transparent;--ls:-.14em}
.mb2-btn>span{display:block}
@media (hover:hover){.mb2-btn:hover{background:#a260ff;color:#000}}   /* phones keep :hover after a tap */
.mb2-btn:focus-visible{outline:2px solid #a260ff;outline-offset:3px}
.mb2-xp{opacity:0;visibility:hidden}
.mb2-xp.show{opacity:1;visibility:visible;transition:opacity .5s ease,visibility 0s}

/* phones: the player first, the queue under it; the player's top rides up into the hero (margin-top and --top come from mb02.js) */
@media (max-width:900px){
  /* the hero is no longer cut at its bottom edge: its panels carry on into the section, under the player, and sink into blur and black
     (.mb2-bgx); the section is see-through down to the middle of the player (--fend, set by mb02.js) */
  .hero{overflow:visible}
  .hero .hstrip{top:calc(var(--b)*35 + 26px);bottom:auto}   /* BEATS / START / SHOP right under the tick row, closer to the arrow: the player (which sits under the strip) rides higher too */
  .pl.mb2{background:linear-gradient(to bottom,transparent var(--fend,0px),#000 var(--fend,0px))}
  .mb2 .mb2-bgx{display:block;position:absolute;left:0;right:0;top:calc(var(--top) - 1px);height:calc(var(--fend) - var(--top) + 2px);z-index:1;pointer-events:none;overflow:hidden;background:var(--ink)}   /* the hero's own colour, so there is no step at its bottom edge */
  .mb2 .pl-stage{grid-template-columns:minmax(0,1fr)}
  .mb2 .pl-frame{width:100%}
  .mb2 .pl-win{height:auto;justify-content:flex-start;padding-bottom:0}
  .mb2-static .pl-win{padding-bottom:6px}
  /* the queue starts with its PORTFOLIO title, as far under EXPLODE as EXPLODE is under the player (34px), and lies over the fading panels */
  .mb2:not(.mb2-static) .pl-stage{row-gap:34px}
  .mb2 .pl-pane{position:relative;z-index:2}
  .mb2:not(.mb2-static) .pl-h{order:-1;margin-top:0}
  /* iOS dropped the 1px top/bottom lines while scrolling: a 2px outline, rastered once on its own layer */
  .mb2-btn{border-width:2px;padding:10px 19px;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}
}
/* the panels under the player (phones only): the hero's language — violet blocks, outlines, ticks, barcodes, mono labels */
.mb2-bgx{display:none;container-type:inline-size}   /* the panels are sized to their own box (cqw): full width on phones, the player column on /beats */
.mb2-dk{position:absolute;inset:0;color:var(--violet);font-size:max(10px,2.4cqw);letter-spacing:var(--ls);text-transform:uppercase}
.mb2-dk>*{position:absolute}
.dk-hl{left:-20px;right:-20px;top:5%;height:1px;background:rgba(162,96,255,.4)}
.dk-hl.b{top:84%}
.dk-ticks{left:12cqw;right:12cqw;top:9%;display:flex;justify-content:space-between}
.dk-ticks i{width:16px;height:3px;background:var(--violet)}
.dk-bc{display:block;height:6cqw;width:22cqw;background:repeating-linear-gradient(90deg,var(--ink) 0 2px,transparent 2px 4px,var(--ink) 4px 5px,transparent 5px 8px,var(--ink) 8px 11px,transparent 11px 13px)}
.dk-strip{left:12cqw;right:12cqw;top:15%;height:17cqw;background:var(--violet);color:var(--ink);display:flex;align-items:center;justify-content:space-between;padding:0 4cqw}
.dk-num{font-size:6cqw;line-height:1}
.dk-tag{font-size:max(9px,2cqw)}
.dk-sys{left:4.5cqw;top:40%;width:44cqw;height:38cqw;background:var(--violet);color:var(--ink);padding:3cqw}
.dk-sys .t{position:absolute;left:3cqw;top:3cqw}.dk-sys .r{position:absolute;right:3cqw;top:3cqw}
.dk-sys .dk-bc.s{position:absolute;left:3cqw;top:14cqw;width:24cqw}
.dk-sys .big{position:absolute;left:3cqw;bottom:2.4cqw;font-size:7cqw;letter-spacing:var(--ls)}
.dk-box{right:4.5cqw;top:40%;width:44cqw;height:38cqw;border:2px solid var(--violet);padding:3cqw;display:flex;flex-direction:column;gap:1.6cqw;font-size:max(9px,2.1cqw);white-space:nowrap}
.dk-box .t{margin-bottom:1.4cqw}.dk-box .w{color:var(--paper);margin-top:auto}
.dk-meta{left:12cqw;right:12cqw;top:87%;display:flex;justify-content:space-between}
.dk-panel{left:12cqw;top:93%;width:30cqw;height:5cqw;background:var(--violet)}
.dk-panel.o{left:auto;right:12cqw;width:40cqw;background:none;border:2px solid var(--violet)}
/* progressive blur: three veils, each blurring what is behind it a little more, faded in one after another; then the darkening */
.mb2-veil{position:absolute;inset:0;pointer-events:none}
.mb2-veil.v1{-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);-webkit-mask-image:linear-gradient(transparent 0,#000 22%);mask-image:linear-gradient(transparent 0,#000 22%)}
.mb2-veil.v2{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);-webkit-mask-image:linear-gradient(transparent 22%,#000 50%);mask-image:linear-gradient(transparent 22%,#000 50%)}
.mb2-veil.v3{-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);-webkit-mask-image:linear-gradient(transparent 50%,#000 80%);mask-image:linear-gradient(transparent 50%,#000 80%)}
.mb2-dim{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,0) 0%,rgba(0,0,0,.25) 30%,rgba(0,0,0,.6) 60%,rgba(0,0,0,.88) 85%,#000 100%)}
/* phones: one blur pass instead of three (each backdrop blur is redone by the GPU on every scroll frame: heat) */
@media (max-width:900px){.mb2-veil.v1,.mb2-veil.v3{display:none}.mb2-veil.v2{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-mask-image:linear-gradient(transparent 0,#000 45%);mask-image:linear-gradient(transparent 0,#000 45%)}}
@media (prefers-reduced-motion:reduce){.mb2-btn{transition:none}}

/* /beats (static player): the same blurred panels behind the player, on phones and desktop; they sink into blur and black
   towards the bottom and fade out at the sides */
.mb2-static .mb2-bgx{display:block;position:absolute;left:-8%;right:-8%;top:-56px;bottom:-24px;z-index:0;pointer-events:none;overflow:hidden}
.mb2-static .mb2-dim{background:linear-gradient(to right,#000,rgba(0,0,0,0) 16%,rgba(0,0,0,0) 84%,#000),linear-gradient(to bottom,rgba(0,0,0,.55) 0,rgba(0,0,0,.1) 16%,rgba(0,0,0,.3) 45%,rgba(0,0,0,.72) 74%,#000 100%)}
@media (max-width:900px){.mb2-static .mb2-bgx{left:-12px;right:-12px}}
.mb2-static .pl-deco{z-index:1}   /* the monitor furniture (STANDBY strip, rails, corners) stays over the panels */

/* /beats: the player waits hidden until its frames are in, then comes in out of blur and dark like the home page hero ("pull"),
   while it starts to assemble (mb02.js intro); the panels behind it fade up with it */
.mb2-static .mb2-fr{opacity:0}
.mb2-static .mb2-fr.in{animation:mb2pull 1.2s cubic-bezier(.2,.7,.2,1) both}
@keyframes mb2pull{from{opacity:0;filter:blur(14px) brightness(.55);transform:scale(1.06)}to{opacity:1;filter:none;transform:none}}
.mb2-static .mb2-bgx{animation:mb2bgin 1.6s ease .1s both}
@keyframes mb2bgin{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.mb2-static .mb2-fr.in,.mb2-static .mb2-bgx{animation:none;opacity:1}}
/* home page, desktop: the player comes in out of blur and dark like the hero, once its first frame is drawn and the boot screen is gone
   (mb02.js showIn); phones keep it as it was */
@media (min-width:901px) and (prefers-reduced-motion:no-preference){
  .mb2:not(.mb2-static) .mb2-fr{opacity:0}
  .mb2:not(.mb2-static) .mb2-fr.in{animation:mb2pull 1.2s cubic-bezier(.2,.7,.2,1) .1s both}
}
