/* Case study pages (e.g. inventory-management.html) — hero title block, cover
   image and meta grid layered on top of the shared header/footer/background.
   See ./README.md */

.wm-case-hero {
  padding-top: 15rem;
}
@media (min-width: 768px) {
  .wm-case-hero {
    padding-top: 19rem;
  }
}
@media (min-width: 1600px) {
  .wm-case-hero {
    padding-top: 21rem;
  }
}

.wm-case-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font: normal 700 1.3rem/1 var(--_font-accent);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--t-medium);
  transition: color 0.3s ease, gap 0.3s ease;
}
.wm-case-hero__back:hover {
  color: var(--t-bright);
  gap: 1.2rem;
}
.wm-case-hero__back svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
  flex: none;
}

.wm-case-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2.4rem 0 2rem;
}

.wm-case-hero__title {
  font-weight: 400;
  font-size: 4rem;
  line-height: 1.08;
  max-width: 18ch;
  color: var(--t-bright);
}
@media (min-width: 768px) {
  .wm-case-hero__title {
    font-size: 5.6rem;
  }
}
@media (min-width: 1200px) {
  .wm-case-hero__title {
    font-size: 6.8rem;
  }
}

.wm-case-hero__lede {
  margin-top: 2.6rem;
  max-width: 60ch;
}

.wm-case-cover {
  position: relative;
  margin-top: 5rem;
  border-radius: 1.6rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
@media (min-width: 768px) {
  .wm-case-cover {
    aspect-ratio: 16 / 9;
  }
}
.wm-case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wm-case-meta {
  display: grid;
  gap: 3rem 2.4rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .wm-case-meta {
    grid-template-columns: repeat(4, 1fr);
  }
}
.wm-case-meta__item {
  border-top: 1px solid rgba(140, 147, 161, 0.3);
  padding-top: 1.6rem;
}
.wm-case-meta__label {
  font: normal 600 1.2rem/1.3 var(--_font-accent);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--t-medium);
}
.wm-case-meta__value {
  margin-top: 0.7rem;
  font: normal 500 1.7rem/1.3 var(--_font-default);
  color: var(--t-bright);
}

.wm-case-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.4rem;
}
@media (min-width: 768px) {
  .wm-case-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
