/* Backlab v2 · Capítulo de solução. Fundo branco, linha fina entre capítulos, mockup num quadro off-white.
   Estado final completo no CSS; a revelação (uma vez) só acontece quando o JS marca .is-playing. */

.bl-v2-chapter {
  background: var(--bl-v2-paper, #fff);
  color: var(--bl-v2-ink);
  font-family: var(--bl-v2-font);
  padding-block: clamp(4rem, 8vw, 8rem);
}
.bl-v2-chapter__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  grid-template-areas: "copy frame";
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}
.bl-v2-chapter--reverse .bl-v2-chapter__grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  grid-template-areas: "frame copy";
}
.bl-v2-chapter__copy { grid-area: copy; max-inline-size: 34rem; }
.bl-v2-chapter__frame {
  grid-area: frame;
  padding: clamp(1rem, 3vw, 2.5rem);
  border-radius: var(--bl-v2-radius-lg);
  border: 1px solid var(--bl-v2-line);
  background: var(--bl-v2-mist);
}

.bl-v2-chapter__eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  font-size: var(--bl-v2-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bl-v2-muted);
}
.bl-v2-chapter__eyebrow span { color: var(--bl-v2-brand-ink); }
.bl-v2-chapter__title {
  margin: 1.1rem 0 0;
  font-family: var(--bl-v2-font);
  font-size: clamp(2.5rem, 1.2rem + 4vw, 5.25rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--bl-v2-ink);
  text-wrap: balance;
}
.bl-v2-chapter__text { margin: 1.25rem 0 0; font-size: var(--bl-v2-body); line-height: 1.65; color: var(--bl-v2-ink-2); }
.bl-v2-chapter__list { margin: 1.75rem 0 0; padding: 0; list-style: none; border-block-end: 1px solid var(--bl-v2-line); }
.bl-v2-chapter__list li {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding-block: .8rem;
  border-block-start: 1px solid var(--bl-v2-line);
  font-size: .975rem;
  font-weight: 500;
  color: var(--bl-v2-ink);
}
.bl-v2-chapter__list li::before {
  content: "";
  flex-shrink: 0;
  inline-size: .7rem;
  block-size: 2px;
  border-radius: 2px;
  background: var(--bl-v2-brand);
  transform: translateY(-.3em);
}
.bl-v2-chapter__link,
.bl-scope .bl-v2-chapter__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-block-size: 2.75rem;
  margin-block-start: 1.5rem;
  font-size: .975rem;
  font-weight: 600;
  color: var(--bl-v2-ink);
  text-decoration: none;
  border-block-end: 1px solid var(--bl-v2-ink);
}
.bl-v2-chapter__link .bl-v2-arrow { transition: transform .25s var(--bl-v2-ease); }
.bl-v2-chapter__link:hover,
.bl-scope .bl-v2-chapter__link:hover { color: var(--bl-v2-brand-ink); border-color: currentColor; }
.bl-v2-chapter__link:hover .bl-v2-arrow { transform: translateX(3px); }
.bl-v2-chapter__link:focus-visible { outline: 2px solid var(--bl-v2-brand-ink); outline-offset: 3px; }

/* Revelação única */
.bl-v2-chapter.is-playing .bl-v2-chapter__copy > * { animation: bl-v2-rise .8s var(--bl-v2-ease) both; }
.bl-v2-chapter.is-playing .bl-v2-chapter__copy > :nth-child(2) { animation-delay: .06s; }
.bl-v2-chapter.is-playing .bl-v2-chapter__copy > :nth-child(3) { animation-delay: .12s; }
.bl-v2-chapter.is-playing .bl-v2-chapter__copy > :nth-child(4) { animation-delay: .18s; }
.bl-v2-chapter.is-playing .bl-v2-chapter__copy > :nth-child(5) { animation-delay: .24s; }
.bl-v2-chapter.is-playing .bl-v2-chapter__frame { animation: bl-v2-rise 1s var(--bl-v2-ease) .1s both; }

@media (max-width: 1023px) {
  .bl-v2-chapter__grid,
  .bl-v2-chapter--reverse .bl-v2-chapter__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "frame";
    gap: 2rem;
  }
  .bl-v2-chapter__copy { max-inline-size: 36rem; }
}
@media (max-width: 760px) {
  .bl-v2-chapter__frame { padding: .5rem; border-radius: 1.25rem; }
  .bl-v2-chapter__title { font-size: clamp(2.35rem, 1rem + 6.4vw, 2.9rem); line-height: 1.02; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-v2-chapter * { animation: none !important; transition: none !important; }
}
