html {
  scroll-behavior: smooth;
}
body {
  height: 100vh;
  overflow: hidden;
}
main {
  color: var(--dark-brown);
}
h1 {
  margin-bottom: 10px;
  font-size: 6.5rem;
  line-height: 7rem;
  font-weight: 300;
  letter-spacing: -5px;
}
h2 {
  margin-bottom: 45px;
  font-size: 2.8rem;
  line-height: 3rem;
  font-weight: bold;
}
.container-wrap {
  position: relative;
  height: 100vh;
  background-color: var(--light-yellow);
  overflow: auto;
}
.container {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 100vh;
  padding: 150px 20px 200px;
  opacity: 0;
  -webkit-transition: opacity 0.5s ;
  -o-transition: opacity 0.5s ;
  transition: opacity 0.5s ;
}
.container:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 200px;
  background: var(--blue);
  -webkit-box-shadow: -999px 0 var(--blue), 999px 0 var(--blue);
          box-shadow: -999px 0 var(--blue), 999px 0 var(--blue);
}
.active .container {
  opacity: 1;
}
.container__left {
  -ms-flex-item-align: end;
      align-self: flex-end;
  margin: 0 60px -40px 0;
  z-index: 1;
  min-width: 350px;
  max-width: 500px;
  -webkit-transform: translateY(-80px);
      -ms-transform: translateY(-80px);
          transform: translateY(-80px);
  opacity: 0;
  -webkit-transition: opacity 2s, -webkit-transform 3s;
  transition: opacity 2s, -webkit-transform 3s;
  -o-transition: opacity 2s, transform 3s;
  transition: opacity 2s, transform 3s;
  transition: opacity 2s, transform 3s, -webkit-transform 3s;
}
.container__left img {
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);  
}
.container__left figcaption {
  position: absolute;
  padding: 5px 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2rem;
  bottom: -160px;
  left: 20px;
  width: calc(100vw - 160px);
}
.container__right {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 50%;
          flex: 1 0 50%;
  -webkit-transform: translateY(80px);
      -ms-transform: translateY(80px);
          transform: translateY(80px);
  opacity: 0;
  -webkit-transition: opacity 2s, -webkit-transform 2s;
  transition: opacity 2s, -webkit-transform 2s;
  -o-transition: opacity 2s, transform 2s;
  transition: opacity 2s, transform 2s;
  transition: opacity 2s, transform 2s, -webkit-transform 2s;
}
.active .container__left,
.active .container__right {
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
  opacity: 1;
}
.asset {
  -webkit-box-flex: 0;
      -ms-flex: 0;
          flex: 0;
  margin: 0 0 20px auto;
}
.content figure {
  max-width: 250px;
  float: right;
  margin: 0 0 10px 10px;
}
.content p {
  max-width: 800px;
}
.content *:not(:last-child) {
  margin-bottom: 40px;
}
.content a {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--blue);
}
.content a + a {
  margin-top: -20px;
}
.content a:after {
  content: '';
  clear: both;
  display: table;
}
.content a strong {
  font-size: 2.8rem;
}
.content a span {
  position: relative;
  display: inline-block;
  padding-right: 20px;
  margin-left: 10px;
  font-weight: 300;
}
.content a span:before {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  -webkit-transform: translateY(-50%) rotate(45deg);
      -ms-transform: translateY(-50%) rotate(45deg);
          transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-top: 2px solid var(--blue);
}
.next-link {
  position: absolute;
  left: 50%;
  bottom: 100px;
  width: 40px;
  height: 40px;
  border-bottom: 4px solid #fff;
  border-right: 4px solid #fff;
  -webkit-transform: translate(-50%, 0) rotate(45deg);
      -ms-transform: translate(-50%, 0) rotate(45deg);
          transform: translate(-50%, 0) rotate(45deg);
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.4s;
  transition: -webkit-transform 0.4s;
  -o-transition: transform 0.4s;
  transition: transform 0.4s;
  transition: transform 0.4s, -webkit-transform 0.4s;
}
.next-link:hover {
  -webkit-transform: translate(-50%, 10px) rotate(45deg);
      -ms-transform: translate(-50%, 10px) rotate(45deg);
          transform: translate(-50%, 10px) rotate(45deg);
}
.asset--1 {
  max-width: 350px;
  margin-right: 60px;
}
.asset--2 {
  max-width: 600px;
}
.asset--3 {
  max-width: 650px;
}
.asset--3 img {
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}
.asset--4 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  margin-bottom: 40px;
}
.asset--4 figure {
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}
.asset--4 figure:nth-child(1) {
  max-width: 240px;
  -webkit-transform: perspective(500px) rotateY(-18deg) rotateZ(2deg) translateX(30px);
          transform: perspective(500px) rotateY(-18deg) rotateZ(2deg) translateX(30px);
  z-index: 1;
}
.asset--4 figure:nth-child(2) {
  max-width: 400px;
  -webkit-transform: perspective(500px) rotateY(-18deg) rotateZ(2deg) translateX(-20px);
          transform: perspective(500px) rotateY(-18deg) rotateZ(2deg) translateX(-20px)
}
.asset--5 {
  max-width: 380px;
}
.asset--6 {
  max-width: 700px;
  margin-bottom: 40px;
  -webkit-transform: perspective(1000px) rotateY(-10deg) translateX(-10px);
          transform: perspective(1000px) rotateY(-10deg) translateX(-10px);
}
.asset--6 img {
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}
.asset--7 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}
.asset--7 figure:nth-child(1) {
  max-width: 200px;
}
.asset--7 figure:nth-child(2) {
  -webkit-transform: perspective(1000px) rotateY(-15deg) translateX(0);
          transform: perspective(1000px) rotateY(-15deg) translateX(0);
  max-width: 600px;
  margin-left: 20px;
}
.asset--8 {
  max-width: 700px;
  margin-bottom: 40px;
  -webkit-transform: perspective(1000px) rotateY(-10deg) translateX(-10px);
          transform: perspective(1000px) rotateY(-10deg) translateX(-10px);
}
.asset--8 img {
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}
.asset--9 {
  max-width: 700px;
  margin-bottom: 40px;
  -webkit-transform: perspective(1000px) rotateY(-10deg) translateX(-10px);
          transform: perspective(1000px) rotateY(-10deg) translateX(-10px);
}
.asset--9 img {
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}

