/* CASE STUDY PAGES */

.breadcrumb { display: block; padding: 20px 20px 0; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.breadcrumb:hover { color: var(--accent); }

.cs-hero { max-width: 760px; margin: 0 auto; padding: 32px 20px 20px; text-align: center; }
.cs-hero .eyebrow { margin-bottom: 14px; }
.cs-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin-bottom: 16px; }
.cs-hero .lead { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); max-width: 600px; margin: 0 auto 28px; }
.cs-hero .hero-ctas { margin-bottom: 8px; }

.cs-meta-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px; max-width: 720px; margin: 28px auto 0; text-align: left;
}
@media (min-width: 640px) { .cs-meta-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.cs-meta-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.cs-meta-value { font-size: 14px; font-weight: 600; line-height: 1.4; }

.cs-cover {
  max-width: 1080px; margin: 40px auto 0; padding: 0 20px;
}

.cs-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--border); border-radius: 20px; background: var(--surface);
  color: var(--text-muted); font-size: 13.5px; font-weight: 600; text-align: center;
  padding: 48px 20px; min-height: 220px;
}
.cs-placeholder .cs-placeholder-icon { font-size: 26px; }
.cs-placeholder small { font-weight: 400; font-size: 12.5px; max-width: 380px; }

.cs-cover img, .cs-shot {
  display: block; width: 100%; border-radius: 20px; border: 1px solid var(--border);
}
.cs-shot { object-fit: cover; cursor: zoom-in; transition: opacity 150ms ease; }
.cs-plain-img { display: block; width: 100%; }
.cs-shot:hover { opacity: 0.88; }
.cs-gallery-3 .cs-shot { aspect-ratio: 4 / 3; object-position: top center; height: 100%; }
.cs-tall-shot { max-width: 380px; margin: 0 auto; }
figure.cs-figure { margin: 0; }
figure.cs-figure figcaption {
  margin-top: 10px; font-size: 13px; color: var(--text-muted); text-align: center;
}

.cs-section { max-width: 760px; margin: 0 auto; padding: 48px 20px 0; }
.cs-section-title { font-size: 22px; margin-bottom: 16px; }
.cs-section p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin: 0 0 14px; }
.cs-section ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-muted); font-size: 15px; line-height: 1.7; }
.cs-section ul li { margin-bottom: 4px; }

.cs-phase-label {
  display: inline-block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; background: rgba(255,90,31,0.08);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 8px;
}
.cs-shot + .cs-phase-label, .cs-plain-img + .cs-phase-label, .cs-gallery + .cs-phase-label, .cs-gallery-3 + .cs-phase-label {
  margin-top: 24px;
}

.cs-quote {
  border-left: 3px solid var(--accent); padding: 2px 0 2px 18px;
  font-size: 17px; font-style: italic; color: var(--text); margin: 8px 0 20px;
}
.cs-quote cite { display: block; margin-top: 8px; font-size: 12.5px; font-style: normal; color: var(--text-muted); }

.cs-feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 4px 0 14px; }
@media (min-width: 640px) { .cs-feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.cs-feature { border-top: 1px solid var(--border); padding-top: 14px; }
.cs-feature h3 { font-size: 15px; margin-bottom: 6px; }
.cs-feature p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

.cs-todo {
  border: 1px dashed var(--accent); background: rgba(255,90,31,0.06); border-radius: 14px;
  padding: 14px 18px; font-size: 13.5px; line-height: 1.55; color: var(--text); margin: 0 0 14px;
}
.cs-todo b { color: var(--accent); }

.cs-summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cs-summary-list li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.cs-summary-list b { color: var(--text); font-weight: 600; min-width: 108px; flex-shrink: 0; }

.cs-decision-grid { display: flex; flex-direction: column; gap: 16px; }
.cs-decision-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; }
.cs-decision-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.cs-decision-card .cs-decision-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.cs-decision-card .cs-decision-row:last-child { margin-bottom: 0; }
.cs-decision-card .cs-decision-label { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.cs-decision-card p { margin: 0; font-size: 14px; }

.cs-gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cs-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.cs-gallery-match .cs-shot { aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }

.cs-row-2 { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; margin: 4px 0 14px; }
@media (min-width: 640px) { .cs-row-2 { grid-template-columns: 1fr 240px; } }
.cs-row-2 p { margin: 0 0 12px; }
.cs-row-2 p:last-child { margin-bottom: 0; }
.cs-row-2 img { max-width: 240px; width: 100%; margin: 0 auto; }

.cs-gallery-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cs-gallery-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.cs-learnings { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .cs-learnings { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.cs-learnings-col h3 { font-size: 14px; margin-bottom: 10px; }
.cs-learnings-col ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }

.cs-palette-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; margin: 4px 0 20px; }
@media (min-width: 640px) { .cs-palette-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cs-color-scale { height: 34px; border-radius: 8px; border: 1px solid var(--border); }
.cs-palette-name { font-size: 12.5px; font-weight: 600; margin: 8px 0 2px; }
.cs-palette-hex { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cs-brand-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; font-size: 14.5px; margin-bottom: 20px;
}

.cs-next {
  max-width: 760px; margin: 56px auto 0; padding: 0 20px 90px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 28px;
}

/* LIGHTBOX (click to enlarge cs-shot images) */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgb(10,9,8); z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 56px 20px 40px;
  opacity: 0; visibility: hidden; transition: opacity 180ms ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: min(96vw, 1400px); max-height: 80vh; width: auto; border-radius: 14px; object-fit: contain; cursor: zoom-in; }
.lightbox-overlay.zoomed { align-items: flex-start; justify-content: flex-start; overflow: auto; }
.lightbox-overlay.zoomed img { max-width: none; max-height: none; width: auto; cursor: zoom-out; margin: 0 auto; }
.lightbox-caption { color: #F4F1EA; font-size: 14.5px; line-height: 1.5; text-align: center; max-width: 640px; margin: 0; }
.lightbox-caption:empty { display: none; }
.lightbox-overlay.zoomed .lightbox-caption { display: none; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(244,241,234,0.12); border: none; color: #F4F1EA; font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif;
  z-index: 1;
}
.lightbox-close:hover { background: rgba(244,241,234,0.22); }
