/* === CASE STUDY DETAIL PAGE === */

/* Hero — mirrors .sp-hero: cream bg, top padding for fixed nav, hairline
   border-bottom. Same padding scale as the rest of the marketing surface. */
.cs-hero {
  padding: 140px var(--pad-x) 80px;
  background: var(--cream);
  text-align: center;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.cs-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cs-title {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.cs-subtitle {
  font-size: 18px;
  color: var(--charcoal-mid);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* Main content */
.cs-main {
  background: var(--cream);
}

/* Brief highlights — two-column responsive grid.
   Each row pairs an uppercase label with a scale-down title-style value,
   divided by a hairline so the page reads like a worked spec sheet. */
.cs-brief {
  padding: var(--section-gap) var(--pad-x);
  background: var(--cream-warm);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.cs-brief-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.cs-brief-header {
  margin-bottom: 48px;
  max-width: 640px;
}

.cs-brief-header .section-label {
  margin-bottom: 12px;
}

.cs-brief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 0;
}

.cs-brief-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.cs-brief-row .cs-brief-label {
  margin-bottom: 0;
}

.cs-brief-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--charcoal);
  line-height: 1.3;
}

/* Deliverables / scenes grid — mirrors .sp-gallery-grid (3 cols, 260px rows,
   16px gap). Caption gradient overlay and hover scale match the gallery. */
.cs-deliverables {
  padding: var(--section-gap) var(--pad-x);
  background: var(--cream);
}

.cs-deliverables-header {
  max-width: var(--max-w);
  margin: 0 auto 48px;
}

.cs-gallery-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.cs-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--light-surface);
}

.cs-gallery-img-wrap {
  position: absolute;
  inset: 0;
}

.cs-gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cs-gallery-item:hover .cs-gallery-img-wrap img {
  transform: scale(1.04);
}

/* Caption — gradient bottom overlay like .sp-gallery-caption, but holds
   title + tag (no description in the marketing view). */
.cs-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.cs-caption-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cs-caption-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Responsive — collapse grids on smaller screens. */
@media (max-width: 900px) {
  .cs-brief-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .cs-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cs-hero {
    padding: 120px var(--pad-x) 64px;
  }

  .cs-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
}
