:root {
  --case-bg: #f2f2f2;
  --case-ink: #2d2d2f;
  --case-muted: #5f626a;
  --case-light: #e5e5e5;
  --case-red: #c6002b;
  --case-container: var(--hero-container-max);
}

body {
  background: var(--case-bg);
}

.case-page {
  color: var(--case-ink);
}

.case-container {
  width: min(100% - (var(--container-padding) * 2), var(--case-container));
  margin: 0 auto;
}

.case-hero {
  padding: clamp(4.5rem, 7vw, 7rem) 0 clamp(2.5rem, 4vw, 4rem);
}

.case-hero__title {
  max-width: 72rem;
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(20rem, 1.02fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
  padding: clamp(2.7rem, 4.8vw, 4.6rem) 0;
}

.case-section__copy,
.case-card__copy {
  position: relative;
  z-index: 1;
  padding-top: clamp(2.7rem, 4vw, 4rem);
}

.case-section__copy {
  min-height: 15.5rem;
}

.case-number {
  position: absolute;
  top: 0;
  left: -0.2rem;
  z-index: -1;
  color: var(--case-light);
  font-size: clamp(5rem, 8vw, 8.2rem);
  font-weight: 900;
  line-height: .78;
}

.case-title {
  max-width: 48rem;
  margin: 0 0 1.15rem;
  font-size: clamp(1.45rem, 2.15vw, 2.15rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-text {
  max-width: 48rem;
  margin: 0 0 1rem;
  color: var(--case-muted);
  font-size: 1rem;
  line-height: 1.48;
}

.case-link,
.case-project-link {
  display: inline-flex;
  align-items: center;
}

.case-link {
  gap: .55rem;
  margin-top: .6rem;
  color: var(--case-ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.case-link::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  background: var(--case-red);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20A10 10 0 0 0 12 2Zm6.9 9h-3.1a15.5 15.5 0 0 0-1.1-5A8.05 8.05 0 0 1 18.9 11ZM12 4.1c.7 1 1.5 3.1 1.8 6.9h-3.6c.3-3.8 1.1-5.9 1.8-6.9ZM4.1 13h3.1c.2 2 .6 3.7 1.1 5A8.05 8.05 0 0 1 4.1 13Zm3.1-2H4.1A8.05 8.05 0 0 1 8.3 6c-.5 1.3-.9 3-1.1 5ZM12 19.9c-.7-1-1.5-3.1-1.8-6.9h3.6c-.3 3.8-1.1 5.9-1.8 6.9Zm2.7-1.9c.5-1.3.9-3 1.1-5h3.1a8.05 8.05 0 0 1-4.2 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.case-link--file::before {
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Zm0 2v4h4M8 13h8M8 17h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.case-project-link {
  margin-top: .5rem;
  color: var(--case-muted);
  font-size: .9rem;
  text-decoration: none;
}

.case-link:hover,
.case-project-link:hover {
  color: var(--case-red);
}

.case-media {
  margin: 0;
}

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

.case-media--logo {
  display: grid;
  justify-items: center;
}

.case-logo-card {
  display: grid;
  place-items: center;
  width: min(24rem, 74vw);
  min-height: 12rem;
  padding: 1.5rem;
  background: #fff;
}

.case-logo-card img {
  max-width: 100%;
  max-height: 12rem;
  object-fit: contain;
}

.case-page--hunting .case-logo-card {
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.case-page--hunting .case-logo-card img {
  width: min(20.375rem, 56vw);
  max-width: 100%;
  max-height: none;
  height: auto;
}

.case-page--mediation .case-logo-card {
  width: min(24rem, 72vw);
  min-height: 0;
  padding: 1.75rem;
  background: transparent;
}

.case-page--mediation .case-logo-card img {
  width: min(15rem, 58vw);
  max-height: none;
  height: auto;
}

.case-page--mediation .case-hero__title {
  max-width: 1320px;
  font-size: clamp(30px, 2.4vw, 46px);
}

.case-page--mediation .case-media--mediation-game {
  display: grid;
  justify-items: center;
}

.case-page--mediation .case-media--mediation-game img {
  width: min(26.625rem, 100%);
  height: auto;
  filter: none;
}

.case-platform {
  display: grid;
  grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.48fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  margin-top: clamp(1rem, 2vw, 2rem);
  margin-bottom: clamp(1rem, 2vw, 2rem);
  padding: clamp(2rem, 3.8vw, 3.5rem);
  background: #e8e8e8;
  border-left: .25rem solid var(--case-red);
}

.case-platform__eyebrow {
  display: block;
  margin-bottom: .8rem;
  color: var(--case-red);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-platform__title {
  max-width: 24rem;
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.case-platform__text {
  max-width: 52rem;
  margin: 0 0 1.7rem;
  color: var(--case-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.case-platform__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-platform__benefit {
  padding-top: .95rem;
  border-top: 1px solid #c9c9c9;
}

.case-platform__benefit strong,
.case-platform__benefit span {
  display: block;
}

.case-platform__benefit strong {
  margin-bottom: .45rem;
  font-size: .85rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-platform__benefit span {
  color: var(--case-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.case-media--floating img {
  filter: drop-shadow(0 1.3rem 2.4rem rgba(0, 0, 0, .12));
}

.case-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  padding: clamp(2.7rem, 4.8vw, 4.6rem) 0 clamp(4.5rem, 6vw, 6.5rem);
}

.case-card {
  min-width: 0;
}

.case-card__copy {
  min-height: 14rem;
}

.case-card__media {
  margin-top: 1.4rem;
}

.case-card__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1.1rem 2rem rgba(0, 0, 0, .08));
}

.case-card__media--screen img {
  max-height: 48rem;
  object-position: top center;
}

.case-card__media--compact img {
  max-height: 22rem;
}

.case-page--hunting .case-card {
  display: flex;
  flex-direction: column;
}

.case-page--hunting .case-card__copy {
  min-height: 23.25rem;
  min-height: 370px;
}

.case-page--hunting .case-card__media--screen {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 48rem;
}

.case-page--hunting .case-card__media--screen img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
}

@media (max-width: 62rem) {
  .case-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .case-section__copy {
    min-height: 0;
  }

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

  .case-card__copy {
    min-height: 0;
  }

  .case-platform {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .case-page--hunting .case-card {
    display: block;
  }

  .case-page--hunting .case-card__copy {
    min-height: 0;
  }

  .case-page--hunting .case-card__media--screen {
    display: block;
    height: auto;
  }

  .case-page--hunting .case-card__media--screen img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 40rem) {
  .case-hero {
    padding-top: 3rem;
  }

  .case-section,
  .case-card-grid {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .case-title {
    font-size: 1.45rem;
  }

  .case-text {
    font-size: .96rem;
  }

  .case-logo-card {
    width: 100%;
    min-height: 9rem;
  }

  .case-platform {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1.75rem 1.5rem;
  }

  .case-platform__benefits {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

@media (min-width: 62.01rem) {
  .case-page--hunting .case-card__copy {
    min-height: 370px !important;
  }

  .case-page--hunting .case-card__media--screen {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    height: 768px !important;
  }

  .case-page--hunting .case-card__media--screen img {
    width: auto !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
  }
}
