/* case-studies.css — CPT `case_study` archive (Figma "Case Study Listing").
   Centered hero + 2-column grid of video-teaser cards + pagination.
   Pagination component styles come from blog-archive.css (enqueued as a dep). */

/* ---------- Hero ---------- */
.case-studies__hero { padding-top: var(--space-m); }
.case-studies__hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}
.case-studies__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  max-width: 800px;
  /* position + text alignment come from the .u-align-* utility (ACF "align" field) */
}
.case-studies__title { margin: 0; color: var(--color-grey-900); }
.case-studies__title em, .case-studies__title i { font-style: italic; }
.case-studies__intro {
  margin: 0;
  font-size: var(--fs-body-m);
  line-height: var(--lh-body-m);
  color: var(--color-grey-900);
}

/* ---------- List ---------- */
.case-studies--list { padding-block: var(--space-3xl) var(--space-5xl); }
.case-studies__empty { padding-block: var(--space-2xl); color: var(--color-grey-600); }

.case-studies__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-xl);
  row-gap: var(--space-xl);
  align-items: start;
}

/* ---------- Video teaser card ---------- */
.vteaser {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  text-decoration: none;
  color: var(--color-grey-900);
}
.vteaser__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--color-grey-200);
}
.vteaser__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.vteaser:hover .vteaser__img { transform: scale(1.03); }
.vteaser__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.vteaser__play svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 8px rgba(13, 13, 13, .25));
  transition: transform .2s ease;
}
.vteaser:hover .vteaser__play svg { transform: scale(1.08); }

.vteaser__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2x);
}
.vteaser__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--fs-h-m);
  line-height: var(--lh-h-m);
  letter-spacing: var(--ls-h-m);
  color: var(--color-grey-900);
}
.vteaser__title em, .vteaser__title i { font-style: italic; }
.vteaser__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2x);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  letter-spacing: var(--ls-caption);
  font-weight: 500;
  color: var(--color-grey-700, #4e4e4e);
}
.vteaser__sep { color: var(--color-grey-400); }
.vteaser__excerpt {
  font-size: var(--fs-body-s);
  line-height: var(--lh-body-s);
  color: var(--color-grey-900);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1024px) {
  .case-studies__grid { column-gap: var(--space-m); row-gap: var(--space-m); }
}
@media (max-width: 600px) {
  .case-studies__title { font-size: var(--fs-h-l); line-height: var(--lh-h-l); letter-spacing: var(--ls-h-l); }
  .case-studies--list { padding-block: var(--space-2xl) var(--space-3xl); }
  .case-studies__grid { grid-template-columns: 1fr; }
  .vteaser__title { font-size: 28px; line-height: 36px; }
}
