@import url("https://fonts.googleapis.com/css?family=Josefin+Sans");
* {
  box-sizing: border-box;
}

/* ---- Text animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(75, 175, 172, 0.4),
      0 0 40px rgba(75, 175, 172, 0.2);
  }
  50% {
    opacity: 0.95;
    text-shadow: 0 0 30px rgba(75, 175, 172, 0.6),
      0 0 60px rgba(75, 175, 172, 0.3);
  }
}

@keyframes bracketBlink {
  0%,
  45%,
  55%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  z-index: -10;
  background: radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(75, 175, 172, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 60%,
      rgba(56, 139, 137, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      ellipse 50% 30% at 20% 70%,
      rgba(75, 175, 172, 0.08) 0%,
      transparent 40%
    ),
    linear-gradient(180deg, #1a1c1e 0%, #16181a 40%, #0f1214 100%);
}

body {
  font-size: 12px;
  font-family: "Outfit", "Josefin Sans", "Roboto", sans-serif;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  background-color: #0f1214;
}

.crane__list,
.skyscrappers__list,
.tree__container {
  position: absolute;
  width: 100%;
  bottom: 0;
}

.advice {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 220px);
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.advice__eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #4bafac;
  margin-bottom: 0.75rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.advice__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
  background: linear-gradient(
    120deg,
    #fff 0%,
    #e8f7f6 25%,
    #4bafac 50%,
    #90d0cd 75%,
    #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fadeInUp 0.8s ease-out 0.2s both,
    gradientShift 6s ease-in-out infinite;
}

.advice__tagline {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-align: center;
  width: 100%;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.35s both;
}

.advice__description {
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.advice__bracket {
  color: #4bafac;
  font-weight: 700;
  animation: bracketBlink 2s ease-in-out infinite;
}

.advice__soon {
  color: #fff;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.advice__description .advice__bracket:last-child {
  animation-delay: 0.1s;
}

.advice__sub {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0.8;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.65s both;
}

.city-stuff {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  width: 100%;
  height: 220px;
  min-height: 180px;
  overflow: hidden;
  box-shadow: inset 0 -60px 0 -30px #4bafac;
  z-index: 0;
  flex-shrink: 0;
}

.skyscrappers__list {
  width: 100%;
  height: 86.6666666667px;
  left: 0;
}
.skyscrappers__list .skyscrapper__item {
  position: absolute;
  height: inherit;
  bottom: 15%;
  width: 43.3333333333px;
  background: linear-gradient(115deg, #4bafac 73%, #3c8b89 73%, #3c8b89 100%);
}
.skyscrappers__list .skyscrapper__item::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  left: 10%;
  bottom: 10%;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAFElEQVQImWP4////fwYYIJKDEwAAfPsP8eFXG40AAAAASUVORK5CYII=")
    space;
}
.skyscrappers__list .skyscrapper__item:last-child:not(:only-child) {
  background: #4bafac;
}
.skyscrappers__list .skyscrapper-1 {
  width: 121.3333333333px;
  height: 138.6666666667px;
  right: 25%;
  bottom: 0;
  z-index: 10;
  transform: rotate(180deg);
}
@media screen and (max-width: 450px) {
  .skyscrappers__list .skyscrapper-1 {
    display: none;
  }
}
.skyscrappers__list .skyscrapper-2 {
  width: 60.6666666667px;
  height: 69.3333333333px;
  right: 35%;
  bottom: 0;
  z-index: 10;
  transform: rotate(180deg);
  bottom: 10%;
}
@media screen and (max-width: 900px) {
  .skyscrappers__list .skyscrapper-2 {
    display: none;
  }
}
@media screen and (max-width: 450px) {
  .skyscrappers__list .skyscrapper-1 {
    display: none;
  }
}
.skyscrappers__list .skyscrapper-3 {
  width: 40.4444444444px;
  height: 46.2222222222px;
  right: 45%;
  bottom: 0;
  z-index: 10;
  transform: rotate(180deg);
  height: 115.5555555556px;
}
@media screen and (max-width: 900px) {
  .skyscrappers__list .skyscrapper-3 {
    display: none;
  }
}
@media screen and (max-width: 450px) {
  .skyscrappers__list .skyscrapper-1 {
    display: none;
  }
}
.skyscrappers__list .skyscrapper-4 {
  width: 30.3333333333px;
  height: 34.6666666667px;
  right: 55%;
  bottom: 0;
  z-index: 10;
  transform: rotate(180deg);
  height: 86.6666666667px;
}
.skyscrappers__list .skyscrapper-4::after {
  width: 20%;
  height: 60%;
  left: 25%;
}
@media screen and (max-width: 450px) {
  .skyscrappers__list .skyscrapper-1 {
    display: none;
  }
}
.skyscrappers__list .skyscrapper-5 {
  width: 24.2666666667px;
  height: 27.7333333333px;
  right: 65%;
  bottom: 0;
  z-index: 10;
  transform: rotate(180deg);
  width: 7%;
  right: 67%;
  height: 50%;
  z-index: 11;
}
.skyscrappers__list .skyscrapper-5::after {
  height: 0;
}
@media screen and (max-width: 450px) {
  .skyscrappers__list .skyscrapper-1 {
    display: none;
  }
}

.crane-cabin,
.crane-arm,
.crane-picker {
  transform-origin: 80% center;
  -webkit-animation: crane__movement 12s infinite alternate;
  animation: crane__movement 12s infinite alternate;
}

.crane__list {
  width: 260px;
  height: 173.3333333333px;
  z-index: 0;
  perspective: 600px;
}
.crane__list .crane__item {
  position: absolute;
  border: solid 1px #4bafac;
  border-radius: 2px;
}
.crane__list .crane-cable {
  width: 1px;
  height: 1px;
  border: none;
  outline: 1px solid transparent;
  background: #4bafac;
  z-index: 0;
}
.crane__list .crane-cable-1 {
  width: 60%;
  top: 0;
  left: 11%;
  transform-origin: right 0;
  -webkit-animation: cable-1__movement 12s infinite alternate;
  animation: cable-1__movement 12s infinite alternate;
}
.crane__list .crane-cable-2 {
  width: 19%;
  top: 0;
  right: 8%;
  transform-origin: top left;
  -webkit-animation: cable-2__movement 12s infinite alternate;
  animation: cable-2__movement 12s infinite alternate;
}
.crane__list .crane-cable-3 {
  height: 30%;
  top: 22%;
  left: 9%;
  transform-origin: right center;
  -webkit-animation: cable-3__movement 12s ease-in-out infinite alternate;
  animation: cable-3__movement 12s ease-in-out infinite alternate;
}
.crane__list .crane-cable-3::after {
  content: "";
  display: block;
  position: absolute;
  height: 0.2em;
  width: 9000%;
  bottom: 0;
  left: -4500%;
  background: #90d0cd;
  border: 1px solid #4bafac;
}
.crane__list .crane-stand {
  width: 5%;
  height: 100%;
  right: 25%;
  z-index: 1;
  background: linear-gradient(to top, #4bafac, #bfd4d3);
}
.crane__list .crane-weight {
  width: 8%;
  height: 20%;
  right: 4%;
  top: 12%;
  z-index: 2;
  background: #a9d1cf;
  transform-origin: 0 center;
  -webkit-animation: crane-weight__movement 12s infinite alternate;
  animation: crane-weight__movement 12s infinite alternate;
}
.crane__list .crane-cabin {
  width: 12%;
  height: 9%;
  right: 24%;
  top: 20%;
  z-index: 2;
  background: #a9d1cf;
}
.crane__list .crane-cabin::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 10%;
  top: 60%;
  left: 0;
  background: white;
}
.crane__list .crane-arm {
  width: 100%;
  height: 7%;
  top: 15%;
  border-top-left-radius: 10px;
  z-index: 3;
  background: #a9d1cf;
}

.crane-1 {
  left: 20%;
  z-index: 10;
}

.crane-2 {
  left: 30%;
  z-index: 10;
  bottom: -1rem;
  z-index: -1;
  transform: scale(0.75) scaleX(-1);
}
@media screen and (max-width: 900px) {
  .crane-2 {
    display: none;
  }
}
.crane-2 .crane-cable-3 {
  -webkit-animation-delay: 3s;
  animation-delay: 3s;
}

.crane-3 {
  left: 40%;
  z-index: 10;
  bottom: -0.5rem;
  transform: scale(0.8);
}
@media screen and (max-width: 900px) {
  .crane-3 {
    z-index: -1;
    transform: scale(0.75) scaleX(-1);
  }
}
@media screen and (max-width: 900px) {
  .crane-3 {
    display: none;
  }
}
.crane-3 .crane-cable-3 {
  -webkit-animation-delay: 4.5s;
  animation-delay: 4.5s;
}

.tree__container {
  width: 100%;
  height: 62.6666666667px;
  left: 0;
  margin-bottom: 4px;
}

.tree__item {
  display: flex;
  flex-flow: column nowrap;
  position: absolute;
  justify-content: flex-end;
  align-items: center;
  left: 60%;
}

.tree__trunk {
  order: 2;
  display: block;
  position: absolute;
  width: 4px;
  height: 8px;
  margin-top: 8px;
  border-radius: 2px;
  background: #57473d;
}

.tree__leaves {
  order: 1;
  position: relative;
  border-top: 0 solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 32px solid #4bafac;
  border-left: 4px solid transparent;
}
.tree__leaves::after {
  content: "";
  position: absolute;
  height: 100%;
  left: -4px;
  border-top: 0;
  border-right: 0;
  border-bottom: 32px solid #3c8b89;
  border-left: 4px solid transparent;
}

.tree-1 {
  left: 66%;
}
@media screen and (max-width: 768px) {
  .tree-1 {
    display: none;
  }
}

.tree-2 {
  left: 67%;
}
@media screen and (max-width: 768px) {
  .tree-2 {
    display: none;
  }
}

.tree-4 {
  left: 57%;
}

.tree-5 {
  left: 58%;
}

.tree-7 {
  left: 51%;
}
@media screen and (max-width: 450px) {
  .tree-7 {
    display: none;
  }
}

.tree-8 {
  left: 52%;
}
@media screen and (max-width: 450px) {
  .tree-8 {
    display: none;
  }
}

@-webkit-keyframes cable-1__movement {
  0%,
  20% {
    transform: rotateY(0) rotateZ(-10deg);
  }
  70%,
  100% {
    transform: rotateY(45deg) rotateZ(-10deg);
  }
}

@keyframes cable-1__movement {
  0%,
  20% {
    transform: rotateY(0) rotateZ(-10deg);
  }
  70%,
  100% {
    transform: rotateY(45deg) rotateZ(-10deg);
  }
}
@-webkit-keyframes cable-2__movement {
  0%,
  20% {
    transform: rotateY(0) rotateZ(29deg);
  }
  70%,
  100% {
    transform: rotateY(15deg) rotateZ(29deg);
  }
}
@keyframes cable-2__movement {
  0%,
  20% {
    transform: rotateY(0) rotateZ(29deg);
  }
  70%,
  100% {
    transform: rotateY(15deg) rotateZ(29deg);
  }
}
@-webkit-keyframes cable-3__movement {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(2500%, -18%);
  }
  60% {
    transform: translate(11000%, -25%);
  }
  70% {
    height: 30%;
    transform: translate(9100%, -25%);
  }
  90%,
  100% {
    height: 80%;
    transform: translate(9100%, -15%);
  }
}
@keyframes cable-3__movement {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(2500%, -18%);
  }
  60% {
    transform: translate(11000%, -25%);
  }
  70% {
    height: 30%;
    transform: translate(9100%, -25%);
  }
  90%,
  100% {
    height: 80%;
    transform: translate(9100%, -15%);
  }
}
@-webkit-keyframes crane__movement {
  0%,
  20% {
    transform: rotateY(0);
  }
  70%,
  100% {
    transform: rotateY(45deg);
  }
}
@keyframes crane__movement {
  0%,
  20% {
    transform: rotateY(0);
  }
  70%,
  100% {
    transform: rotateY(45deg);
  }
}
@-webkit-keyframes crane-weight__movement {
  0%,
  20% {
    transform: rotateY(0) translateX(0);
  }
  70%,
  100% {
    transform: rotateY(45deg) translateX(-50%);
  }
}
@keyframes crane-weight__movement {
  0%,
  20% {
    transform: rotateY(0) translateX(0);
  }
  70%,
  100% {
    transform: rotateY(45deg) translateX(-50%);
  }
}
