/* =====================================================
   RESET
===================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #fff;
}

/* =====================================================
   SCREENS
===================================================== */

.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.screen__content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* =====================================================
   TRANSITION
===================================================== */

#transition {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  visibility: hidden;
  z-index: 99999;
  transform: scaleX(0);
  transform-origin: left center;
}

.transition__bar {
  width: 100%;
  height: 100%;
}

.transition__bar--purple {
  position: absolute;
  left: 0;
  width: 33.3333%;
  background: #a100ff;
}

.transition__bar--blue {
  position: absolute;
  left: 33.3333%;
  width: 33.3333%;
  background: #0d44f8;
}

.transition__bar--orange {
  position: absolute;
  left: 66.6666%;
  width: 33.3334%;
  background: #4bdeff;
}

/* =====================================================
   DEMO CONTENT
   (потом можно удалить)
===================================================== */

#screen-1 {
  background: #ffffff;
}

#screen-2 {
  background: #ffffff;
}
/* 
#screen-1::before {
  content: "Screen 1";
  position: absolute;
  left: 80px;
  top: 80px;
  font-size: 70px;
  font-weight: 700;
} */

/* =====================================================
   HELPERS
===================================================== */

.hidden {
  display: none;
}

.no-scroll {
  overflow: hidden;
}

@media (max-width: 991px) {
  #transition {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
  .transition__bar--purple {
    left: auto;
    top: 0;
    width: 100%;
    height: 33.3333%;
  }
  .transition__bar--blue {
    left: auto;
    top: 33.3333%;
    width: 100%;
    height: 33.3333%;
  }
  .transition__bar--orange {
    left: auto;
    top: 66.6666%;
    width: 100%;
    height: 33.3334%;
  }
}

canvas {
  display: block;
  transform: scale(1.5);
}

.logo3d {
  margin: 0 auto;
  height: 200px;
  max-width: 600px;
  width: 100%;
  display: flex;
  min-width: 600px;
  align-items: anchor-center;
}

/* Preloader */

#preloader {
  background: #000;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 9999;
  will-change: transform;
}

.preloader-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.outline {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 184px;
  height: auto;

  transform: translate(-50%, -50%);
}

.outline-path {
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: butt;
  stroke-linejoin: round;

  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.letter-a {
  position: absolute;
  width: 52px;
  height: auto;

  left: 40px;
  top: 40px;

  z-index: 2;
}

.star {
  position: absolute;
  width: 52px;
  height: auto;

  right: 40px;
  bottom: 40px;

  z-index: 2;
}
