/* Adapted from the existing MISE product kit's DeviceFrame / product.css.
   Source: apps/web/app/founding-members/teaser/product/ in the supplied v2 worktree.
   Reuse its concentric 13/10 cqw phone radii, 4/1 cqw tablet radii and 3 cqw bezel.
   Omit its optional screenshot window/crop and duplicate island overlay.
   Original capture files stay untouched. */
.screen,.opening-app .screen,.cooking .screen,.recognition-story .screen{
  padding:0;border:0;outline:none;box-shadow:none;background:transparent;
  overflow:visible;line-height:0;container-type:inline-size;
}
.screen:focus-visible{outline:3px solid var(--mise-site-focus);outline-offset:8px}
.device{
  display:block;position:relative;width:100%;isolation:isolate;
  background:#202020;border:0;outline:1px solid #919191;
  box-shadow:0 0 0 1px #242424,inset 0 0 0 1px #040404,
    inset 0 0 0 3px #464646,0 18px 30px -14px rgb(0 0 0 / .33);
}
.device-iphone{padding:3cqw;border-radius:13cqw}
.device-display{display:block;position:relative;overflow:hidden;background:#090909}
.device-iphone .device-display{border-radius:10cqw}
.screen .device-display>img{
  display:block;width:100%;height:auto;max-width:100%;object-fit:contain;
  margin:0;border:0;transform:none;
}
.device-iphone:before,.device-iphone:after,.device-iphone .device-hardware:before{
  content:"";position:absolute;width:3px;
  background:linear-gradient(90deg,#595959,#adadad,#434343);
  border-radius:2px;z-index:-1;
}
.device-iphone:before{left:-4px;top:17%;height:7%}
.device-iphone:after{left:-4px;top:26%;height:7%}
.device-iphone .device-hardware:before{right:-4px;top:22%;height:12%}
.device-iphone .device-hardware:after{
  content:"";position:absolute;left:-4px;top:11%;width:3px;height:3%;
  background:#9c9c9c;border-radius:2px;z-index:-1;
}
.device-ipad{padding:3cqw;border-radius:4cqw}
.device-ipad .device-display{border-radius:1cqw}
.device-ipad .device-hardware:before{
  content:"";position:absolute;top:1.25%;left:50%;transform:translate(-50%,-50%);
  width:.8%;aspect-ratio:1;border-radius:50%;background:#242424;
  border:1px solid #3c3c3c;box-shadow:inset 0 0 1px 2px #050505;
}
.device-ipad:before,.device-ipad:after{
  content:"";position:absolute;top:-4px;height:3px;border-radius:2px;
  background:linear-gradient(#a4a4a4,#565656);z-index:-1;
}
.device-ipad:before{left:6%;width:4%}.device-ipad:after{left:11%;width:4%}
.screen .enlarge{
  position:static;display:flex;align-items:center;justify-content:flex-end;gap:10px;
  width:auto;height:auto;margin-top:12px;padding:0 3px;
  color:inherit;background:none;border:0;font:16px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.03em;opacity:1;
}
.screen .enlarge>span{font-size:16px;line-height:1}
.screen:hover .enlarge{background:none;color:inherit;opacity:1;text-decoration:underline;text-underline-offset:4px}
.opening-app .screen .enlarge{justify-content:center;font-size:16px}
.opening-app .app-caption{margin-top:9px}
.opening-app .device{box-shadow:0 0 0 1px #2c2c2c,inset 0 0 0 1px #040404,inset 0 0 0 3px #464646,0 20px 45px -10px rgb(0 0 0 / .63)}
.screen-sequence.three{max-width:1220px}
@media(max-width:760px){
  .opening{min-height:1100px}
  /* Leave room inside the scroll rails for protruding hardware and shadows. */
  .screen-sequence.two,.screen-sequence.three,.finishing-proof{padding-top:8px;padding-bottom:24px}
  .screen-sequence.three{max-width:none}
  .dinner-sequence{padding-top:32px;padding-bottom:35px}
  .screen .enlarge{font-size:16px;margin-top:11px}
  .opening-app .screen .enlarge{font-size:16px;margin-top:9px;gap:5px}
  .opening-app .app-caption{font-size:16px}
}
@media(max-width:760px) and (max-height:700px){
  .opening{min-height:910px}
}
