.hero {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 60px;
  background: var(--bg);
}

.hero-stage {
  width: 100%;
  padding-left: 28px;
  padding-right: 28px;
  background: var(--bg);
  position: relative;
}

/* hidden measuring container */
.hero-source {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: calc(100% - 56px);
  left: 28px;
  top: 0;
}

.hero-break {
  display: none;
}

/* shrink-wrapped word block */
.hero-mask {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: var(--bg);
  line-height: 0;
}

/* one shared video only inside word block */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#hero-render {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-row {
  display: flex;
  align-items: flex-start;
  line-height: 0;
  width: 100%;
}

.hero-letters {
  display: flex;
  gap: 0;
  align-items: flex-start;
  flex: 0 0 auto;
}

.hero-row__fill {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg);
}

.hero-letter {
  display: block;
  height: 220px;
  width: auto;
  flex: 0 0 auto;
}

.hero-letter + .hero-letter {
  margin-left: -1px;
}

.hero-strap {
  margin-top: 10px;
  padding-left: 28px;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
}

/* prevent widow on very wide screens */
@media (min-width: 1482px) {
  .hero-letter {
    height: 187px;
  }
}

/* forced hero layout between 1200 and 1300 handled by JS */
/* natural wrap above/below */

@media (max-width: 862px) {
  .hero-letter {
    height: 187px;
  }
}

@media (max-width: 590px) {
  .hero-letter {
    height: 159px;
  }
}

@media (max-width: 506px) {
  .hero-letter {
    height: 135px;
  }
}

@media (max-width: 434px) {
  .hero-letter {
    height: 115px;
  }
}

@media (max-width: 374px) {
  .hero-letter {
    height: 98px;
  }
}

@media (max-width: 323px) {
  .hero-letter {
    height: 83px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .hero-stage {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-source {
    max-width: calc(100% - 32px);
    left: 16px;
  }


}