/* =============================================================
   PUBLEX — Work / Case Studies Page Styles
   ============================================================= */

/* ─── Case Study Header ──────────────────────────────────────── */
.case-study__kicker {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.case-study__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.case-study__client {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
}

.case-study__meta-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.case-meta__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.case-meta__value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
}

/* ─── Case Study Image ───────────────────────────────────────── */
.case-study__image {
  width: 100%;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  box-sizing: border-box;
}

.case-study__image img {
  max-width: 720px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.5));
}

/* ─── Case Study Body ────────────────────────────────────────── */
.case-study__body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
  margin-top: 3.5rem;
  align-items: start;
}

/* ─── Narrative ──────────────────────────────────────────────── */
.narrative-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.narrative-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.narrative-block p {
  font-size: 0.95rem;
  color: var(--grey-l);
  line-height: 1.75;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.case-study__sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-list li {
  font-size: 0.85rem;
  color: var(--grey-l);
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5;
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  margin-top: -3px;
}

.sidebar-cta {
  background: rgba(245,200,0,0.04);
  border: 1px solid var(--border-y);
  padding: 1.5rem;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .case-study__body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .case-study__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .case-study__title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
