/* ===== CASE STUDY PAGES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.casestudy-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

/* Progress bar */
.cs-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: #111;
  width: 0%;
  z-index: 1000;
  transition: width 0.08s linear;
}

/* Back link */
.cs-back {
  position: fixed;
  top: 24px; left: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cs-back:hover { border-color: #aaa; background: #fff; }

/* Hero */
.cs-hero {
  width: 100%;
  height: 65vh;
  min-height: 340px;
  overflow: hidden;
  background: #ebebeb;
  position: relative;
}
.cs-hero img,
.cs-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-hero iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Content wrapper */
.cs-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 40px 100px;
}

/* Title block */
.cs-title-block {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e5e5e5;
}
.cs-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 10px;
}
.cs-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.cs-subtitle {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

/* Metadata row */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-bottom: 48px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}
.cs-meta-item h4 {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  margin-bottom: 6px;
}
.cs-meta-item p {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  line-height: 1.55;
}

/* Section */
.cs-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 56px;
  padding: 52px 0;
  border-bottom: 1px solid #e5e5e5;
}
.cs-section:last-child { border-bottom: none; }

.cs-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #aaa;
  padding-top: 4px;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.cs-section-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  line-height: 1.4;
}
.cs-section-body p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.8;
  max-width: 680px;
}
.cs-section-body p + p { margin-top: 12px; }

/* Image grid */
.cs-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.cs-image-grid.cols-1 { grid-template-columns: 1fr; }
.cs-image-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.cs-image-grid img,
.cs-image-grid video {
  width: 100%;
  border-radius: 8px;
  display: block;
  background: #ebebeb;
}

/* Placeholder */
.cs-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px dashed #e0e0e0;
}

/* Tall placeholder (for phone screens etc) */
.cs-img-placeholder.tall { aspect-ratio: 9/16; }

/* Responsive */
@media (max-width: 900px) {
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-section { grid-template-columns: 1fr; gap: 20px; }
  .cs-section-label { position: static; }
}
@media (max-width: 600px) {
  .cs-hero { height: 45vh; }
  .cs-content { padding: 40px 20px 80px; }
  .cs-title { font-size: 1.6rem; }
  .cs-image-grid,
  .cs-image-grid.cols-3 { grid-template-columns: 1fr; }
  .cs-back { top: 16px; left: 16px; }
}
