/* ==================================================
   CYBER RESEARCH FEATURE
================================================== */

.research-feature {
  --navy: #001b44;
  --blue: #075be8;
  --teal: #18bdc5;
  --aqua: #87e3e5;
  --orange: #ff7620;
  --body-text: #596477;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 96px 24px;
  overflow: hidden;
  background: #ffffff;

  font-family:
    "Proxima Nova",
    "ProximaNova",
    Arial,
    Helvetica,
    sans-serif;
}

.research-feature *,
.research-feature *::before,
.research-feature *::after {
  box-sizing: border-box;
}

.research-feature__inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(0, 0.76fr);
  align-items: center;
  width: min(1480px, 100%);
  margin: 0 auto;
  gap: clamp(48px, 5vw, 90px);
}

.research-feature__visual,
.research-feature__content {
  min-width: 0;
}

/* ==================================================
   RIGHT CONTENT
================================================== */

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

.research-feature__eyebrow {
  display: inline-block;
  margin: 0;
  color: var(--blue);
  font-size: clamp(44px, 4.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

@supports (background-clip: text) {
  .research-feature__eyebrow {
    background: linear-gradient(
      110deg,
      #075be8 0%,
      #18bdc5 55%,
      #7bdcdf 100%
    );
    background-clip: text;
    color: transparent;
  }
}

.research-feature__accent {
  display: block;
  width: 76px;
  height: 4px;
  margin: 38px 0 54px;
  border-radius: 999px;
  background: var(--orange);
}

.research-feature__heading {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(40px, 3.5vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.research-feature__heading-line {
  white-space: normal;
}

.research-feature__description {
  max-width: 610px;
  margin: 0 0 42px;
  color: var(--body-text);
  font-size: clamp(18px, 1.42vw, 23px);
  font-weight: 400;
  line-height: 1.52;
}

/* ==================================================
   CTA
================================================== */

.research-feature__button,
.research-feature__button:link,
.research-feature__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 292px;
  max-width: 100%;
  padding: 20px 27px;
  gap: 38px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--navy);
  color: #ffffff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(0, 27, 68, 0.15);

  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    color 250ms ease,
    box-shadow 250ms ease,
    transform 250ms ease;
}

.research-feature__button:hover,
.research-feature__button:focus-visible {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(24, 189, 197, 0.27);
}

.research-feature__button-text {
  color: inherit;
  text-decoration: none;
}

.research-feature__button-arrow {
  position: relative;
  display: block;
  width: 29px;
  height: 18px;
  flex: 0 0 29px;
  transition: transform 250ms ease;
}

.research-feature__button-arrow::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 27px;
  height: 2px;
  background: currentColor;
}

.research-feature__button-arrow::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.research-feature__button:hover .research-feature__button-arrow {
  transform: translateX(5px);
}

/* ==================================================
   GRADIENT PANEL
   Clean teal-to-orange blend without muddy overlap
================================================== */

.research-feature__visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(7, 91, 232, 0.11);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 27, 68, 0.07);
}

.research-feature__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 0% 100%,
      rgba(104, 228, 231, 0.72) 0%,
      rgba(104, 228, 231, 0.38) 25%,
      rgba(104, 228, 231, 0.12) 43%,
      transparent 60%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 155, 87, 0.68) 0%,
      rgba(255, 155, 87, 0.34) 26%,
      rgba(255, 155, 87, 0.10) 44%,
      transparent 61%
    ),
    linear-gradient(
      135deg,
      #edfdfe 0%,
      #f8fefe 37%,
      #fffdfb 58%,
      #fff4eb 100%
    );

  background-size: 112% 112%;
  animation: researchGradientFloat 12s ease-in-out infinite alternate;
}

/* The cleaner background replaces the overlapping blobs */
.research-feature__blob {
  display: none;
}

@keyframes researchGradientFloat {
  from {
    background-position:
      0% 4%,
      100% 0%,
      center;
  }

  to {
    background-position:
      4% 0%,
      96% 5%,
      center;
  }
}

/* ==================================================
   THREE-STEP PROCESS
================================================== */

.research-process {
  --process-gap: 30px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--process-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-process__step {
  --step-color: var(--teal);

  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 20px;

  min-width: 0;
  min-height: 205px;
  padding: 30px 14px 26px;

  border-top: 6px solid var(--step-color);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 27, 68, 0.055);
}

