/* ============================================================
   CASE STUDY — mirrors blog-article.html layout conventions
============================================================ */

/* ── HEADER ── */
.cs-header {
  background: #fff;
  padding: 300px 0 80px;
  border-bottom: 1.5px solid #e8e8e8;
}
.cs-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}
.cs-breadcrumb {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 48px;
  transition: color 0.2s;
}
.cs-breadcrumb:hover { color: #0a0a0a; text-decoration: none; }
.cs-header-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cs-tag {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  background: #f0f0f0;
  padding: 5px 14px;
  border-radius: 100px;
}
.cs-header-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(36px, 5.5vw, 84px);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin-bottom: 28px;
  max-width: 900px;
}
.cs-header-sub {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(18px, 2.2vw, 28px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0,0,0,0.5);
  max-width: 720px;
}

/* ── HERO IMAGE ── */
.cs-hero-img-wrap {
  width: 100%;
  height: clamp(320px, 50vw, 660px);
  overflow: hidden;
}
.cs-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ── BODY (two-column) ── */
.cs-body-section {
  padding: 80px 0 120px;
}
.cs-body-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}

/* ── SIDEBAR ── */
.cs-sidebar {
  position: sticky;
  top: 120px;
}
.cs-sidebar-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #e8e8e8;
}
.cs-sidebar-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cs-sidebar-label {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-bottom: 8px;
}
.cs-sidebar-value {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.4;
}
.cs-sidebar-value.light {
  font-weight: 300;
  color: rgba(0,0,0,0.6);
}

/* ── CONTENT ── */
.cs-content p {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(0,0,0,0.72);
  margin-bottom: 28px;
}
.cs-content h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin: 64px 0 20px;
}
.cs-content h2:first-child { margin-top: 0; }
.cs-content h3 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: #0a0a0a;
  margin: 44px 0 12px;
}
.cs-content blockquote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: #0a0a0a;
  border-left: 3px solid #0a0a0a;
  padding-left: 32px;
  margin: 56px 0;
}
.cs-content strong { font-weight: 700; color: #0a0a0a; }
.cs-content ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-content ul li {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(0,0,0,0.72);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cs-content ul li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #0a0a0a;
  margin-top: 10px;
  flex-shrink: 0;
}

/* ── MEDIA IN CONTENT ── */
.cs-content .cs-media {
  margin: 48px 0;
}
.cs-content .cs-media-img {
  width: 100%;
  background: #111;
  overflow: hidden;
}
.cs-content .cs-media-img img {
  width: 100%; display: block;
  object-fit: cover;
}
.cs-content .cs-media-img.ratio-16-9 { aspect-ratio: 16/9; }
.cs-content .cs-media-img.ratio-4-3  { aspect-ratio: 4/3; }
.cs-content .cs-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cs-content .cs-media-cap {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(0,0,0,0.35);
  margin-top: 10px;
}

/* video placeholder */
.cs-video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
  margin: 48px 0;
}
.cs-video-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.55;
}
.cs-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.cs-play-label {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  text-align: center;
}

/* execution step rows */
.cs-exec-row {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.cs-exec-row:first-of-type { border-top: 1px solid rgba(0,0,0,0.07); }
.cs-exec-num {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  color: rgba(0,0,0,0.2);
  flex-shrink: 0;
  width: 24px;
}
.cs-exec-type {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
  flex-shrink: 0;
  width: 140px;
}
.cs-exec-desc {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(0,0,0,0.6);
  line-height: 1.7;
}

/* ── NEXT BANNER ── */
.cs-next {
  background: #f2f2f2;
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border-top: 1.5px solid #e8e8e8;
  transition: background 0.2s;
}
.cs-next:hover { background: #eaeaea; }
.cs-next-label,
.cs-next-title {
  display: inline;
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  font-style: normal;
  line-height: 1;
  margin: 0;
}
.cs-next-arrow { display: none; }

/* ── CASE INSIGHT LISTING PAGE ── */
.cs-listing-hero {
  background: #fff;
  padding: 200px 0 80px;
  border-bottom: 1.5px solid #e8e8e8;
}
.cs-listing-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}
.cs-listing-hero h1 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin: 48px 0 28px;
}
.cs-listing-sub {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0,0,0,0.5);
  max-width: 600px;
}
.cs-listing-section {
  padding: 80px 0 120px;
}
.cs-listing-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}
.cs-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 24px;
}
.cs-listing-card {
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 3/4;
}
.cs-listing-card-img {
  position: absolute;
  inset: 0;
}
.cs-listing-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.cs-listing-card:hover .cs-listing-card-img img { transform: scale(1.04); }
.cs-listing-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 24px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
}
.cs-listing-card-tag {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.cs-listing-card-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 6px;
}
.cs-listing-card-sub {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}
.cs-listing-empty {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  color: rgba(0,0,0,0.4);
  padding: 60px 0;
}

/* next banner with thumbnail */
.cs-next-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cs-next-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  flex-shrink: 0;
}
.cs-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .cs-body-inner { grid-template-columns: 1fr; gap: 40px; }
  .cs-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 20px; }
  .cs-sidebar-block { border-bottom: none; margin-bottom: 0; padding-bottom: 0; padding-right: 24px; border-right: 1px solid #e8e8e8; }
  .cs-sidebar-block:last-child { border-right: none; }
}
@media (max-width: 900px) {
  .cs-listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cs-header { padding: 210px 0 56px; }
  .cs-header-inner { padding: 0 24px; }
  .cs-body-section { padding: 28px 0 80px; }
  .cs-body-inner { padding: 0 24px; }
  .cs-sidebar { flex-direction: column; }
  .cs-sidebar-block { border-right: none; padding-right: 0; border-bottom: 1px solid #e8e8e8; padding-bottom: 10px; margin-bottom: 10px; }
  .cs-content .cs-media-grid { grid-template-columns: 1fr; }
  .cs-next { padding: 48px 24px; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .cs-listing-hero { padding: 140px 0 60px; }
  .cs-listing-hero-inner, .cs-listing-inner { padding: 0 24px; }
  .cs-listing-grid { grid-template-columns: 1fr; gap: 40px; }
  .cs-next-left { gap: 16px; }
  .cs-next-thumb { width: 52px; height: 52px; }
}