@media only screen and (max-width: 1440px) {
  h1 {
    font-size: 5rem;
    line-height: 6rem;
  }
}

@media only screen and (max-width: 1024px) {
  body {
    height: auto;
    overflow: auto;
  }
  .container-wrap {
    height: auto;
  }
  .container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
        -ms-flex-direction: column-reverse;
            flex-direction: column-reverse;
  }
  .container__left {
    margin: 0 auto -40px;
    width: 100%;
  }
  .container__right {
    margin-bottom: 40px;
  }
  .container,
  .container__left,
  .container__right,
  .active .container__left,
  .active .container__right
  .active .container {
    opacity: 1;
    -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
            transform: translateY(0);
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
  }
  .container__left figcaption {
    width: auto;
  }
}

@media only screen and (max-width: 768px) {
  h1 {
    font-size: 4rem;
    line-height: 4.5rem;
    letter-spacing: 0;
  }
  h2 {
    font-size: 2.5rem;
  }
  .content figure {
    max-width: 150px;
  }
  .asset {
    max-width: none;
  }
}
 
@media only screen and (max-width: 600px) {
  .container {
    padding: 100px 20px 200px;
  }
  .container__left {
    min-width: auto;
  }
  h1 {
    font-size: 2.5rem;
    line-height: 3rem;
  }
  h2 {
    font-size: 2rem;
  }
  .next-link {
    width: 25px;
    height: 25px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
  }
  .content a strong {
    font-size: 2.2rem;
  }
  .content figure {
    float: none;
  }

  .asset--4 {
    display: block;
  }
  .asset--4 figure:nth-child(1) {
    margin: 0 auto;
    transform: perspective(500px) rotateY(-21deg) rotateZ(2deg) translateX(0);
  }
  .asset--4 figure:nth-child(2) {
    margin: 0 auto;
    transform: perspective(500px) rotateY(-21deg) rotateZ(2deg) translateX(0);
  }
  .asset--7 {
    display: block;
  }
  .asset--7 figure:nth-child(1) {
    margin: 0 auto 40px;
  }
  .asset--7 figure:nth-child(2) {
    margin: 0 auto 40px;
  }
}