/* CASE STUDY STYLES */

.cs-main {
  padding-top: var(--nav-height);
}

/* HEADER */
.cs-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}

.cs-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cs-year {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.cs-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cs-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* HERO IMAGE */
.cs-hero-img {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 0;
}

/* OVERVIEW */
.cs-overview {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cs-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.cs-overview-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cs-meta-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.cs-meta-value {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* SECTIONS */
.cs-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.cs-section--highlight {
  background: #f5f4f0;
  max-width: 100%;
  border-bottom: 1px solid var(--color-border);
}

.cs-section--highlight .cs-text-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.cs-section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.cs-text-block {
  max-width: 560px;
}

.cs-text-block--wide {
  max-width: 100%;
  margin-bottom: 2.5rem;
}

.cs-body {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

.cs-pullquote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--color-text);
  border: none;
  padding: 0;
  margin: 0;
  max-width: 700px;
}

/* TWO COLUMN */
.cs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cs-two-col--reverse {
  direction: rtl;
}

.cs-two-col--reverse > * {
  direction: ltr;
}

/* PILLARS */
.cs-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.cs-pillar {
  background: var(--color-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-pillar-num {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.cs-pillar-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cs-pillar-body {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* FULL WIDTH IMAGE */
.cs-full-img {
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 0;
}

/* IMPACT */
.cs-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: 2rem;
}

.cs-impact-item {
  background: var(--color-bg);
  padding: 2rem;
}

.cs-impact-text {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.cs-impact-stat {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

/* NEXT PROJECT */
.cs-next {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cs-next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--color-text);
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: opacity 0.15s;
}

.cs-next-link:hover {
  opacity: 0.6;
}

.cs-next-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0;
}

.cs-next-arrow {
  font-size: 1.5rem;
}

/* HERO VIDEO */
.video-player {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.cs-hero-video {
  width: 100%;
  display: block;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-player:hover .video-controls {
  opacity: 1;
}

.video-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #fff;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.video-btn svg {
  width: 14px;
  height: 14px;
}

.video-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.video-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s linear;
}

.video-time {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* CASE STUDY IMAGES */
.cs-img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.cs-img--wide {
  border-radius: 0;
}

/* IMAGE PLACEHOLDERS */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #eeede9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.img-placeholder--tall {
  aspect-ratio: 16 / 7;
}

.img-placeholder--wide {
  aspect-ratio: 21 / 9;
  border-radius: 0;
}

.img-placeholder--square {
  aspect-ratio: 1 / 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cs-header {
    padding: 3rem 1.25rem 2rem;
  }

  .cs-hero-img {
    padding: 0 1.25rem;
  }

  .cs-overview {
    padding: 2rem 1.25rem;
  }

  .cs-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .cs-section {
    padding: 3rem 1.25rem;
  }

  .cs-section--highlight .cs-text-block {
    padding: 0 1.25rem;
  }

  .cs-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cs-two-col--reverse {
    direction: ltr;
  }

  .cs-pillars {
    grid-template-columns: 1fr;
  }

  .cs-impact-grid {
    grid-template-columns: 1fr;
  }

  .cs-impact-item {
    padding: 1.5rem;
  }

  .cs-full-img {
    padding: 0;
  }

  .cs-next {
    padding: 3rem 1.25rem;
  }

  .cs-next-title {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }

  .cs-pullquote {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .cs-overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .cs-pillars {
    grid-template-columns: 1fr;
  }

  .cs-impact-grid {
    grid-template-columns: 1fr;
  }

  .cs-header {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .cs-section {
    padding: 2.5rem 1.25rem;
  }
}
