/* ============================================
   STELLA ZUBECK — Case Study Styles
   ============================================ */

/* ── Case study hero ─────────────────────── */
.cs-hero {
  padding: 24px 0 48px;
  margin-bottom: 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 24px;
}

.cs-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 10px;
  margin-right: 8px;
}

.cs-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 100%;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid hsl(0,0%,85%);
}

.cs-brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 48px;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid hsl(0,0%,85%);
  max-width: 100%;
}

.cs-brief-item {}

.cs-brief-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.cs-brief-value {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.4;
}

/* ── Case study body ─────────────────────── */
.cs-body {
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 100px;
}

.cs-section {
  margin-bottom: 40px;
}

.cs-section-title {
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid hsl(0,0%,85%);
  text-align: left;
  display: block;
  width: 100%;
}

.cs-body h2.cs-section-title { font-size: 1.0rem; text-align: left; }

.cs-body p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 20px;
}

.cs-body p:last-child { margin-bottom: 0; }

.cs-body a {
  color: var(--blue);
  border-bottom: 1px solid var(--blue-light);
  transition: border-color var(--transition);
}
.cs-body a:hover { border-color: var(--blue); }

.cs-body strong { font-weight: 700; }
.cs-body p.cs-concept-title {
  font-weight: 700;
  text-align: center;
}
.cs-body strong.cs-label { font-weight: 700; }

.cs-workshop {
  margin: 16px 0;
}
.cs-workshop p {
  margin-bottom: 4px;
}
.cs-workshop p:last-child {
  margin-bottom: 0;
}
.cs-workshop .cs-takeaways {
  margin: 2px 0 0;
  padding-left: 18px;
  gap: 1px;
}
.cs-workshop .cs-takeaway {
  font-size: 1rem;
  line-height: 1.3;
}
.cs-workshop .cs-takeaway::before {
  margin-top: 7px;
}

.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 20px;
}
.cs-split figure { margin: 0; }
.cs-split img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-old-loading {
  margin-bottom: 40px;
}
.cs-old-loading img {
  width: 75%;
  height: auto;
}

.cs-video-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: start;
}
.cs-video-copy {
  min-width: 0;
}
.cs-video {
  border-radius: 8px;
  overflow: hidden;
  background: hsl(0,0%,97%);
}
.cs-video iframe {
  display: block;
  width: 100%;
  height: 305px;
  border: 0;
}
.cs-loading-video {
  width: 75%;
  aspect-ratio: 362 / 360;
  margin: 24px auto 28px;
}
.cs-loading-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs-col-75 {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Pull quote ────────────────────────── */
.cs-quote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--blue);
  background: var(--blue-light);
}

.cs-quote p {
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.cs-tight-below {
  margin-bottom: 8px;
}
.cs-tight-below + .cs-quote {
  margin-top: 0;
}
.cs-quotes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.cs-quotes .cs-quote {
  margin: 0;
}
.cs-quotes .cs-images {
  margin: 0;
}
.cs-quotes .cs-concept-title {
  margin: 0;
}

/* ── Key takeaways / bullet list ─────── */
.cs-takeaways {
  margin: 16px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-takeaway-heading {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 16px 0 4px -24px;
}

.cs-takeaway-heading:first-child {
  margin-top: 0;
}

.cs-takeaway {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--text);
}

.cs-takeaway::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-mid);
  margin-top: 8px;
}

.cs-takeaway-subs {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 36px;
  margin-bottom: 4px;
}

.cs-takeaway-subs .cs-takeaway {
  line-height: 1.15;
}

/* ── Image grid ────────────────────── */
.cs-images {
  margin: 40px 0;
  display: grid;
  gap: 2px;
}
.cs-images.cs-tight-top {
  margin-top: 8px;
}