.research-process__step:nth-child(2) {
  --step-color: var(--orange);
}

.research-process__step:nth-child(3) {
  --step-color: var(--blue);
}

.research-process__title {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(18px, 1.45vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.research-process__copy {
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.4;
  text-wrap: pretty;
}

/* Center each connector within the gap */

.research-process__arrow {
  position: absolute;
  top: 50%;
  left: calc(100% + var(--process-gap) / 2);
  width: 11px;
  height: 11px;
  border-top: 3px solid var(--step-color);
  border-right: 3px solid var(--step-color);
  transform: translate(-65%, -50%) rotate(45deg);
}

/* ==================================================
   MARKETSPACES
================================================== */

.research-marketspaces {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 27, 68, 0.1);
}

.research-marketspaces__title {
  margin-bottom: 22px;
}

.research-marketspace-carousel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.research-marketspace-carousel__viewport {
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  padding: 8px 0 14px;
}

/* JavaScript manages movement after initialization */

.research-marketspace-carousel.is-ready
.research-marketspace-carousel__viewport {
  overflow: hidden;
}

.research-marketspace-carousel__track {
  display: flex;
  width: max-content;
}

.research-marketspace-carousel__group {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding-right: 14px;
}

.research-marketspace-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  min-height: 84px;
  flex: 0 0 220px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 27, 68, 0.07);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 27, 68, 0.06);
}

.research-marketspace-carousel__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 27, 68, 0.05);
  border-radius: 50%;
  background: #ffffff;
  color: var(--teal);
  box-shadow: 0 8px 22px rgba(0, 27, 68, 0.08);
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.research-marketspace-carousel__arrow:hover {
  background: var(--teal);
  color: var(--navy);
  transform: scale(1.05);
}

.research-marketspace-carousel__arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.research-marketspace-carousel__arrow--previous span {
  margin-left: 4px;
  transform: rotate(-135deg);
}

.research-marketspace-carousel__arrow--next span {
  margin-right: 4px;
  transform: rotate(45deg);
}

.research-feature button:focus-visible,
.research-feature a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1180px) {
  .research-feature {
    padding: 80px 24px;
  }

  .research-feature__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
  }

  .research-feature__visual {
    order: 2;
    width: 100%;
  }

  .research-feature__content {
    order: 1;
    max-width: 760px;
  }

  .research-process__title {
    font-size: 23px;
  }

  .research-process__copy {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .research-feature__visual-content {
    padding: 38px 24px 28px;
  }

  .research-process {
    --process-gap: 24px;
  }

  .research-process__step {
    padding: 26px 12px 22px;
  }

  .research-process__title {
    font-size: 19px;
  }

  .research-process__copy {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .research-feature {
    padding: 64px 18px;
  }

  .research-feature__eyebrow {
    font-size: clamp(36px, 9vw, 45px);
  }

  .research-feature__accent {
    margin: 30px 0 36px;
  }

  .research-feature__heading {
    font-size: clamp(32px, 8vw, 39px);
  }

  .research-feature__description {
    font-size: 18px;
  }

  .research-feature__button,
  .research-feature__button:link,
  .research-feature__button:visited {
    width: 100%;
    min-width: 0;
  }

  .research-feature__visual {
    border-radius: 24px;
  }

  .research-feature__visual-content {
    padding: 34px 18px 24px;
  }

  .research-feature__visual-header {
    margin-bottom: 30px;
  }

  .research-feature__visual-title {
    font-size: 27px;
  }

  .research-process {
    --process-gap: 28px;
    grid-template-columns: minmax(0, 1fr);
  }

  .research-process__step {
    min-height: 0;
    padding: 24px 20px;
    gap: 12px;
  }

  .research-process__title {
    font-size: 23px;
  }

  .research-process__title br {
    display: none;
  }

  .research-process__title br::after {
    content: " ";
  }

  .research-process__copy {
    font-size: 17px;
  }

  .research-process__arrow {
    top: calc(100% + var(--process-gap) / 2);
    left: 50%;
    transform: translate(-50%, -65%) rotate(135deg);
  }

  .research-marketspaces {
    margin-top: 32px;
    padding-top: 26px;
  }

  .research-marketspace-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 5px;
  }

  .research-marketspace-carousel__arrow {
    width: 40px;
    height: 44px;
  }

  .research-marketspace-card {
    width: 190px;
    flex-basis: 190px;
    padding: 14px;
    font-size: 13px;
  }

  .research-feature__blob {
    filter: blur(42px);
  }

  .research-feature__blob--orange {
    top: -75px;
    right: -55%;
    width: 145%;
  }

  .research-feature__blob--aqua {
    top: 40%;
    bottom: auto;
    left: 18%;
    width: 140%;
  }

  .research-feature__blob--teal {
    bottom: -85px;
    left: -55%;
    width: 150%;
  }
}

