/* Case Studies — public listing + detail */

.cs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 1rem;
}

.cs-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cs-grid { grid-template-columns: repeat(3, 1fr); }
}

.cs-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem 0;
  color: color-mix(in srgb, #7da0ca 85%, white);
  font-size: 0.95rem;
}

.cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in srgb, #7da0ca 28%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, #052659 55%, #021024);
  overflow: hidden;
  min-height: 100%;
}
.cs-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.cs-card__link:hover .cs-card__title {
  color: #fcbf24;
}
.cs-card__media {
  aspect-ratio: 16 / 10;
  background: #021024;
  overflow: hidden;
}
.cs-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-card__media--empty {
  background:
    radial-gradient(80% 70% at 20% 0%, color-mix(in srgb, #fcbf24 22%, transparent), transparent 60%),
    linear-gradient(160deg, #052659, #021024);
}
.cs-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.cs-card__meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8eaccd;
}
.cs-card__title {
  margin: 0;
  font-family: Sora, Manrope, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f4f6;
  line-height: 1.25;
}
.cs-card__client {
  margin: 0;
  font-size: 0.82rem;
  color: #c1e8ff;
}
.cs-card__summary {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: color-mix(in srgb, #7da0ca 90%, white);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cs-card__cta {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fcbf24;
}
.cs-card__live {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, #021024 78%, transparent);
  border: 1px solid color-mix(in srgb, #fcbf24 45%, transparent);
  color: #fcbf24;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
}
.cs-card__live:hover {
  background: #021024;
}

/* Detail — stacked: info → video → image */
.cs-detail__info {
  max-width: 42rem;
  margin: 0 0 1.75rem;
}
.cs-detail__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8eaccd;
}
.cs-detail__title {
  margin: 0;
  font-family: Sora, Manrope, system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f2f4f6;
  line-height: 1.1;
}
.cs-detail__client {
  margin: 0.5rem 0 0;
  color: #c1e8ff;
  font-size: 0.95rem;
}
.cs-detail__lead {
  margin: 0.85rem 0 0;
  color: color-mix(in srgb, #7da0ca 92%, white);
  font-size: 1.05rem;
  line-height: 1.55;
}
.cs-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}
.cs-detail__media {
  margin: 0 0 1.5rem;
}
.cs-detail__media--video {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.cs-detail__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(85vh, 56rem);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #7da0ca 30%, transparent);
  background: #000;
}
.cs-detail__video iframe,
.cs-detail__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}
.cs-detail__video video {
  object-fit: cover;
}
/* Crop YouTube letterbox / title chrome so the frame is video-only */
.cs-detail__video iframe {
  width: 100%;
  height: 100%;
  transform: scale(1.35);
  transform-origin: center center;
}
@media (max-width: 767.98px) {
  .cs-detail__video {
    max-height: min(70vh, 28rem);
    border-radius: 0.85rem;
  }
  .cs-detail__video iframe {
    transform: scale(1.45);
  }
}
.cs-detail__video-link {
  margin: 0;
}
.cs-detail__figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #7da0ca 30%, transparent);
}
.cs-detail__figure img {
  display: block;
  width: 100%;
  height: auto;
}
.cs-detail__block {
  margin: 0 0 1.75rem;
}
.cs-detail__block h2 {
  margin: 0 0 0.65rem;
  font-family: Sora, Manrope, system-ui, sans-serif;
  font-size: 1.15rem;
  color: #f2f4f6;
}
.cs-detail__results {
  margin: 0;
  color: color-mix(in srgb, #7da0ca 92%, white);
  line-height: 1.55;
  max-width: 42rem;
}
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-tags li {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #7da0ca 35%, transparent);
  background: color-mix(in srgb, #052659 70%, #021024);
  color: #c1e8ff;
  font-size: 0.78rem;
}
