/* ============================================================
   CASE STUDY — Short (Split Layout + Slideshow)
   ============================================================ */

.cs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--white);
}

/* Left: Context */
.cs-context {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 64px 80px;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(13,27,42,0.35);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.2s;
}

.cs-back:hover { color: var(--burgundy); }

.cs-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 20px;
}

.cs-context h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 24px;
}

.cs-context p {
  font-size: 17px;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 40px;
}

.cs-meta {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cs-meta-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--burgundy);
  margin-bottom: 10px;
}

.cs-meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--navy);
}

.cs-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-service-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--offwhite);
  color: var(--charcoal);
}

/* Right: Slideshow */
.cs-slideshow-wrap {
  position: relative;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.slideshow-track {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slideshow-slide.active { opacity: 1; }

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  position: relative;
  z-index: 2;
  background: var(--navy);
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.slideshow-dot.active {
  background: var(--amber);
  transform: scale(1.2);
}

.slideshow-dot:hover { background: rgba(255,255,255,0.5); }
.slideshow-dot.active:hover { background: var(--amber); }

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.slideshow-arrow:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.slideshow-arrow.prev { left: 12px; }
.slideshow-arrow.next { right: 12px; }

.slideshow-progress {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.slideshow-progress-bar {
  height: 100%;
  background: var(--amber);
  width: 0%;
  transition: width 0.1s linear;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}

.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
}

/* CTA */
.cs-cta {
  background: var(--cream);
  padding: 80px 64px;
  text-align: center;
}

.cs-cta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.cs-cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  margin-bottom: 32px;
}

.cs-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cs-cta .btn-secondary {
  color: var(--navy);
  border-color: var(--navy);
}

.cs-cta .btn-secondary:hover {
  background: rgba(13,27,42,0.06);
}

/* Responsive */
@media (max-width: 900px) {
  .cs-split { grid-template-columns: 1fr; min-height: auto; }
  .cs-context { padding: 100px 24px 48px; order: 1; }
  .cs-slideshow-wrap { order: 2; min-height: 50vh; }
  .slideshow-arrow { width: 34px; height: 34px; font-size: 14px; }
  .slideshow-arrow.prev { left: 6px; }
  .slideshow-arrow.next { right: 6px; }
  .cs-cta { padding: 64px 24px; }
  .cs-meta { gap: 24px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 16px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}
