/* Figma 93:38 (2172 x 413) and 93:33 (2172 x 1064).
   Keep all four image planes independent for the reveal. */
:is(#todayView, #plannerView) .rooftop-banner {
  --banner-expanded-height: calc(100vw * 1064 / 2172);
  --rooftop-building-rail-y: calc(100cqw * 194 / 2172);
  --rooftop-floor-rail-y: calc(100cqw * 328 / 2172);
  height: calc(100vw * 413 / 2172);
  background: #222b5b;
}
:is(#todayView, #plannerView) .rooftop-banner.is-expanded {
  height: var(--banner-expanded-height);
}
:is(#todayView, #plannerView) .banner-art {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: max(100%, 900px);
  aspect-ratio: 2172 / 1064;
  container-type: inline-size;
  pointer-events: none;
}
:is(#todayView, #plannerView) .banner-layer {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: fill;
  image-rendering: pixelated;
  user-select: none;
  transform:translate3d(0,0,0);
  transition:transform var(--banner-rail-duration,720ms) var(--banner-rail-ease,cubic-bezier(.45,0,.2,1));
}
:is(#todayView, #plannerView) .banner-layer-sky {
  z-index: 1;
  top: calc(100cqw * -194 / 2172);
  left: 0;
  width: 100%;
  height: calc(100cqw * 724 / 2172);
}
:is(#todayView, #plannerView) .banner-layer-city {
  z-index: 2;
  top: calc(100cqw * 30 / 2172);
  left: calc(100cqw * 398 / 2172);
  width: calc(100cqw * 1774 / 2172);
  height: calc(100cqw * 887 / 2172);
}
:is(#todayView, #plannerView) .banner-layer-building {
  z-index: 3;
  top: calc(100cqw * -194 / 2172);
  left: 0;
  width: calc(100cqw * 1774 / 2172);
  height: calc(100cqw * 887 / 2172);
}
:is(#todayView, #plannerView) .banner-layer-floor {
  z-index: 4;
  top: calc(100cqw * -288 / 2172);
  left: 0;
  width: 100%;
  height: calc(100cqw * 1024 / 2172);
}
/* All planes travel on the same timeline without changing their width or scale. */
:is(#todayView, #plannerView) .rooftop-banner.is-expanded .banner-layer-sky,
:is(#todayView, #plannerView) .rooftop-banner.is-expanded .banner-layer-building {
  transform:translate3d(0,var(--rooftop-building-rail-y),0);
}
:is(#todayView, #plannerView) .rooftop-banner.is-expanded .banner-layer-city {
  transform:translate3d(0,calc(100cqw * 118 / 2172),0);
}
:is(#todayView, #plannerView) .rooftop-banner.is-expanded .banner-layer-floor {
  transform:translate3d(0,var(--rooftop-floor-rail-y),0);
}
@media (max-width: 850px) {
  :is(#todayView, #plannerView) .rooftop-banner {
    height: clamp(180px, calc(100vw * 413 / 2172), 240px);
    --banner-expanded-height: clamp(420px, calc(100vw * 1064 / 2172), 540px);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(#todayView, #plannerView) .banner-layer { transition: none; }
}
