.three-pillar-section {
  --oce-hover-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --oce-return-ease: cubic-bezier(0.445, 0.05, 0.55, 0.95);
  overflow-x: clip;
}

.oce-container {
  height: 65vh;
  padding: 0 80px;
  display: flex;
  flex-wrap: nowrap;
  gap: 34px;
  justify-content: center;
  align-items: end;
  position: relative;
  isolation: isolate;
}

.oce-card-wrap {
  margin: 10px;
  transform: perspective(1200px);
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
  z-index: 2;
  animation: oce-card-enter 1800ms cubic-bezier(0.23, 1, 0.32, 1) both;
  animation-delay: var(--oce-enter-delay, 0ms);
  animation-play-state: paused;
  opacity: 0;
}

.three-pillar-section.oce-enter-ready .oce-card-wrap {
  animation-play-state: running;
}

@keyframes oce-card-enter {
  0% {
    opacity: 0;
    transform: perspective(1200px) translate3d(var(--oce-stack-offset, 0px), 240px, 0) scale(0.92);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) translate3d(0, 0, 0) scale(1);
  }
}

.oce-gradient-black-country {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}

.oce-card {
  position: relative;
  width: 340px;
  height: 510px;
  overflow: hidden;
  box-shadow: none;
  transition: 0.8s var(--oce-return-ease);
  border-radius: 40px;
}

