.moscow-hero-clouds {
  position: absolute;
  inset: 4% -12% 56% 12%;
  background:
    radial-gradient(ellipse 31% 12% at 64% 41%, #dce5f0 0%, transparent 100%),
    radial-gradient(ellipse 24% 9% at 79% 32%, #eef1f6 0%, transparent 100%),
    radial-gradient(ellipse 34% 10% at 52% 62%, #cdd9e9 0%, transparent 100%);
  mask-image: radial-gradient(ellipse at 59% 48%, #000 18%, transparent 67%);
  opacity: .18;
}

:root[data-theme="dark"] .moscow-hero-clouds { opacity: .07; }

@media (prefers-reduced-motion: no-preference) {
  .app-shell:has(.moscow-hero) {
    transition: background-color 1450ms cubic-bezier(.3, .1, .3, 1);
  }
  .moscow-hero { transition: color 850ms ease; }
  .moscow-hero .moscow-hero-art { transition: opacity 2500ms ease; }

  /* Keep the outgoing photo present while the incoming sky gains opacity. */
  .moscow-hero-art img:first-child {
    transition: opacity 2800ms cubic-bezier(.24, .7, .4, 1);
  }
  .moscow-hero-art .moscow-hero-night {
    transition: opacity 2800ms cubic-bezier(.55, 0, .76, .3);
  }
  :root[data-theme="dark"] .moscow-hero-art img:first-child {
    transition-timing-function: cubic-bezier(.55, 0, .76, .3);
  }
  :root[data-theme="dark"] .moscow-hero-art .moscow-hero-night {
    transition-timing-function: cubic-bezier(.24, .7, .4, 1);
  }
  .moscow-hero-glow { transition: opacity 2800ms ease-in-out; }
  .moscow-hero-clouds {
    animation: moscow-cloud-drift 72s ease-in-out infinite alternate;
    transition: opacity 2800ms ease-in-out;
  }
}

@keyframes moscow-cloud-drift {
  from { transform: translateX(-4%); }
  to { transform: translateX(7%); }
}

.moscow-hero-river {
  position: absolute;
  z-index: -1;
  inset: clamp(250px, 27vw, 380px) -36px auto -36px;
  height: clamp(200px, 23vw, 380px);
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(transparent, #000 53%, #000 67%, transparent);
}

.moscow-hero-river::before,
.moscow-hero-river::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/brand/moscow-day.jpg") left bottom / max(100%, 990px) auto no-repeat;
  opacity: .28;
}

.moscow-hero-river::after {
  background-image: url("/brand/moscow-night.jpg");
  opacity: 0;
}

:root[data-theme="dark"] .moscow-hero-river::before { opacity: 0; }
:root[data-theme="dark"] .moscow-hero-river::after { opacity: .42; }

@media (max-width: 700px) {
  .moscow-hero-river {
    inset: 160px -20px auto;
    height: 210px;
  }

  .moscow-hero-river::before,
  .moscow-hero-river::after {
    background-size: max(100%, 650px) auto;
    background-position: 22% bottom;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .moscow-hero-river::before,
  .moscow-hero-river::after {
    transition: opacity 2800ms ease-in-out;
  }
}
