/* Case study page layout – mobile-first, enhanced for desktop */
.case-hero {
  position: relative;
  z-index: 1;
  padding: 7rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.case-back:hover {
  color: var(--cyan);
}
.case-hero .industry-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.case-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
.case-hero .hook {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.65;
  max-width: 42em;
}
.case-body {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.case-body section {
  margin-bottom: 2.5rem;
}
.case-body h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.case-body p {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.case-body p:last-child {
  margin-bottom: 0;
}
.case-quote {
  border-left: 3px solid var(--cyan);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted2);
  font-size: 0.95rem;
  line-height: 1.7;
}
.case-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.case-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: var(--black);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.case-cta a:hover {
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-2px);
}

/* Tablet */
@media (min-width: 600px) {
  .case-hero {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .case-body {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .case-hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.25rem);
  }
  .case-hero .hook {
    font-size: 1.1rem;
  }
  .case-body p {
    font-size: 1rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .case-hero {
    padding: 8rem 4rem 4rem;
    max-width: 860px;
  }
  .case-back {
    margin-bottom: 1.75rem;
    font-size: 0.82rem;
  }
  .case-hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1.25rem;
  }
  .case-hero .hook {
    font-size: 1.15rem;
    line-height: 1.7;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .case-body {
    padding: 0 4rem 6rem;
    max-width: 720px;
  }
  .case-body section {
    margin-bottom: 3rem;
  }
  .case-body h2 {
    font-size: 0.75rem;
    margin-bottom: 0.85rem;
  }
  .case-body p {
    font-size: 1.02rem;
    line-height: 1.8;
  }
  .case-cta {
    margin-top: 3.5rem;
    padding-top: 2.25rem;
  }
  .case-cta a {
    font-size: 0.95rem;
    padding: 1rem 2.25rem;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .case-hero {
    padding-top: 9rem;
    max-width: 900px;
  }
  .case-hero h1 {
    font-size: 3.5rem;
  }
  .case-body {
    max-width: 740px;
    padding-bottom: 7rem;
  }
}

/* Mobile */
@media (max-width: 599px) {
  .case-hero {
    padding-top: 6rem;
  }
}
