/* Individual case study pages — /work/:slug */

html,
body.case-study-page {
  overflow-x: hidden;
  overflow-y: auto;
  font-family: "Roboto", sans-serif;
  background: #000;
  color: #fff;
}

.case-study-page nav.glassy-nav,
.case-study-page nav.glassy-nav a,
.case-study-page .home-link {
  font-family: "Bebas Neue", cursive !important;
}

.case-study {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.case-back {
  display: inline-block;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.case-back:hover {
  color: var(--project-accent, #00f9fd);
}

.case-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.case-hero__logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.case-study-page--stats-fan .case-hero__logo {
  width: min(240px, 72vw);
  height: auto;
  aspect-ratio: 648 / 295;
}

.case-hero h1 {
  font-family: "Bebas Neue", cursive;
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.case-hero__tagline {
  font-size: 1.2rem;
  line-height: 1.65;
  opacity: 0.85;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.case-hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.case-hero__link {
  display: inline-block;
  font-family: "Bebas Neue", cursive;
  font-size: 1.5rem;
  color: #000;
  background: var(--project-accent, #00f9fd);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.case-hero__link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.case-study-page--stats-fan .case-hero__link {
  color: #0a1218;
}

.case-study-page--stats-fan .case-back:hover,
.case-study-page--stats-fan .case-section__number,
.case-study-page--stats-fan .case-stat__value,
.case-study-page--stats-fan .case-tech__tag {
  color: var(--project-accent);
}

.case-study-page--stats-fan .case-tech__tag {
  border-color: rgba(132, 230, 229, 0.35);
  background: rgba(132, 230, 229, 0.08);
}

.case-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.case-media--inline {
  margin-top: 1.5rem;
  margin-bottom: 0;
  gap: 1.25rem;
}

.case-section > .case-media--inline {
  margin-bottom: 0.5rem;
}

.case-media__item {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.case-media__item img {
  display: block;
  width: 100%;
  height: auto;
}

.case-media__caption {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}

.case-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.case-stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--project-accent, #00f9fd);
  margin-bottom: 0.35rem;
}

.case-stat__label {
  font-size: 0.8rem;
  opacity: 0.7;
  font-weight: 300;
}

.case-section {
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-section:last-of-type {
  border-bottom: none;
}

.case-section__number {
  font-family: "Bebas Neue", cursive;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--project-accent, #00f9fd);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.case-section__tags {
  margin-bottom: 1.5rem;
}

.case-section__text {
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.88;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.case-subsection {
  margin-top: 2.5rem;
}

.case-subsection h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #fff;
}

.case-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.case-tech__tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--project-accent, #00f9fd);
  background: rgba(255, 255, 255, 0.04);
}

.case-quote {
  margin-top: 2rem;
  padding: 2rem 2.5rem;
  border-left: 3px solid var(--project-accent, #00f9fd);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 12px 12px 0;
}

.case-quote p {
  font-size: 1.15rem;
  line-height: 1.65;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 1rem;
}

.case-quote cite {
  font-size: 0.85rem;
  opacity: 0.6;
  font-style: normal;
}

.case-footer {
  text-align: center;
  padding-top: 2rem;
}

.case-footer__role {
  font-size: 0.95rem;
  opacity: 0.65;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  .case-study {
    padding: 1.5rem 1rem 3rem;
  }

  .case-hero h1 {
    font-size: 3rem;
  }

  .case-stats {
    grid-template-columns: 1fr 1fr;
  }
}
