/* The case-01 carousel stage. 1100 wide at rest it shows 644: the phone
   (344 device) + 24 gap + the sheet's left 276 = 25% of its 1100 width.
   On open the clip goes to full width and the sheet slides 334 left, so
   the phone keeps a 34px (10%) sliver. */
html,body{height:100%;margin:0;background:transparent}
body{overflow:hidden}

.stage{
  position:relative;
  width:min(100%,1100px);
  height:860px;
  overflow:hidden;
}

.phone-slot{
  position:absolute;left:0;top:0;
  width:480px;height:860px;z-index:1;
  transition:filter .75s ease;
}
.phone-slot iframe{display:block;width:100%;height:100%;border:0;background:transparent}

.sheet-slot{
  position:absolute;left:477px;top:0;z-index:2;
  width:1100px;height:860px;
  transform:translateX(0);
  transition:transform .75s cubic-bezier(.22,.8,.2,1),filter .75s ease;
}
.stage.is-open .sheet-slot{transform:translateX(-398px)}

/* focus: the surface that is not being used goes dark */
.stage.is-open .phone-slot{filter:brightness(.6)}
.stage:not(.is-open) .sheet-slot{filter:brightness(.6)}
.sheet-slot iframe{
  position:absolute;inset:0;
  width:1100px;height:860px;border:0;background:transparent;
}
#sheet-live{visibility:hidden}
.stage.is-live #sheet-live{visibility:visible}
.stage.is-live #sheet-still{visibility:hidden}

@media (max-width:1023px){
  .stage{width:100%;height:700px;clip-path:none}
  .phone-slot{width:100%;height:700px}
  .sheet-slot{display:none}
}

@media (prefers-reduced-motion:reduce){
  .stage,.sheet-slot{transition:none}
}