.cs-images.cols-1 { grid-template-columns: 1fr; }
.cs-images.cols-2 { grid-template-columns: 1fr 1fr; }
.cs-images.cs-gapped { gap: 16px; }
.cs-images.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cs-images.cols-3.cs-same-height img,
.cs-images.cols-4.cs-same-height img {
  object-fit: cover;
}
.cs-images.cols-2.cs-same-height img {
  aspect-ratio: 1280 / 714;
  object-fit: contain;
  background: none;
}
.cs-images.cols-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cs-images.cols-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cs-images.cols-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cs-images.cs-same-height img {
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: top center;
  background: none;
}

.cs-images img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--blue-light);
}

.cs-images.cs-fit img {
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top center;
  height: auto;
  background: none;
  border-radius: 8px;
  transition: border-color 0.25s ease;
}

.cs-images.cs-fit .cs-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.cs-images.cs-fit .cs-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
}
.cs-images.cs-fit .cs-thumb:hover,
.cs-images.cs-fit .cs-thumb:active {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cs-images.cs-fit .cs-thumb:hover::after,
.cs-images.cs-fit .cs-thumb:active::after {
  background: hsla(218, 45%, 30%, 0.10);
}
.cs-page .cs-images.cs-fit .cs-thumb:hover img,
.cs-page .cs-images.cs-fit .cs-thumb:active img {
  border-color: hsl(0,0%,72%);
}

.cs-page .cs-body img,
.cs-page .cs-img-col img,
.cs-page .cs-float-img img {
  border: 1px solid hsl(218, 12%, 88%);
}
.cs-page .cs-hero-img img,
.cs-page .cs-no-border img,
.cs-page #lightbox-img {
  border: none;
}

.cs-images.cs-crop img {
  height: auto;
  aspect-ratio: 2356 / 1829;
  object-fit: cover;
  object-position: top center;
}

.cs-images.cs-captioned {
  gap: 24px;
}
.cs-images figure {
  margin: 0;
}
.cs-images figcaption {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
}
.cs-images figcaption strong {
  font-weight: 700;
}

.cs-images img.cs-tall {
  width: auto;
  max-height: 640px;
  margin-inline: auto;
}

.cs-image-caption {
  font-size: 0.75rem;
  color: var(--text);
  font-style: normal;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ── Hero image (full bleed within body) */
.cs-hero-img {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  margin-bottom: 56px;
  background: var(--blue-light);
}

.cs-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Results callout ───────────────── */
.cs-result {
  margin: 48px 0;
  padding: 36px 40px;
  border: 1px solid var(--rule);
  background: hsl(218, 25%, 97%);
}

.cs-result-label {
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  text-align: left;
}

.cs-result p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.4;
}

/* ── Back to work nav ────────────── */
.cs-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  margin-top: 112px;
  flex-wrap: wrap;
  gap: 16px;
}

.cs-back {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--transition);
}
.cs-back:hover { color: var(--blue); }

.cs-next {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color var(--transition);
}
.cs-next:hover { color: hsl(218, 45%, 28%); }

/* ── NDA / limited content notice ── */
.cs-nda {
  margin: 16px 0;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-light);
  font-style: italic;
}

@media (max-width: 600px) {
  .cs-images.cols-2,
  .cs-images.cols-3,
  .cs-images.cols-4,
  .cs-images.cols-5,
  .cs-images.cols-6,
  .cs-split,
  .cs-carousel-pair {
    grid-template-columns: 1fr;
  }
  .cs-carousel-pair > div {
    display: block;
    grid-row: auto;
  }
  .cs-video-row { grid-template-columns: 1fr; }
  .cs-video iframe { height: 220px; }
  .cs-hero h1 { font-size: 1.7rem; }
  .cs-body { padding-bottom: 60px; }
  .cs-result { padding: 24px; }
}

.cs-old-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 8px;
}
.cs-old-dash-copy p { margin-bottom: 6px; }
.cs-old-dash-copy .cs-takeaways { margin: 22px 0 0; }
.cs-old-dash figure {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
}
.cs-old-dash img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 600px) {
  .cs-old-dash { grid-template-columns: 1fr; }
  .cs-old-dash img { height: auto; }
}

