.animate__animated {
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  -webkit-animation-fill-mode: backwards;
  animation-fill-mode: backwards;
}

.hero.large{
  min-height: 90vh;
  position: relative;
  display: flex;
  background-color: rgba(67,38,48,1);
  linear-gradient(45deg, rgba(67,38,48,1) 0%, rgba(67,38,48,0) 100%);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.large .video-wrapper,
.hero.large .symbol-wrapper,
.hero.large .gradient-wrapper{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
}
.hero.large .symbol-wrapper{
  background-image: url("https://1986139.fs1.hubspotusercontent-na1.net/hubfs/1986139/Softec/2024%20verkkosivuteeman%20resurssit/Grafiikka/R-symboli.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left top;
    width: 100%;
    height: 100%;
  -webkit-animation-delay: 2.25s;
  animation-delay: 2.25s;
    
}
.hero.large .gradient-wrapper{
  background: #613041;
  background: radial-gradient(at center, #613041, #43263100);
  height: 150%;
}
.hero.large .video-wrapper{
  opacity: .3;
   /* mix-blend-mode: multiply;*/
  -webkit-animation-delay: 2.1s;
  animation-delay: 2.1s;
}
.hero.large .video-wrapper video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero.large .text-wrapper{
  position: relative;
  z-index: 4;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}
.hero.large .text-wrapper *{
  color: inherit;
  font-weight: 400;
}
.hero.large .text-wrapper b,
.hero.large .text-wrapper strong{
  color: #E3BB9E;
  font-weight: 700;
}

.hero.large .content-wrapper{
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0rem;
}
.hero.large .image-wrapper{
  position: absolute;
  right: 0;
  bottom: 2.5rem;
  width: 530px;
  height: 720px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0px 4px 4px 0px #00000040;
  z-index: 2;
  -webkit-animation-delay: 1.5s;
  animation-delay: 1.5s;

}
.hero.large .image-wrapper img{
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}


@-webkit-keyframes bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 3000px, 0) scaleY(5);
    transform: translate3d(0, 3000px, 0) scaleY(5);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, -20px, 0) scaleY(0.9);
    transform: translate3d(0, -20px, 0) scaleY(0.9);
  }

  75% {
    -webkit-transform: translate3d(0, 10px, 0) scaleY(0.95);
    transform: translate3d(0, 10px, 0) scaleY(0.95);
  }

  90% {
    -webkit-transform: translate3d(0, -5px, 0) scaleY(0.985);
    transform: translate3d(0, -5px, 0) scaleY(0.985);
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
@keyframes bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 3000px, 0) scaleY(5);
    transform: translate3d(0, 3000px, 0) scaleY(5);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, -20px, 0) scaleY(0.9);
    transform: translate3d(0, -20px, 0) scaleY(0.9);
  }

  75% {
    -webkit-transform: translate3d(0, 10px, 0) scaleY(0.95);
    transform: translate3d(0, 10px, 0) scaleY(0.95);
  }

  90% {
    -webkit-transform: translate3d(0, -5px, 0) scaleY(0.985);
    transform: translate3d(0, -5px, 0) scaleY(0.985);
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
.animate__bounceInUp {
  -webkit-animation-name: bounceInUp;
  animation-name: bounceInUp;
}

@-webkit-keyframes rotateIn {
  from {
    -webkit-transform: rotate3d(0, 0, 1, 200deg);
    transform: rotate3d(0, 0, 1, 200deg);
    opacity: 0;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: .75;
  }
}
@keyframes rotateIn {
  from {
    -webkit-transform: rotate3d(0, 0, 1, 200deg);
    transform: rotate3d(0, 0, 1, 200deg);
    opacity: 0;
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    opacity: .75;
  }
}
.animate__rotateIn {
  -webkit-animation-name: rotateIn;
  animation-name: rotateIn;
  -webkit-transform-origin: left;
  transform-origin: left;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: .5;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: .5;
  }
}
.animate__fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}

@media all and (min-width: 1201px){
  .hero.large{
    padding: 0 20px;
  }
  .hero.large .text-wrapper h1{
    font-size: 3.888rem;
  }
}
@media all and (max-width: 1200px){
  .hero.large{
    min-height: 50vh;
  }
  .hero.large .content-wrapper {
      align-items: flex-start;
      display: flex;
      padding: 9rem 1.25rem 3rem;
      position: relative;
      flex-direction: column;
      justify-content: space-between;
  }
  .hero.large .image-wrapper {
      bottom: initial;
      overflow: hidden;
      position: initial;
      right: initial;
      width: 100%;
    height: 100%;
    max-height: 437px;
    max-width: 500px;
    margin-top: 100px;
  }
}
@media all and (max-width: 767px){
  
  .hero.large .image-wrapper {
      bottom: initial;
      overflow: hidden;
      position: initial;
      right: initial;
      width: 100%;
    height: 100%;
    max-height: 320px;
    max-width: 280px;
    margin-top: 50px;
  }
}