/* ============================================
   CASE STUDY — visual design & layout
   ============================================ */

/* READING PROGRESS BAR */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 2px; width: 0%;
  background: var(--gold);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* BACK LINK — inside hero */
.cs-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  text-decoration: none; margin-bottom: 2rem;
  letter-spacing: 0.04em; transition: color 0.15s;
}
.cs-back:hover { color: var(--gold); }
.cs-back svg { width: 14px; height: 14px; }

/* HERO — dark typographic */
.cs-hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.cs-hero-illustration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 560px;
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
.cs-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.65rem;
}
.cs-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18em 0.55em;
  border-radius: 2px;
}
.cs-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: #fff; max-width: 700px; margin-bottom: 1.25rem;
}
.cs-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.6);
  max-width: 560px; line-height: 1.75;
}

/* META BAR */
.cs-meta-bar {
  background: var(--surface);
  border-bottom: 0.5px solid var(--rule);
  padding: 1.5rem 0;
}
.cs-meta-bar .wrap { display: flex; gap: 3rem; flex-wrap: wrap; }
.cs-meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.cs-meta-label {
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-light);
}
.cs-meta-value { font-size: 0.9rem; color: var(--ink); font-weight: 500; }
.cs-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.1rem; }

/* BODY — white background, constrained prose */
.cs-body {
  background: var(--white);
  padding: 4rem 0 6rem;
}
.cs-prose {
  max-width: 720px;
  margin: 0 auto;
}

/* TYPOGRAPHY */
.cs-prose h2 {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 400;
  color: var(--ink); margin: 3rem 0 1rem; line-height: 1.25;
}
.cs-prose h3 {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-light); margin: 2rem 0 0.75rem;
}
.cs-prose p {
  font-size: 1rem; color: var(--ink-mid); line-height: 1.85; margin-bottom: 1.1rem;
}
.cs-prose p:last-child { margin-bottom: 0; }
.cs-prose strong { color: var(--ink); font-weight: 500; }
.cs-prose ul, .cs-prose ol {
  margin: 0.75rem 0 1.1rem 1.25rem;
  color: var(--ink-mid); font-size: 1rem; line-height: 1.85;
}
.cs-prose li + li { margin-top: 0.5rem; }
.cs-prose em { font-style: italic; }

/* SECTION STEP */
.cs-step {
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold-deep);
  margin-bottom: 1.75rem;
}
.cs-step h3 { margin-top: 0; }

/* IMPACT / CALLOUT BLOCK */
.cs-impact {
  background: var(--navy);
  border-radius: 6px; padding: 2rem 2.25rem; margin: 2.5rem 0;
}
.cs-impact-label {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}
.cs-impact p {
  color: rgba(255,255,255,0.85); font-size: 1rem; line-height: 1.8; margin: 0;
}

/* IMAGES */
.cs-figure {
  margin: 2.5rem 0;
}
.cs-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 0.5px solid var(--rule);
}
.cs-figure figcaption {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 0.65rem;
  text-align: center;
  letter-spacing: 0.01em;
}
.cs-figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}
.cs-figure-pair figure {
  margin: 0;
}
.cs-figure-pair img {
  width: 100%; height: auto; display: block;
  border-radius: 6px; border: 0.5px solid var(--rule);
}
.cs-figure-pair figcaption {
  font-size: 0.75rem; color: var(--ink-light);
  margin-top: 0.5rem; text-align: center;
}

/* DIVIDER */
.cs-divider { border: none; border-top: 0.5px solid var(--rule); margin: 2.75rem 0; }

/* PREV/NEXT BAR */
.cs-nav-bar {
  background: var(--surface);
  border-top: 0.5px solid var(--rule);
  padding: 2rem 0;
}
.cs-nav-bar .wrap { display: flex; justify-content: space-between; align-items: center; }
.cs-nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--ink-mid);
  text-decoration: none; transition: color 0.15s;
}
.cs-nav-link:hover { color: var(--navy); }
.cs-nav-link svg { width: 14px; height: 14px; }

/* FOOTER on case study pages */
.cs-footer { background: var(--white); }

@media (max-width: 600px) {
  .cs-hero { padding: 3.5rem 0 3rem; }
  .cs-meta-bar .wrap { gap: 1.5rem; }
  .cs-prose { padding: 0; }
}
