/* NUEF archived frontend demo - shared with assets/scss/layout/_demo.scss. */
html.is-loaded,
html.animations-unavailable {
  overflow-y: auto;
}

html:not(.is-loaded) {
  overflow-y: hidden;
}

html {
  scroll-behavior: smooth;
}

.preloader {
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

html.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.fixed-nav__link:focus-visible,
.footer__nav__link:focus-visible,
.header__navigation-top__button:focus-visible,
.section-disc__connect-animation-button:focus-visible,
.section-contacts__button:focus-visible {
  outline: 0.25rem solid #ec0a7a;
  outline-offset: 0.45rem;
}

.footer__nav {
  max-width: calc(100% - 3rem);
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 3rem;
  row-gap: 1.8rem;
}

.footer__nav__link:not(:last-of-type) {
  margin-right: 0;
}

/* External animation scripts are optional for basic reading and navigation. */
.animations-unavailable .header__famous-line,
.animations-unavailable .header__two-lines,
.animations-unavailable .header__singer,
.animations-unavailable .section-disc__info,
.animations-unavailable .section-disc__circle-block,
.animations-unavailable .section-studio__studio-content,
.animations-unavailable .section-contacts,
.animations-unavailable .section-equaliser__content {
  opacity: 1;
  visibility: visible;
}

.animations-unavailable .section-disc__info,
.animations-unavailable .section-disc__circle-block,
.animations-unavailable .header__famous-line,
.animations-unavailable .header__two-lines,
.animations-unavailable .header__singer {
  transform: none;
}

@media only screen and (max-width: 600px) {
  .fixed-nav {
    left: 2rem;
  }

  .footer__nav {
    margin: 4rem 0;
    column-gap: 2.4rem;
  }
}

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

  .preloader {
    transition-duration: 0.1s;
  }
}

.section-disc__connect-animation-button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Keep the document as ScrollTrigger's only vertical scrolling container.
   overflow-x:hidden on both html/body created competing scroll contexts and
   could break pinned sections on mobile. */
html {
  overflow-x: visible;
  scroll-behavior: auto;
}

body {
  overflow-x: clip;
  overflow-y: visible;
}

.header {
  overflow: clip;
}

@media only screen and (max-width: 900px) {
  /* Stable height while mobile browser toolbars expand or collapse. */
  .section {
    height: 100svh;
  }

  .header__title {
    top: 47%;
    max-width: 92vw;
    font-size: clamp(6rem, 15vw, 10rem);
  }

  .header__singer {
    height: min(64svh, 68rem);
    max-width: 90vw;
    width: auto;
    object-fit: contain;
    margin-top: 5rem;
  }

  .header__circle {
    width: min(76vw, 48svh);
    height: min(76vw, 48svh);
    margin-top: 18rem;
  }

  .header__uix-item,
  .header__navigation-top {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .header__navigation-top__list {
    gap: 1.4rem;
    flex-wrap: wrap;
  }

  .header__navigation-top__item:not(:last-of-type) {
    margin-right: 0 !important;
  }

  .fixed-nav {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.3rem;
    width: auto;
    padding: 1rem 1.6rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.12);
    border-radius: 0.6rem;
    background: rgba(0, 0, 0, 0.76);
    font-size: 1.65rem;
  }

  .fixed-nav__link:not(:last-of-type) {
    margin-bottom: 0;
  }

  /* The disc and its text are positioned in separate areas of the pinned
     viewport rather than sharing the same centered flex row. */
  .section-disc {
    padding: 0;
    margin-bottom: 0;
  }

  .section-disc__content {
    width: 100%;
    height: 100%;
  }

  .section-disc__info {
    position: absolute;
    top: 8%;
    left: 50%;
    z-index: 20;
    width: min(82vw, 47rem);
    margin: 0;
    transform: translateX(-50%);
  }

  .section-disc__title {
    font-size: clamp(3.5rem, 7vw, 5.4rem);
  }

  .section-disc__desc {
    margin: 2.5rem 0;
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .section-disc__image-container {
    top: 65%;
    right: 50%;
  }

  .section-disc__circle-block {
    width: min(74vw, 42svh);
    height: min(74vw, 42svh);
  }

  .section-disc__circle-block__image {
    width: 130%;
    height: 130%;
    object-fit: contain;
  }

  /* Fit both the phone and its copy inside their own pinned scene. */
  .section-phone__content {
    box-sizing: border-box;
    padding: 3svh 1.5rem 7rem;
  }

  .section-phone__info {
    margin-top: 0;
    margin-bottom: 3.5rem;
  }

  .section-phone__phone-image {
    width: min(61vw, 34svh);
  }
}

@media only screen and (max-width: 380px) {
  .header__title {
    font-size: clamp(5.8rem, 14vw, 8rem);
  }

  .section-disc__info {
    top: 7%;
  }

  .section-disc__image-container {
    top: 63%;
  }
}

@media only screen and (max-width: 900px) {
  .fixed-nav__link {
    opacity: 0.8;
  }

  .fixed-nav__link.active {
    opacity: 1;
  }

  .header__uix-item:last-child {
    margin-bottom: 12rem;
  }

  .header__socials {
    display: none;
  }
}

@media only screen and (min-width: 701px) and (max-width: 900px) {
  .header__title {
    font-size: 12rem;
  }

  .section-phone__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
}
