/* Slow-scrolling KC skyline behind everything.
   Markup: <div class="kc-skyline" aria-hidden="true"></div> as the first child of <body>
   (or in app.component.html for Angular). */

.kc-skyline {
  --skyline-color: rgba(0, 0, 0, 0.08); /* line color + strength */
  --tile-h: 40vh;                         /* skyline height */
  --tile-w: calc(var(--tile-h) * 4);      /* SVG is 4:1 (2400x600) */
  --speed: 180s;                          /* time for one full loop */

  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--skyline-color);

  -webkit-mask: url("/common/IMG/kc-skyline.svg") repeat-x;
          mask: url("/common/IMG/kc-skyline.svg") repeat-x;
  -webkit-mask-size: var(--tile-w) var(--tile-h);
          mask-size: var(--tile-w) var(--tile-h);
  -webkit-mask-position: 0 100%;
          mask-position: 0 100%;

  animation: kc-skyline-scroll var(--speed) linear infinite;
}

@keyframes kc-skyline-scroll {
  from { -webkit-mask-position: 0 100%;                        mask-position: 0 100%; }
  to   { -webkit-mask-position: calc(-1 * var(--tile-w)) 100%; mask-position: calc(-1 * var(--tile-w)) 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .kc-skyline { animation: none; }
}

@media (min-width: 992px) {
  .kc-skyline { --tile-h: 60vh; }
}