body.single-project {
  background: var(--brand-black);
}

body.single-project #AppMain {
  color: var(--brand-white);
}

.case-study {
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 9vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.case-study h1,
.case-study h2 {
  color: var(--brand-white);
}

.case-study p {
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.45;
  margin: 0;
}

.case-study__text,
.case-study__hero-copy,
.case-study__feature-copy,
.case-study__footer-copy {
  width: min(100%, 38rem);
}

.case-study__text h2,
.case-study__feature-copy h2,
.case-study__footer h2,
.case-study__next h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
}

.case-study__text {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.case-study__hero {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2rem, 6vw, 5rem);
}

.case-study__hero-copy,
.case-study__text,
.case-study__feature-copy,
.case-study__footer,
.case-study__testimonial,
.case-study__results {
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.case-study__hero h1 {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.case-study__hero-line {
  max-width: 28ch;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.case-study__services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.case-study__services li:not(:last-child)::after {
  content: "·";
  margin: 0 0.55rem;
}

.case-study__frame {
  line-height: 0;
}

.case-study__frame img,
.case-study__frame video,
.case-study__video {
  display: block;
  width: 100%;
  height: auto;
  background: #1a1919;
}

.case-study__media--full .case-study__frame img,
.case-study__media--full .case-study__frame video {
  width: 100%;
  max-height: 92vh;
  object-fit: cover;
}

.case-study__feature {
  display: grid;
  grid-template-columns: minmax(16rem, 28rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.case-study__feature--right {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem);
}

.case-study__feature--right .case-study__feature-copy {
  order: 2;
}

.case-study__feature--text {
  display: block;
  padding-right: 0;
}

.case-study__feature-copy .case-study__text {
  width: 100%;
  margin-bottom: 0;
}

.case-study__feature-media .case-study__frame img,
.case-study__feature-media .case-study__frame video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
}

.case-study__results {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 5rem);
}

.case-study__stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
}

.case-study__stat strong {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.case-study__stat span {
  max-width: 12rem;
  font-size: 1rem;
  line-height: 1.3;
}

.case-study__grid {
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.case-study__media-grid--two .case-study__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-study__media-grid--three .case-study__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-study__grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.case-study__composition {
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.case-study__composition-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: end;
}

.case-study__frame--desktop img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.case-study__devices {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: flex-end;
}

.case-study__devices--row {
  justify-content: center;
  flex-wrap: wrap;
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.case-study__device {
  width: clamp(9rem, 16vw, 16rem);
  border-radius: 1.4rem;
  overflow: hidden;
  line-height: 0;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.case-study__device img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}

.case-study__testimonial {
  width: min(100%, 46rem);
}

.case-study__testimonial blockquote {
  margin: 0;
}

.case-study__testimonial blockquote p {
  font-family: var(--pretty-font);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0;
}

.case-study__testimonial blockquote p::before {
  content: "“";
}

.case-study__testimonial blockquote p::after {
  content: "”";
}

.case-study__attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.case-study__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.case-study__visit {
  color: var(--brand-white);
  text-decoration: none;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

.case-study__next {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--brand-white);
  text-decoration: none;
  padding-left: clamp(1.25rem, 4vw, 4rem);
  padding-right: clamp(1.25rem, 4vw, 4rem);
}

.case-study__next > span {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-study__next h2 {
  margin: 0;
}

.case-study__next .case-study__frame img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .case-study__feature,
  .case-study__feature--right {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .case-study__feature--right .case-study__feature-copy {
    order: 0;
  }

  .case-study__media-grid--two .case-study__grid,
  .case-study__media-grid--three .case-study__grid,
  .case-study__composition-stage {
    grid-template-columns: 1fr;
  }

  .case-study__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-study__devices--row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}