/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {
  .research-feature *,
  .research-feature *::before,
  .research-feature *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Centered tabs on the three process cards */
.research-process__step {
  position: relative;
  border: 1px solid rgba(0, 27, 68, 0.07);
}

.research-process__step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;

  width: 50%;
  height: 10px;

  border-radius: 0 0 12px 12px;
  background: var(--process-color, var(--teal));

  transform: translateX(-50%);
  pointer-events: none;
}

.research-process__step:nth-child(1)::before {
  background: #4192b5;
}

.research-process__step:nth-child(2)::before {
  background: var(--orange);
}

.research-process__step:nth-child(3)::before {
  background: var(--blue);
}

/* ==================================================
   CLEAN GRADIENT + RESTORED PANEL DETAILS
   Paste at the very bottom of the CSS
================================================== */

/* Keep the visual panel intact */
.research-feature__visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(7, 91, 232, 0.11);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 27, 68, 0.07);
}

/* Clean gradient with a light transition between colors */
.research-feature__gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 0% 100%,
      rgba(104, 228, 231, 0.68) 0%,
      rgba(104, 228, 231, 0.34) 26%,
      rgba(104, 228, 231, 0.10) 44%,
      transparent 61%
    ),
    radial-gradient(
      circle at 100% 0%,
      rgba(255, 155, 87, 0.62) 0%,
      rgba(255, 155, 87, 0.30) 27%,
      rgba(255, 155, 87, 0.08) 45%,
      transparent 62%
    ),
    linear-gradient(
      135deg,
      #edfdfe 0%,
      #f8fefe 38%,
      #fffdfb 59%,
      #fff3e9 100%
    );

  background-size: 112% 112%;
  animation: researchGradientFloat 12s ease-in-out infinite alternate;
}

/* Remove only the overlapping animated blobs */
.research-feature__blob {
  display: none !important;
}

@keyframes researchGradientFloat {
  from {
    background-position:
      0% 4%,
      100% 0%,
      center;
  }

  to {
    background-position:
      4% 0%,
      96% 5%,
      center;
  }
}

/* Restore the white dot texture */
.research-feature__dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.44;

  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.94) 1.3px,
    transparent 1.45px
  );

  background-size: 22px 22px;

  -webkit-mask-image: linear-gradient(
    145deg,
    transparent 3%,
    #000 36%,
    #000 70%,
    transparent
  );

  mask-image: linear-gradient(
    145deg,
    transparent 3%,
    #000 36%,
    #000 70%,
    transparent
  );
}

/* Restore content above the gradient and dots */
.research-feature__visual-content {
  position: relative;
  z-index: 2;
  padding: 48px 34px 32px;
}

/* Restore the top title and its spacing */
.research-feature__visual-header {
  display: block;
  margin: 0 0 44px;
}

.research-feature__visual-title {
  display: block;
  margin: 0;
  color: var(--navy);
  font-family: inherit;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* Restore the divider and marketspace spacing */
.research-marketspaces {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 27, 68, 0.1);
}

.research-marketspaces__title {
  display: block;
  margin: 0 0 22px;
}

/* Preserve the original responsive spacing */
@media (max-width: 760px) {
  .research-feature__visual-content {
    padding: 38px 24px 28px;
  }
}

@media (max-width: 600px) {
  .research-feature__visual {
    border-radius: 24px;
  }

  .research-feature__visual-content {
    padding: 34px 18px 24px;
  }

  .research-feature__visual-header {
    margin-bottom: 30px;
  }

  .research-feature__visual-title {
    font-size: 27px;
  }

  .research-marketspaces {
    margin-top: 32px;
    padding-top: 26px;
  }
}