/* Quote section + Splitting (from src) */

.text-quote {
  text-align: center;
  font-family: var(--primary-font), sans-serif;
  font-weight: 700;
  color: #fff;
  background-color: #000;
  letter-spacing: -4px;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.text-quote .container {
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  width: 526px;
  max-width: calc(100% - 12vw);
}

.quote-first-line {
  display: flex;
  position: relative;
  align-items: flex-end;
  font-family: var(--primary-font), sans-serif;
  font-weight: 700;
}

.text-quote h1.quotation-mark {
  margin: 0;
  font-size: 200px;
  line-height: 0;
  color: #fff;
  margin-left: -15px;
  margin-right: 20px;
}

.text-quote .a-design {
  font-size: 92px;
  margin: 0;
  margin-top: 30px;
  margin-bottom: -20px;
  letter-spacing: -4px;
  color: #fff;
}

.text-quote .quote {
  font-size: 50px;
  text-align: justify;
  margin: 0;
  letter-spacing: -3px;
  font-family: var(--primary-font), sans-serif;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.text-quote .quote-focus {
  font-family: var(--secondary-font), Georgia, serif;
  font-weight: 700;
  font-style: normal;
  font-size: 70px;
  margin: 20px 0 14px;
  color: #fff;
}

@media (width < 1000px) {
  .text-quote h1.quotation-mark {
    font-size: 190px;
  }
  .text-quote .a-design {
    letter-spacing: -2px;
    font-size: 89.8px;
  }
  .text-quote .quote {
    margin-top: 8px;
    line-height: 1;
    letter-spacing: -1px;
    font-size: 46.8px;
  }
}

@media (width < 700px) {
  .text-quote .container {
    width: 330px;
    max-width: calc(100% - 12vw);
    padding: 0;
  }

  .text-quote h1.quotation-mark {
    font-size: 130px;
    margin-bottom: -10px;
    margin-left: -8px;
    margin-right: 10px;
  }

  .text-quote .a-design {
    letter-spacing: -1px;
    font-size: 55px;
  }

  .text-quote .quote {
    font-size: 30px;
  }

  .text-quote .quote-focus {
    font-size: 50px;
  }
}

.text-quote .quote-author {
  font-size: 16px;
  font-family: var(--primary-font), sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
  width: 100%;
  font-style: normal;
  margin: 10px 0 0;
  color: #fff;
}

.text-quote .line {
  --bg-color: #000;
  display: inline-block;
  width: 100%;
  height: 2px;
  position: absolute;
  background-color: var(--bg-color, #000);
  left: 0;
  transform-origin: left;
}

.text-quote .line-center {
  transform-origin: center;
}

.text-quote .line-white {
  --bg-color: #fff;
}

/* Keep marquee tight between quote and footer */
.running-text-section {
  margin: 0;
  padding: 0;
  margin-top: -100px;
}

.running-text-wrapper {
  padding: 0.5rem 0;
}
.splitting .word,
.splitting .char {
  display: inline-block;
}

.splitting .char {
  position: relative;
}

.splitting .char::before,
.splitting .char::after {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  transition: inherit;
  user-select: none;
}

.splitting {
  --word-center: calc((var(--word-total) - 1) / 2);
  --char-center: calc((var(--char-total) - 1) / 2);
  --line-center: calc((var(--line-total) - 1) / 2);
}

.splitting .word {
  --word-percent: calc(var(--word-index) / var(--word-total));
  --line-percent: calc(var(--line-index) / var(--line-total));
}

.splitting .char {
  --char-percent: calc(var(--char-index) / var(--char-total));
  --char-offset: calc(var(--char-index) - var(--char-center));
  --distance: calc((var(--char-offset) * var(--char-offset)) / var(--char-center));
  --distance-sine: calc(var(--char-offset) / var(--char-center));
  --distance-percent: calc((var(--distance) / var(--char-center)));
}

.char-wrap {
  display: inline-block;
  overflow: hidden;
}
