.word-reveal-section {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 160px 48px;
  overflow: hidden;
}

.word-reveal-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
  grid-auto-rows: 28px;
  pointer-events: none;
}

.word-reveal-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-slow);
}

.word-reveal-cell.is-active {
  color: rgba(255, 255, 255, 0.18);
}

.word-reveal-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.word-reveal-content p[data-word-reveal] {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-wrap: balance;
  max-width: 900px;
  margin: 0 auto;
}

.word-reveal-content h2 .word {
  display: inline;
  transition: color 150ms ease;
  color: rgba(255, 255, 255, 0.15);
}

.word-reveal-content h2 .word.is-revealed {
  color: rgba(255, 255, 255, 1);
}

.word-reveal-content p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

.word-reveal-word {
  transition: color 400ms ease;
}

.word-reveal-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgb(0 0 0) 35%, rgb(0 0 0 / 0.85) 55%, transparent 75%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .word-reveal-section {
    padding: 120px 32px;
  }
  .word-reveal-content p[data-word-reveal] {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .word-reveal-section {
    padding: 80px 16px;
  }
  .word-reveal-content p[data-word-reveal] {
    font-size: 22px;
    letter-spacing: -0.3px;
  }
  .word-reveal-cell {
    font-size: 6px;
  }
}