.dl-col{
  position:fixed;
  z-index:5;
  top:max(calc(var(--header-h,65px) + 12px), calc(50vh - 60px));
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  width:max(0px, calc((100vw - 1120px) / 2 - 12px));
  max-width:160px;
}
.dl-col-left{
  left:8px;
  max-height:120px;
  align-items:center;
  transition:opacity .28s ease;
}
.dl-col-hidden{opacity:0}
.dl-stage{
  width:100%;
  position:relative;
}
.dl-col-left .dl-stage{
  aspect-ratio:1/1;
  max-height:120px;
}
.dl-stage img, .dl-stage picture, .dl-stage picture img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.dl-mobile-slot{
  display:none;
  width:min(340px, 92vw);
  margin:16px auto 0;
  position:relative;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.dl-mobile-slot .dl-stage{
  width:min(112px, 30vw);
  aspect-ratio:1/1;
  flex:0 0 auto;
}
.dl-mobile-slot img, .dl-mobile-slot picture, .dl-mobile-slot picture img{
  display:block;
  width:100%;
  height:auto;
}
@media (max-width:1279px){
  .dl-col{display:none}
  .dl-mobile-slot{display:flex}
}

/* Large phone: fixed in the right gutter, follows as you scroll.
   JS sets --dl-big-x/y/width so it stays in empty margin and never
   covers copy, links, buttons, forms, the chat bubble, header, or
   footer content. Fades out where the gutter is too tight.
   Hidden below 1280px and until JS has a safe size. */
.dl-big-device-stage{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:var(--dl-big-width, 0px);
  aspect-ratio:9/18;
  z-index:4;
  pointer-events:none;
  perspective:1000px;
  transform:translate3d(var(--dl-big-x, 0px), var(--dl-big-y, 0px), 0);
  transform-origin:left top;
  /* Opacity only: transforming on a delay would lag behind the scroll. */
  transition:opacity .28s ease;
}
@media (min-width:1280px){
  .dl-big-device-stage.dl-big-ready{
    display:block;
  }
}
.dl-big-device-stage.dl-big-hidden{
  opacity:0;
}
.dl-phone{
  position:absolute;
  inset:0;
  /* Extra top bezel so the island sits in the chrome, not over the screen. */
  padding:max(20px, 6.5%) 6% 6%;
  border:2px solid #38506f;
  border-radius:18%;
  background:linear-gradient(135deg, #e7eef7 0%, #8da0b8 45%, #f7f9fc 100%);
  box-shadow:16px 22px 36px rgba(11,31,58,.22), -8px -8px 20px rgba(255,255,255,.76), inset 0 0 0 2px rgba(255,255,255,.55);
  transform-style:preserve-3d;
  overflow:hidden;
}
/* Small centered dynamic island in the top bezel, clear of screen content. */
.dl-phone::before{
  content:"";
  position:absolute;
  width:26%;
  max-width:72px;
  height:max(7px, 2.2%);
  border-radius:999px;
  background:#0b1f3a;
  top:max(4px, 1.6%);
  left:50%;
  transform:translateX(-50%);
  z-index:3;
}
.dl-phone-screen{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:14%;
  background:#edf2f7;
  container-type:size;
  transform:translateZ(3px);
}
.dl-phone-screen::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, rgba(255,255,255,.22), transparent 30%, transparent 72%, rgba(8,29,55,.18));
  pointer-events:none;
  z-index:2;
}
.dl-phone-screen img{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:auto;
  min-height:100%;
  object-fit:cover;
  object-position:top;
  opacity:0;
}
.dl-phone-screen img:first-child{
  opacity:1;
}
.dl-big-device-stage::after{
  content:"";
  position:absolute;
  left:12%;
  right:8%;
  bottom:-7%;
  height:12%;
  background:rgba(29,78,216,.18);
  filter:blur(20px);
  border-radius:50%;
  z-index:-1;
}
@media (prefers-reduced-motion:no-preference){
  .dl-phone{
    transform:rotateX(4deg) rotateY(-6deg);
    transform-origin:left center;
  }
  .dl-phone-screen img{
    opacity:0;
    animation:dl-screen-cycle 32s linear infinite;
  }
  .dl-phone-screen img:first-child{
    opacity:1;
  }
  .dl-phone-screen img:nth-child(1){animation-delay:0s}
  .dl-phone-screen img:nth-child(2){animation-delay:8s}
  .dl-phone-screen img:nth-child(3){animation-delay:16s}
  .dl-phone-screen img:nth-child(4){animation-delay:24s}
  .dl-paused .dl-phone-screen img,
  .dl-paused .dl-phone{
    animation-play-state:paused;
  }
}
@media (prefers-reduced-motion:reduce){
  .dl-phone{
    transform:none;
  }
  .dl-phone-screen img{
    opacity:0;
    animation:none;
  }
  .dl-phone-screen img:first-child{
    opacity:1;
    transform:none;
  }
  .dl-big-device-stage,
  .dl-col-left{
    transition:none;
  }
}
/* Each still is fully visible for its 8s slot, then the next takes over
   with no fade-to-empty gap (the previous cycle faded out before the
   next image started, leaving the dark screen showing). */
@keyframes dl-screen-cycle{
  0%{
    opacity:1;
    transform:translateY(0);
  }
  24.9%{
    opacity:1;
    transform:translateY(calc(-100% + 100cqh));
  }
  25%, 100%{
    opacity:0;
    transform:translateY(0);
  }
}
