/*
 * Homepage capabilities — four compact editorial posters.
 * Kept separate so the established site styles remain untouched.
 */

.capability-showcase {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(90px, 9vw, 138px) max(36px, calc((100vw - 1280px) / 2)) !important;
  background: #e9e9eb;
  color: #171821;
}

.capability-showcase::before,
.capability-showcase::after {
  display: none !important;
}

.capability-showcase-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: end;
  margin: 0 auto clamp(48px, 6vw, 74px);
}

.capability-showcase-heading > p {
  margin: 0 0 8px;
  color: #61636c;
  font: 700 10px/1.3 "DM Sans", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-showcase-heading > p span {
  margin-right: 10px;
  color: #7657e8;
}

.capability-showcase-heading > div {
  max-width: 920px;
}

.capability-showcase-heading h2 {
  max-width: 900px;
  margin: 0;
  color: #171821;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 5.2vw, 74px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.capability-showcase-heading h2 em {
  color: #7657e8;
  font-family: Georgia, serif;
  font-weight: 400;
}

.capability-showcase-heading > div > p {
  max-width: 690px;
  margin: 24px 0 0;
  color: #62646d;
  font-size: 16px;
  line-height: 1.62;
}

.capability-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 20px);
}

.cap-poster {
  min-width: 0;
  min-height: 430px;
  position: relative;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(23, 24, 33, 0.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(42, 44, 58, 0.07);
}

.cap-poster a {
  color: inherit;
  font: 700 12px/1.2 "DM Sans", sans-serif;
  text-decoration: none;
}

.cap-poster a span {
  margin-left: 5px;
  color: #7657e8;
}

.cap-poster-services {
  flex-direction: column;
  padding: 28px 26px 0;
}

.cap-poster-brand,
.cap-mini-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cap-poster-brand img,
.cap-mini-brand img {
  display: block;
}

.cap-poster-brand span {
  color: #5e6069;
  font: 700 9px/1 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cap-service-line {
  margin: 54px 0 28px;
  color: #242631;
  font: 650 12px/1.5 "Manrope", sans-serif;
  text-align: center;
}

.cap-service-line i {
  width: 3px;
  height: 3px;
  display: inline-block;
  margin: 0 5px 3px;
  background: #7657e8;
}

.cap-folds {
  min-height: 210px;
  position: relative;
  flex: 1;
  margin: auto -26px 0;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(145deg, #4aa8f7, #455ce5 48%, #7657e8);
}

.cap-folds::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(13, 24, 88, 0.06), rgba(20, 21, 76, 0.32));
  pointer-events: none;
}

.cap-folds span {
  position: absolute;
  border: 22px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
}

.cap-folds-copy {
  max-width: 220px;
  position: relative;
  z-index: 2;
  padding: 30px 28px 58px;
  color: #fff;
}

.cap-folds-copy p,
.cap-folds-copy h3,
.cap-folds-copy small {
  margin: 0;
}

.cap-folds-copy p {
  color: #f2ff9f;
  font: 800 8px/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cap-folds-copy h3 {
  margin-top: 12px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.cap-folds-copy small {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font: 600 10px/1.45 "DM Sans", sans-serif;
}

.cap-folds span:nth-child(1) {
  width: 150px;
  height: 150px;
  top: 24px;
  left: -54px;
}

.cap-folds span:nth-child(2) {
  width: 170px;
  height: 170px;
  top: -46px;
  right: -76px;
}

.cap-folds span:nth-child(3) {
  width: 120px;
  height: 120px;
  right: 25px;
  bottom: -70px;
}

.cap-folds strong {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: #fff;
  font: 700 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.05em;
  z-index: 2;
}

.cap-poster-intro {
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 26px 24px;
}

.cap-mini-brand strong {
  color: #171821;
  font: 700 14px/1 "Manrope", sans-serif;
}

.cap-poster-copy {
  margin: auto 0;
}

.cap-poster-copy h3 {
  margin: 0;
  color: #171821;
  font-family: "Manrope", sans-serif;
  font-size: clamp(31px, 2.7vw, 43px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.cap-poster-copy p {
  margin: 25px 0 0;
  color: #5f616b;
  font-size: 13px;
  line-height: 1.55;
}

.cap-poster-stack {
  flex-direction: column;
  gap: 9px;
  padding: 24px;
  background: #fbfbfc;
}

.cap-stack-item {
  min-height: 0;
  position: relative;
  flex: 1;
  padding: 20px 18px;
  border-radius: 13px;
  background: #dce8ff;
}

.cap-stack-item:nth-child(2) {
  background: #e3dcff;
}

.cap-stack-item:nth-child(3) {
  background: #d9f3f1;
}

.cap-stack-item span {
  position: absolute;
  top: 17px;
  right: 17px;
  color: #7657e8;
  font: 700 11px/1 "DM Sans", sans-serif;
}

.cap-stack-item h3 {
  margin: 0 42px 8px 0;
  color: #171821;
  font-family: "Manrope", sans-serif;
  font-size: clamp(20px, 1.65vw, 26px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cap-stack-item p {
  max-width: 190px;
  margin: 0;
  color: #565965;
  font-size: 11px;
  line-height: 1.35;
}

.cap-poster-launch {
  flex-direction: column;
  padding: 0 26px 23px;
}

.cap-peaks {
  height: 190px;
  position: relative;
  flex: 0 0 auto;
  margin: 0 -26px 0;
  overflow: hidden;
  background: #dce8ff;
}

.cap-peaks span,
.cap-peaks i {
  position: absolute;
  bottom: 0;
  display: block;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.cap-peaks span:nth-child(1) {
  width: 150px;
  height: 135px;
  left: 17px;
  background: linear-gradient(110deg, #168af0 50%, #0753d7 51%);
}

.cap-peaks span:nth-child(2) {
  width: 185px;
  height: 175px;
  left: 88px;
  background: linear-gradient(110deg, #158bf3 50%, #2937c9 51%);
}

.cap-peaks span:nth-child(3) {
  width: 125px;
  height: 105px;
  right: -28px;
  background: linear-gradient(110deg, #7657e8 50%, #3c32b4 51%);
}

.cap-peaks i:nth-of-type(1) {
  width: 74px;
  height: 50px;
  left: 88px;
  background: rgba(166, 220, 255, 0.45);
}

.cap-peaks i:nth-of-type(2) {
  width: 92px;
  height: 65px;
  left: 160px;
  background: rgba(200, 186, 255, 0.42);
}

.cap-peaks i:nth-of-type(3) {
  width: 54px;
  height: 40px;
  right: 4px;
  background: rgba(255, 255, 255, 0.23);
}

.cap-launch-copy {
  margin: 24px 0 auto;
  text-align: center;
}

.cap-launch-copy h3 {
  margin: 0;
  color: #171821;
  font-family: "Manrope", sans-serif;
  font-size: clamp(25px, 2.1vw, 33px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cap-launch-copy p {
  margin: 16px 0 20px;
  color: #62646d;
  font-size: 12px;
  line-height: 1.48;
}

.cap-launch-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: #7657e8;
  color: #fff;
}

.cap-launch-copy a span {
  color: #f2ff9f;
}

.cap-poster-launch small {
  display: block;
  margin-top: 18px;
  color: #777983;
  font: 700 8px/1 "DM Sans", sans-serif;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .capability-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .capability-showcase {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .capability-showcase-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .capability-showcase-heading h2 {
    font-size: clamp(40px, 12vw, 60px);
  }
}

@media (max-width: 560px) {
  .capability-showcase-grid {
    grid-template-columns: 1fr;
  }

  .cap-poster {
    min-height: 410px;
  }
}
