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

.hero-stage {
  width: 100%;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  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% - (var(--pad-x) * 2));
  left: var(--pad-x);
  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;
  width: 100%;
  line-height: 0;
}

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

.hero-letter-wrap {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
}

/* source letters must keep natural sizing */
.hero-source .hero-letter {
  display: block;
  width: auto;
  height: var(--hero-letter-height, 220px);
  max-width: none;
}

/* rendered letters fill wrapper */
.hero-letter-wrap .hero-letter {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

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

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

.hero-strap {
  margin-top: 10px;
  padding-left: var(--pad-x);
  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);
}

/* spacing only — letter sizing now controlled by JS */
@media (max-width: 700px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 48px;
  }
}