/* Shared styles for Custom HTML inserted into standard WordPress Posts. */
.bvp-case-study {
  --case-ink: #202020;
  --case-paper: #fff;
  overflow: hidden;
  background: #c7afa3;
  color: var(--case-ink);
  font-family: "Courier New", Courier, monospace;
}

.bvp-case-study,
.bvp-case-study *,
.bvp-case-study *::before,
.bvp-case-study *::after {
  box-sizing: border-box;
}

.bvp-case-study .hupr-section {
  position: relative;
  min-height: 112vh;
  overflow: hidden;
  isolation: isolate;
  background: #101010;
}

.bvp-case-study .hupr-section::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.62) 0%, rgba(16, 16, 16, 0.38) 18%, rgba(16, 16, 16, 0.16) 48%, rgba(16, 16, 16, 0.64) 100%);
  pointer-events: none;
}

.bvp-case-study .hupr-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bvp-case-study .case-hero-copy {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 4vw, 72px);
  bottom: clamp(80px, 11vw, 150px);
  left: clamp(20px, 4vw, 72px);
  display: grid;
  gap: clamp(12px, 1.4vw, 24px);
  min-width: 0;
  color: var(--case-paper);
}

.bvp-case-study .hupr-title {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 10.8vw, 172px);
  font-weight: 900;
  line-height: 0.82;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.bvp-case-study .case-hero-description {
  min-width: 0;
  max-width: 620px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1.25;
}

.bvp-case-study .case-approach,
.bvp-case-study .case-realization,
.bvp-case-study .case-other-clients {
  background: #f7f7f5;
  color: #303034;
}

.bvp-case-study .case-approach {
  padding: 24px 24px 88px;
}

.bvp-case-study .case-approach-kicker,
.bvp-case-study .case-realization-kicker,
.bvp-case-study .case-other-clients-kicker {
  display: block;
  padding-bottom: 11px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

.bvp-case-study .case-approach-grid {
  display: grid;
  grid-template-columns: minmax(240px, 26vw) minmax(0, 1fr) minmax(0, 1fr) minmax(170px, 18vw);
  gap: clamp(24px, 2.8vw, 48px);
  align-items: start;
  margin-top: 54px;
}

.bvp-case-study .case-approach-copy {
  display: grid;
  gap: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 1vw, 18px);
  line-height: 1.25;
}

.bvp-case-study .case-approach-copy p {
  margin: 0;
}

.bvp-case-study .case-approach-action {
  display: flex;
  justify-content: flex-end;
}

.bvp-case-study .case-approach-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 5px;
  background: #303034;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.bvp-case-study .case-realization,
.bvp-case-study .case-other-clients {
  padding: 18px 18px 84px;
}

.bvp-case-study .case-realization-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.bvp-case-study .case-realization-card,
.bvp-case-study .case-other-client-card {
  min-width: 0;
}

.bvp-case-study .case-realization-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(45deg, #d7d0c8 0%, #bab0a6 52%, #8f867d 100%);
}

.bvp-case-study .case-realization-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bvp-case-study .case-realization-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.2;
}

.bvp-case-study .case-realization-name,
.bvp-case-study .case-realization-role {
  display: block;
}

.bvp-case-study .case-realization-role {
  max-width: 210px;
  font-size: 12px;
  text-align: right;
}

.bvp-case-study .case-other-clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 284px));
  gap: 24px;
  margin-top: 32px;
}

.bvp-case-study .case-other-client-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bvp-case-study .case-other-client-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 284 / 150;
  padding: 2px;
  background: #303034;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.3vw, 43px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.bvp-case-study .case-other-client-placeholder img {
  display: block;
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
}

.bvp-case-study .case-other-client-placeholder.is-light {
  background: #e8e8e8;
  color: #303034;
}

@media (max-width: 980px) {
  .bvp-case-study .hupr-section {
    min-height: 980px;
  }

  .bvp-case-study .case-approach {
    padding: 22px 22px 72px;
  }

  .bvp-case-study .case-approach-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bvp-case-study .case-approach-grid > div[aria-hidden="true"] {
    display: none;
  }

  .bvp-case-study .case-approach-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .bvp-case-study .case-realization,
  .bvp-case-study .case-other-clients {
    padding: 18px 22px 72px;
  }

  .bvp-case-study .case-realization-grid,
  .bvp-case-study .case-other-clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }
}

@media (max-width: 620px) {
  .bvp-case-study .hupr-section {
    min-height: 100vh;
  }

  .bvp-case-study .case-hero-copy {
    bottom: 52px;
  }

  .bvp-case-study .hupr-title {
    font-size: clamp(36px, 11vw, 54px);
  }

  .bvp-case-study .case-approach {
    padding: 20px 18px 58px;
  }

  .bvp-case-study .case-approach-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bvp-case-study .case-approach-copy,
  .bvp-case-study .case-approach-action {
    padding-top: 18px;
  }

  .bvp-case-study .case-realization,
  .bvp-case-study .case-other-clients {
    padding: 18px 18px 58px;
  }

  .bvp-case-study .case-realization-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bvp-case-study .case-realization-meta {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 12px;
  }

  .bvp-case-study .case-realization-role {
    max-width: none;
    text-align: left;
  }

  .bvp-case-study .case-other-clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .bvp-case-study .case-other-client-placeholder {
    font-size: clamp(18px, 6vw, 26px);
  }
}
