/* ============================================================
   Case studies listing — Figma 652:374
   Numbers below are the Figma pixel values at 1920 (1rem = 10px
   through the site's rem scale), so the page matches the frame.
     hero  1920 x 860   · copy block 968 wide, centred, top 198
     band  1920 x 421   · items 340 x 220 at y 101, x 200/757/1413
     row   1920 x 935   · the .work stage, pinned, one row per screen
   ============================================================ */

/* ---------- HERO (Figma 652:376, 860 tall) ---------- */
.page-cases .hero {
  height: 86rem;
  min-height: 0;
}

.hero-cases__copy {
  position: absolute;
  top: 19.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 96.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
  z-index: 2;
}

.hero-cases__head,
.hero-cases__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero-cases__head { gap: 3.2rem; }
.hero-cases__foot { gap: 2.4rem; }

.hero-cases__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 8.2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.06em;
  text-align: center;
}
.hero-cases__line--sans  { font-family: var(--sans); margin-bottom: -1.4rem; }
.hero-cases__line--pixel { font-family: var(--pixel); }

.hero-cases__lede {
  width: 62.5rem;
  text-align: center;
  color: var(--muted-2);
  font-size: 2.4rem;
}

.hero-cases .hero__actions { display: flex; gap: 2rem; }

/* ---------- THE LIST ----------
   The home page's .work block, untouched. Its stage is sticky and sized to the
   viewport (style.css sets 100svh at >=1200), which is what keeps every row
   exactly one screen tall: pin it to Figma's 935 instead and the row either
   hides its own bottom on a short window or leaves a gap on a narrow one.
   Only the page's own framing is changed here. */
.page-cases .work {
  padding: 0;
  border-bottom: 0;
}
.page-cases .work__pin { margin-top: 0; }

/* ---------- small screens ---------- */
@media (max-width: 1199px) {
  .page-cases .hero { height: auto; min-height: 0; padding-bottom: 4.8rem; }
  /* no margin: the hero's own padding already clears the menu and sets the
     gutter, and the two together pushed the copy 280px down and 40px in */
  .hero-cases__copy {
    position: static;
    transform: none;
    width: auto;
    margin: 0;
    align-items: flex-start;
    gap: 2rem;
  }
  .hero-cases__head { gap: 2rem; align-items: flex-start; }
  .hero-cases__foot { gap: 1.6rem; align-items: flex-start; }
  .hero-cases__title { align-items: flex-start; font-size: 4rem; text-align: left; }
  .hero-cases__line--sans { margin-bottom: -0.6rem; }
  .hero-cases__lede { width: auto; text-align: left; font-size: 1.8rem; }
  .hero-cases .hero__actions { flex-wrap: wrap; gap: 1.2rem; }

}

@media (max-width: 767px) {
  /* the two buttons stack at one width, lined up with the copy (as on pricing) */
  .hero-cases .hero__actions { display: grid; grid-template-columns: max-content; justify-content: start; }
  .hero-cases .hero__actions .btn { width: 100%; }
  .hero-cases .hero__actions .btn__label { flex: 1; }
}
