/* Content is readable until the scroll observer has attached successfully. */
@media screen {
  html {
    background: #091012;
  }

  body {
    width: min(100%, 1600px);
    max-width: 1600px;
    min-width: 0;
    min-height: 100svh;
    margin-inline: auto;
    background: #091012;
  }

  /* A fixed header otherwise follows the viewport beyond the page at low zoom. */
  .home-page > header {
    width: min(100%, 1600px);
    margin-inline: auto;
  }

  body > main {
    position: relative;
    min-width: 0;
    min-height: 100svh;
  }
}

@media screen and (min-width: 721px) {
  /* Paint the physical right edge over opaque page sections in both languages. */
  body > main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 51;
    box-shadow: inset -1px 0 #aab4bf36;
    pointer-events: none;
  }
}

.reveal-sequence.city-reveal:not([data-reveal-ready]),
.reveal-sequence.qualification-reveal:not([data-reveal-ready]),
.home-page .reveal-sequence:not([data-reveal-ready]) > article {
  opacity: 1;
  transform: none;
  transition: none;
}

.identity-flow:not([data-reveal-ready]) .identity-bridge {
  transform: translate(-50%, -50%) scaleX(1);
}

.method-path:not([data-reveal-ready]) .method-route-progress {
  stroke-dashoffset: 0;
}

@media (max-width: 900px) {
  .mobile-menu-panel {
    background-color: #091012;
  }

  .mobile-menu-panel > a > span {
    color: #d5d7d7;
  }

  .mobile-menu-panel > a.mobile-contact > span {
    color: #091012;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .city-reveal.is-visible .professional-route-pair article,
  .city-reveal.is-visible .professional-route-copy,
  .city-reveal.is-visible .professional-work-method li {
    animation: none;
  }
}
