.wp-block-brandspeak-research-methods {
  background: #FF8164;
  color: #fff;
  padding: 4em 0 3em;
  position: relative;
  overflow: hidden;
}

.wp-block-brandspeak-research-methods::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 140vw;
  height: 280px;
  transform: translateX(-50%);
  background: var(--research-methods-curve-color, #fff);
  border-radius: 120% 120% 0 0 / 120% 120% 0 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 0;
}

.research-methods__inner {
  position: relative;
  z-index: 1;
}

.wp-block-brandspeak-research-methods .research-methods__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2em;
}

.research-methods__header {
  text-align: center;
  margin-bottom: 2.5em;
}

.research-methods__header h2 {
  font-size: 60px;
  margin-bottom: 0.75em;
  color: white;
}

.research-methods__intro {
  margin: 0 auto;
  max-width: 60ch;
  font-size: 1.1rem;
  line-height: 1.6;
}

.research-methods__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
}

@media (max-width: 900px) {
  .research-methods__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .research-methods__grid {
    grid-template-columns: 1fr;
  }
}

.research-methods__card {
  background: #fff;
  color: #121212;
  border-radius: 1.25em;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: stretch;
}

.research-methods__card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  outline: none;
  padding: 1.5rem;
  align-items: flex-start;
  box-sizing: border-box;
}

.research-methods__card-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.research-methods__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.research-methods__card::before {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  /* Subtle tint that only appears in the lower ~40% */
  background: linear-gradient(180deg, rgba(66, 51, 133, 0) 60%, rgba(66, 51, 133, 0.35) 100%);
  z-index: 1;
}

.research-methods__card .research-methods__card-inner {
  position: relative;
  z-index: 2;
}

.research-methods__card h3 {
	margin: 0;
	font-size: 1.55rem;
	/* font-weight: 600; */
	color: #fff;
	transition: transform 0.3s ease;
}

.research-methods__card-content {
  margin: 0.75em 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.research-methods__card:hover h3 {
  transform: translateY(-0.5em);
}

.research-methods__card:hover .research-methods__card-content {
  opacity: 1;
  max-height: 200px;
}

.research-methods__card::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Legibility boost near the bottom without overpowering the image */
  background: linear-gradient(180deg, rgba(66, 51, 133, 0) 45%, rgba(66, 51, 133, 0.6) 100%);
  z-index: 1;
}

@media (max-width: 768px) {
  .wp-block-brandspeak-research-methods {
    padding: 3em 0 2em;
  }

  .research-methods__card {
    min-height: 220px;
  }
}
