/* ═══════════ SUBHERO GERAL DA SUBPÁGINA ═══════════ */
.subhero {
  padding: clamp(5rem, 8vh, 6.5rem) clamp(1.4rem, 6vw, 7rem) clamp(2.5rem, 5vh, 4rem);
  background: linear-gradient(var(--black), #0c0c0f);
  border-bottom: 1px solid #232329;
  position: relative;
  /* O fundo animado precisa de altura para respirar; sem isto o bloco
     encolhe até o texto e a malha fica espremida. */
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Três camadas empilhadas: malha (0) → véu (1) → texto (2).
   O Vanta insere o <canvas> em position:absolute como primeiro filho. */
.subhero>canvas {
  z-index: 0;
}

/* Sem este véu as linhas passam por cima do título e derrubam o contraste —
   fica mais denso à esquerda, onde o texto está, e some à direita, deixando
   a malha aparecer inteira. */
.subhero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(7, 7, 8, .92) 0%,
      rgba(7, 7, 8, .78) 40%,
      rgba(7, 7, 8, .35) 75%,
      rgba(7, 7, 8, .15) 100%);
}

.subhero>*:not(canvas) {
  position: relative;
  z-index: 2;
}

.subhero .back-link {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color .3s;
  margin-bottom: 1.5rem;
}

.subhero .back-link:hover {
  color: var(--brand)
}

.subhero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin-top: 0.8rem;
}

.subhero p {
  color: var(--white);
  max-width: 40rem;
  margin-top: 1.2rem;
  line-height: 1.7
}

.prose {
  max-width: 52rem;
  padding: clamp(3rem, 7vh, 5rem) clamp(1.4rem, 6vw, 7rem)
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 2.6rem 0 1rem
}

.prose h2:first-child {
  margin-top: 0
}

.prose p {
  color: var(--white-dim);
  line-height: 1.85;
  margin-top: 1rem;
  font-size: 1.03rem
}

.prose strong {
  color: var(--white);
  font-weight: 500
}
