/* Source : https://codepen.io/stevenlei/pen/RwpRgzy
CodePen Home
Apple TV - Word Rotation
Steven Lei */
 
#hero {
    position : sticky;
    top: 0;
}
#hero h1 {
    margin-top: 1em;
}
#hero h1,
#hero h2 {
  width: 980px;
  font-size: 70px;
  font-family: Helvetica;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: white;
}
#hero h2 {
    margin-top: 0;
    line-height: 0.9;
}
#hero p {
    font-size: 30px;
    color: black; /* rgb(231, 0, 142); */
    background-color: yellow; 
    display: inline-block;
    padding: 0 5px;
}

.mask {
  height: 77px;
  position: relative;
  overflow: hidden;
  margin-top: var(--offset);
}

.mask span {
  display: block;
  box-sizing: border-box;
  position: absolute;
  top: 80px;
  padding-bottom: var(--offset);
  
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-repeat: no-repeat;
}

.mask span[data-show] {
  transform: translateY(-100%);
  transition: .5s transform ease-in-out;
}

.mask span[data-up] {
  transform: translateY(-200%);
  transition: .5s transform ease-in-out;
}

.mask span:nth-child(1) {
  background-image: linear-gradient(45deg, #0ecffe 50%, #07a6f1);
}

.mask span:nth-child(2) {
  background-image: linear-gradient(45deg, #18e198 50%, #0ec15d);
}

.mask span:nth-child(3) {
  background-image: linear-gradient(45deg, #8a7cfb 50%, #633e9c);
}

.mask span:nth-child(4) {
  background-image: linear-gradient(45deg, #fa7671 50%, #f45f7f);
}