.page-intro,
.closing-cta {
  background: var(--color-primary);
  color: var(--color-cream);
}

.page-intro-content,
.closing-cta-content {
  padding-block: var(--space-8);
}

.page-intro-content {
  max-width: var(--container);
}

.page-intro h1,
.closing-cta h2 {
  margin: 0;
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 10vw, 4rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.page-intro p:not(.eyebrow),
.closing-cta p {
  max-width: 44rem;
  margin: var(--space-4) 0 0;
}

.ba-caption {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.ba-caption h3,
.job-steps h3 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1.12rem;
}

.ba-caption p,
.job-steps p {
  margin: var(--space-2) 0 0;
  color: var(--color-ink-muted);
}

.work-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.work-gallery .is-gallery-hidden {
  display: none;
}

/* The revealed cards cannot animate themselves out of display:none, so the
   grid's height is what eases. main.js drives max-height between the measured
   collapsed and expanded heights; the same 300ms ease-out the testimonials
   use, so both expansions on the site feel like the same gesture. */
.work-gallery {
  transition: max-height 320ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .work-gallery {
    transition: none;
  }
}

.work-gallery .work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 647;
  object-fit: contain;
  background: var(--color-surface-muted);
}

.job-steps {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-5);
}

.step-number {
  display: grid;
  width: var(--space-7);
  height: var(--space-7);
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 800;
}

.closing-cta-content {
  text-align: center;
}

.closing-cta-content p {
  margin-inline: auto;
}

.closing-cta .hero-actions {
  justify-content: center;
}

.closing-cta .hero-actions .button {
  flex-grow: 0;
}

@media (min-width: 48rem) {
  .work-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .work-gallery,
  .job-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
