@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.section4 {
  position: relative;
  width: 100%;
  height: 100svh;
  padding: 2em;
  overflow: hidden;
}

.copy-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 2rem;
}

.copy-container h1 {
  position: absolute;
  top: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  text-align: center;
  z-index: 3;
}

.section4 .copy-container,
.features .copy-container {
  border: 0.15rem dashed rgb(60, 60, 60);
}

.text-container {
  width: 90%;
  padding-top: 6rem;
}

.text-container p {
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}


.text-container .subtitle {
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}


.text-container .word {
  display: inline-block;
  position: relative;
  margin-right: 0.2rem;
  margin-bottom: 0.2rem;
  padding: 0.1rem 0.2rem;
  border-radius: 2rem;
  will-change: background-color, opacity;
}

.text-container .word.keyword-wrapper {
  margin: 0 0.4rem 0.2rem 0.2rem;
}

.text-container .word span {
  position: relative;
}

.text-container .word span.keyword {
  border-radius: 2rem;
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 0.1rem 0;
  color: #141414;
}

.text-container .word span.keyword::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 1rem);
  height: calc(100% + 0.4rem);
  background-color: #fff;
  border-radius: 2rem;
  z-index: -1;
}

.text-container .word span.keyword.vibrant::before,
.text-container .word span.keyword.shape::before,
.text-container .word span.keyword.interactive::before {
  background-color: #7a78ff;
}

.text-container .word span.keyword.living::before,
.text-container .word span.keyword.expression::before,
.text-container .word span.keyword.storytelling::before {
  background-color: #fe6d38;
}

.text-container .word span.keyword.clarity::before,
.text-container .word span.keyword.intuitive::before,
.text-container .word span.keyword.vision::before {
  background-color: #c6fe69;
}

.text-container .word,
.text-container .word span {
  opacity: 0;
}


@media (max-width: 1300px) {
  .copy-container h1 {
    width: 90%;
    font-size: 4rem;
  }

  .text-container {
    padding-top: 2rem;
  }

  .text-container .subtitle {
    font-size: 2rem;
  }

  .text-container p {
    font-size: 1.25rem;
  }

}

@media (max-width: 1000px) {
  .copy-container h1 {
    font-size: 2rem;
  }

  .text-container p {
    font-size: 1.25rem;
  }

}

@media (max-width: 700px) {
  .copy-container h1 {
    font-size: 2rem;
  }

  .text-container {
    padding-top: 1.5rem;
  }

  .text-container .subtitle {
    font-size: 1.5rem;
  }

  .text-container p {
    font-size: 1rem;
  }

}

@media (max-width: 500px) and (min-height: 800px) {

  .copy-container {
    height: calc(100% - 4rem);
  }

  .copy-container h1 {
    font-size: 1.7rem;
  }

  .text-container {
    padding-top: 5rem;
  }

   .text-container p {
    letter-spacing: 0px;
    line-height: 0.8;
  }

  .text-container .subtitle {
    font-size: 1rem;
  }

  .text-container p {
    font-size: 0.9rem;
  }

}

@media (max-width: 500px)  and (max-height: 801px){

  .copy-container {
    height: calc(100% - 4rem);
    padding-bottom: 2rem;
  }

  .copy-container h1 {
    font-size: 1.5rem;
    top: 3rem;
  }

  .text-container {
    padding-top: 4rem;
    width: 95%;
  }

  .text-container .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.1;
  }

  .text-container p {
    /* text-align: left;  */
    font-size: 0.85rem;
    line-height: 0.6;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .text-container p + .subtitle {
    margin-top: 1rem;
  }

  .text-container .word {
    margin-right: 0.05rem;
  }

}