.oce-card-info {
  inset: 0;
  padding: 1.8rem;
  position: absolute;
  color: #fff;
  transform: translateY(0);
  transition: 0.6s var(--oce-hover-ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.oce-card-info p {
  margin: 0;
  transition: 0.6s var(--oce-hover-ease);
}

.oce-card-info * {
  position: relative;
  z-index: 1;
}

.oce-card-info::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: 0.6s var(--oce-hover-ease);
}

.oce-fitd-card .fitd-metric {
  margin-bottom: 0.1em;
  font-family: "Inter Tight", sans-serif;
  font-size: 13rem;
  line-height: 0.8;
  font-weight: 800;
  background-image: linear-gradient(#ffffffe3 0%, rgba(255, 253, 253, 0.342) 50%, rgba(255, 255, 255, 0.038) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.oce-fitd-card .fitd-label {
  margin-top: -3rem;
  margin-bottom: 1.5rem;
  color: #fdfdfd;
  font-size: 3.6rem;
  font-weight: 600;
  text-transform: capitalize;
}

.oce-fitd-card3 .fitd-label {
  font-size: 3.3rem;
}

.oce-fitd-card .fitd-copy {
  margin: 0;
  color: #fffffff0;
  font-size: 1.4rem;
  line-height: 1.5;
  text-shadow: none;
}

.oce-fitd-card1 {
  background:
    radial-gradient(circle at 88% 120%, #b57cf624 0%, #b57cf610 24%, #b57cf600 52%),
    radial-gradient(circle at 50% 100%, #ffffff08 0%, #ffffff00 42%),
    linear-gradient(180deg, #141414b0 0%, #0f1011bf 48%, #070708de 100%),
    url("assets/insight-card/background-lines.svg");
  background-position: 0 0, 0 0, 0 0, 50% 50%;
  background-size: auto, auto, auto, 145%;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, normal, screen;
}

.oce-fitd-card2 {
  background:
    radial-gradient(circle at 82% -20%, #99fdff24 0%, #99fdff10 28%, #99fdff00 58%),
    radial-gradient(circle at 12% 120%, #b57cf624 0%, #b57cf610 24%, #b57cf600 52%),
    radial-gradient(circle at 50% 100%, #ffffff08 0%, #ffffff00 42%),
    linear-gradient(180deg, #141414b0 0%, #0f1011bf 48%, #070708de 100%),
    url("assets/insight-card/background-lines.svg");
  background-position: 0 0, 0 0, 0 0, 50% 50%;
  background-size: auto, auto, auto, auto, 145%;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, normal, normal, screen;
}

.oce-fitd-card3 {
  background:
    radial-gradient(circle at 12% -20%, #99fdff24 0%, #99fdff10 28%, #99fdff00 58%),
    radial-gradient(circle at 50% 100%, #ffffff08 0%, #ffffff00 42%),
    linear-gradient(180deg, #141414b0 0%, #0f1011bf 48%, #070708de 100%),
    url("assets/insight-card/background-lines.svg");
  background-position: 0 0, 0 0, 0 0, 50% 50%;
  background-size: auto, auto, auto, 145%;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, normal, screen;
}

.oce-card-wrap:hover .oce-card-bg {
  transition: 0.5s var(--oce-hover-ease), opacity 4s var(--oce-hover-ease);
  opacity: 0.8;
}

.oce-card-wrap:hover .oce-card {
  transition: 0.5s var(--oce-hover-ease);
  box-shadow: none;
}

.oce-section-heading {
  position: absolute;
  top: -3rem;
  left: 50%;
  width: min(100%, 980px);
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  text-align: center;
  font-family: "Inter Tight", sans-serif;
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 600;
  z-index: 3;
  color: white;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(140deg, #ffffff 20%, #99fdffcc 60%, #b57cf69a 100%);
  font-size: 5rem;
  letter-spacing: 5px;
}

.oce-section-heading .section-headings {
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 1200px) {
  .oce-container {
    gap: clamp(14px, 2.4vw, 24px);
    padding-inline: clamp(20px, 4vw, 48px);
  }

  .oce-card {
    width: clamp(250px, 28vw, 320px);
    height: clamp(400px, 42vw, 480px);
  }

  .oce-fitd-card .fitd-metric {
    font-size: clamp(8rem, 12vw, 11rem);
  }

  .oce-fitd-card .fitd-label {
    font-size: clamp(2.3rem, 3.5vw, 3.2rem);
  }

  .oce-fitd-card3 .fitd-label {
    font-size: clamp(2.1rem, 3.2vw, 3rem);
  }

  .oce-fitd-card .fitd-copy {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
  }
}

@media (max-width: 768px) {
  .three-pillar-section {
    padding-top: 0;
    padding-bottom: 0.75rem;
  }

  .oce-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    align-items: start;
    gap: clamp(0.45rem, 2vw, 0.9rem);
    height: auto;
    padding: 1rem clamp(10px, 3vw, 18px) 0;
  }

  .oce-gradient-black-country {
    display: none;
  }

  .oce-section-heading {
    grid-column: 1 / -1;
    position: static;
    width: min(100%, 24rem);
    transform: none;
    margin: 0.5rem auto 0.75rem;
    letter-spacing: 0;
  }

  .oce-section-heading .section-headings h2 {
    max-width: 16ch;
    line-height: 1;
  }

  .oce-section-heading .section-headings .case-study-heading-line {
    line-height: 1.04;
  }

  .oce-section-heading .section-headings .cs-heading1 {
    font-size: clamp(2rem, 8vw, 2.85rem);
  }

  .oce-section-heading .section-headings .cs-heading2 {
    margin-top: 0.3rem;
    font-size: clamp(1.3rem, 5.5vw, 1.95rem);
  }

  .oce-card-wrap {
    width: 100%;
    margin: 0;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .oce-card {
    width: 100%;
    height: clamp(220px, 54vw, 340px);
    border-radius: 20px;
  }

  .oce-card-info {
    padding: clamp(0.55rem, 2vw, 1.15rem);
  }

  .oce-fitd-card .fitd-metric {
    font-size: clamp(2.7rem, 13vw, 5.8rem);
  }

  .oce-fitd-card .fitd-label {
    margin-top: clamp(-0.75rem, -2vw, -0.2rem);
    margin-bottom: clamp(0.35rem, 1.8vw, 0.75rem);
    font-size: clamp(0.92rem, 4vw, 1.75rem);
  }

  .oce-fitd-card3 .fitd-label {
    font-size: clamp(0.86rem, 3.6vw, 1.6rem);
  }

  .oce-fitd-card .fitd-copy {
    overflow-wrap: break-word;
    word-break: normal;
    font-size: clamp(0.7rem, 2.4vw, 0.95rem);
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .oce-card {
    height: clamp(238px, 62vw, 268px);
    border-radius: 16px;
  }

  .oce-fitd-card .fitd-metric {
    font-size: clamp(3rem, 13vw, 3.45rem);
  }

  .oce-fitd-card .fitd-label {
    font-size: clamp(0.98rem, 3.9vw, 1.1rem);
  }

  .oce-fitd-card3 .fitd-label {
    font-size: clamp(0.92rem, 3.6vw, 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .oce-card-wrap {
    animation: none;
    opacity: 1;
  }
}