/* ── Text wrapping a floated image ───────── */
.cs-float-wrap::after {
  content: "";
  display: block;
  clear: both;
}

.cs-float-img {
  float: left;
  width: 42%;
  height: auto;
  margin: 4px 28px 8px 0;
}
figure.cs-float-img {
  margin: 4px 28px 8px 0;
}
figure.cs-float-img img {
  width: 100%;
  height: auto;
  display: block;
}
.cs-float-img.cs-float-right {
  float: right;
  margin: 4px 0 12px 16px;
}

.cs-float-carousel {
  float: right;
  width: 46%;
  margin: 4px 0 12px 16px;
}
.cs-float-carousel .cs-carousel-slide {
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .cs-float-img,
  .cs-float-img.cs-float-right,
  .cs-float-carousel {
    float: none;
    width: 100%;
    margin: 0 0 20px;
  }
}

/* ── Text + image side by side ───────────── */
.cs-text-image {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.cs-text-col {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-img-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}

.cs-img-col img {
  width: 100%;
  flex: 1;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 600px) {
  .cs-text-image { flex-direction: column; }
  .cs-img-col img { height: auto; }
}

/* Carousel */
.cs-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}
.cs-carousel-track {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}
.cs-carousel-slide {
  display: none !important;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: hsl(0,0%,97%);
}
.cs-carousel-slide.active {
  display: block !important;
}
.cs-carousel-wide {
  justify-content: center;
  margin-bottom: 40px;
}
.cs-carousel-wide .cs-carousel-track {
  flex: 0 1 auto;
  width: auto;
  max-width: calc(100% - 88px);
}
.cs-carousel-wide .cs-carousel-slide {
  width: auto;
  max-width: 100%;
  height: 240px;
}
.cs-carousel-75 {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}
.cs-carousel-75 .cs-carousel-track {
  flex: 1;
  max-width: none;
}
.cs-carousel-75 .cs-carousel-slide {
  width: 100%;
  height: auto;
}
.cs-carousel-column {
  margin-bottom: 40px;
}
.cs-carousel-column .cs-carousel-track {
  flex: 1;
}
.cs-carousel-column .cs-carousel-slide {
  width: 100%;
  height: auto;
}
.cs-carousel-column .cs-carousel-slide.cs-tall {
  width: auto;
  max-width: 100%;
  max-height: 640px;
  margin-inline: auto;
}
.cs-carousel-column.cs-carousel-match .cs-carousel-slide {
  height: 460px;
  object-fit: contain;
}
.cs-carousel-column.cs-carousel-match .cs-carousel-slide.cs-crop {
  object-fit: cover;
  object-position: top center;
}
.cs-carousel-column.cs-carousel-cap {
  margin-bottom: 80px;
}
.cs-carousel-column.cs-carousel-cap .cs-carousel-slide,
.cs-carousel-column.cs-carousel-cap .cs-carousel-slide.cs-tall {
  width: 100%;
  height: 400px;
  max-height: 400px;
  object-fit: contain;
  margin-inline: 0;
}
.cs-carousel-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  margin-bottom: 48px;
}
.cs-carousel-pair > div {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  min-width: 0;
}
.cs-carousel-pair .cs-carousel-column.cs-carousel-cap {
  margin-bottom: 0;
}
.cs-carousel-pair .cs-carousel-column.cs-carousel-cap .cs-carousel-slide,
.cs-carousel-pair .cs-carousel-column.cs-carousel-cap .cs-carousel-slide.cs-tall {
  height: 280px;
  max-height: 280px;
}
.cs-carousel-btn {
  background: none;
  border: 1px solid hsl(0,0%,80%);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.cs-carousel-btn:hover { border-color: var(--blue); color: var(--blue); }
#lightbox-prev,
#lightbox-next {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
