/* ==========================================================================
   Ecosystems — Webflow Component (V9)
   Four static white cards. Same glow as Solutions cards. Card header is a
   fixed 128px slot (logo left, future SVG right, content vertically centered).
   No JS, no rollover.
   Self-contained: does not need base.css. Tokens used with fallbacks.
   Prefix is .bd-ekos so it does not collide with Solutions (.bd-eco).
   ========================================================================== */

.bd-ekos,
.bd-ekos *,
.bd-ekos *::before,
.bd-ekos *::after {
  box-sizing: border-box;
}

.bd-ekos {
  --bd-blue: #2096F4;
  --bd-blue-hi: #63B0F9;
  --bd-green: #038664;
  --bd-green-hi: #57A186;
  --bd-orange: #F79009;
  --bd-orange-hi: #FBAB61;
  --bd-ekos-pad: 32px;
  --bd-ekos-radius: 12px;
  --bd-ekos-head-h: 128px;
  --bd-ekos-logo-h: 26px;
  --bd-ekos-mark: 84px;
  --bd-ekos-rule: color-mix(in srgb, var(--bd-text, #000) 12%, transparent);
  --bd-ekos-glow:
    0 0 12px rgba(16, 24, 40, 0.044),
    0 0 40px rgba(16, 24, 40, 0.044);
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: visible;
  padding: 64px 0;
  font-family: var(--bd-font, InterVariable, sans-serif);
  font-feature-settings: "liga" 1, "calt" 1, "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
  color: var(--bd-text, #000);
}

.bd-ekos .bd-wrap {
  width: 100%;
  max-width: var(--bd-content, 1280px);
  margin-inline: auto;
  scroll-margin-top: 104px;
}

.bd-ekos__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bd-ekos__intro {
  width: 100%;
  margin: 0 0 var(--bd-space-8, 32px);
}

.bd-ekos__eyebrow {
  margin: 0 0 var(--bd-space-2, 8px);
  font-size: var(--bd-text-sm, 14px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--bd-accent, #6434d8);
}

.bd-ekos__title {
  margin: 0;
  font-size: 32px;
  font-weight: var(--bd-weight-heading, 500);
  font-variation-settings: "wght" var(--bd-weight-heading, 500);
  line-height: 1.2;
  color: var(--bd-text, #000);
  hyphens: none;
  overflow-wrap: normal;
}

.bd-ekos__lead {
  margin: var(--bd-space-3, 12px) 0 0;
  max-width: 40rem;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text, #000);
}

.bd-ekos__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--bd-space-6, 24px);
  width: 100%;
  min-width: 0;
}

.bd-ekos__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bd-surface, #fff);
  border: 0;
  border-radius: var(--bd-ekos-radius);
  box-shadow: var(--bd-v9-glow, var(--bd-ekos-glow));
}

.bd-ekos__card-head {
  position: relative;
  display: flex;
  flex: 0 0 var(--bd-ekos-head-h);
  align-items: center;
  justify-content: space-between;
  gap: var(--bd-space-4, 16px);
  height: var(--bd-ekos-head-h);
  min-height: var(--bd-ekos-head-h);
  max-height: var(--bd-ekos-head-h);
  padding: 0 var(--bd-ekos-pad);
  overflow: hidden;
  border-radius: var(--bd-ekos-radius) var(--bd-ekos-radius) 0 0;
}

.bd-ekos__card-head::after {
  content: "";
  position: absolute;
  left: var(--bd-ekos-pad);
  right: var(--bd-ekos-pad);
  bottom: 0;
  height: 1px;
  background: var(--bd-ekos-rule);
  pointer-events: none;
}

.bd-ekos__logo {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: var(--bd-ekos-logo-h);
  max-width: calc(100% - var(--bd-ekos-mark) - var(--bd-space-4, 16px));
  object-fit: contain;
  object-position: left center;
  overflow: hidden;
}

svg.bd-ekos__logo {
  flex: 0 0 auto;
  aspect-ratio: 97.2 / 29.6;
}

/* Lowercase lockup reads smaller than DTCC/LSEG caps at the same box
   height. Size so the x-height (n/e band, 29 of 54px in the asset) matches
   the 26px cap height of the other two wordmarks. */
.bd-ekos__logo--kinexys {
  height: calc(var(--bd-ekos-logo-h) * 54 / 29);
  overflow: visible;
}

/* Crop each pasted SVG’s viewBox to the drawing; marks are 84px tall. */
.bd-ekos__mark {
  --speed: 1;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: block;
  width: auto;
  height: var(--bd-ekos-mark);
  max-width: 100%;
  max-height: var(--bd-ekos-mark);
  color: var(--bd-text, #000);
  overflow: hidden;
  contain: paint;
  pointer-events: none;
}

.bd-ekos__mark :is(path, circle, line, rect, ellipse, polyline, polygon) {
  vector-effect: non-scaling-stroke;
}

@keyframes bd-ekos-glow-pulse {
  0%, 100% { opacity: var(--o-min, 0.35); }
  50% { opacity: var(--o-max, 1); }
}

@keyframes bd-ekos-blink {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.95; }
}

@keyframes bd-ekos-particle-flow {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes bd-ekos-draw {
  0% { stroke-dashoffset: var(--len); opacity: 0; }
  8% { opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes bd-ekos-breathe {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes bd-ekos-dash-flow {
  to { stroke-dashoffset: -60; }
}

.bd-ekos__mark .glow {
  animation: bd-ekos-glow-pulse calc(var(--dur, 4s) * var(--speed, 1)) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.bd-ekos__mark .blink {
  animation: bd-ekos-blink calc(var(--dur, 2.4s) * var(--speed, 1)) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.bd-ekos__mark .particle {
  offset-path: path(var(--path));
  offset-rotate: 0deg;
  animation: bd-ekos-particle-flow calc(var(--dur, 5s) * var(--speed, 1)) linear infinite;
  animation-delay: var(--delay, 0s);
}

.bd-ekos__mark .draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: bd-ekos-draw calc(var(--dur, 5s) * var(--speed, 1)) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.bd-ekos__mark .breathe {
  transform-box: fill-box;
  transform-origin: center;
  animation: bd-ekos-breathe calc(var(--dur, 5s) * var(--speed, 1)) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.bd-ekos__mark .dashflow {
  stroke-dasharray: var(--dash, 2 8);
  animation: bd-ekos-dash-flow calc(var(--dur, 3s) * var(--speed, 1)) linear infinite;
  animation-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .bd-ekos__mark .glow,
  .bd-ekos__mark .blink,
  .bd-ekos__mark .particle,
  .bd-ekos__mark .draw,
  .bd-ekos__mark .breathe,
  .bd-ekos__mark .dashflow {
    animation: none;
  }

  .bd-ekos__mark .glow,
  .bd-ekos__mark .blink,
  .bd-ekos__mark .breathe {
    opacity: 1;
  }

  .bd-ekos__mark .draw {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .bd-ekos__mark .particle {
    display: none;
  }
}

.bd-ekos__own {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--bd-space-3, 12px);
  min-width: 0;
  min-height: var(--bd-ekos-logo-h);
}

.bd-ekos__own-icon {
  flex: 0 0 auto;
  display: block;
  width: var(--bd-ekos-logo-h);
  height: var(--bd-ekos-logo-h);
  color: var(--bd-text, #000);
  overflow: visible;
}

.bd-ekos__own-icon :is(rect, path, circle, line, polyline, polygon) {
  vector-effect: non-scaling-stroke;
}

.bd-ekos__own-word {
  min-width: 0;
  font-size: 20px;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  line-height: 1.2;
  color: var(--bd-text, #000);
}

.bd-ekos__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--bd-space-6, 24px);
  min-width: 0;
  padding: var(--bd-ekos-pad);
}

.bd-ekos__card-title {
  margin: 0;
  font-size: 20px;
  font-weight: var(--bd-weight-heading, 500);
  font-variation-settings: "wght" var(--bd-weight-heading, 500);
  line-height: 1.3;
  color: var(--bd-text, #000);
}

.bd-ekos__copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--bd-space-4, 16px);
  min-width: 0;
  padding-bottom: calc(var(--bd-ekos-pad) - var(--bd-space-6, 24px));
}

.bd-ekos__copy p {
  margin: 0;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text, #000);
}

.bd-ekos__more {
  position: relative;
  margin-top: auto;
  padding-top: var(--bd-ekos-pad);
  color: var(--bd-link, #2563EB);
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.bd-ekos__more::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--bd-ekos-rule);
  pointer-events: none;
}

.bd-ekos__more:focus-visible {
  outline: 2px solid var(--bd-link, #2563EB);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .bd-ekos {
    padding: 48px 0;
  }

  .bd-ekos__title {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .bd-ekos .bd-wrap {
    scroll-margin-top: 80px;
  }

  .bd-ekos__title {
    font-size: 24px;
  }

  .bd-ekos__cards {
    grid-template-columns: 1fr;
  }

  .bd-ekos {
    --bd-ekos-pad: 24px;
  }
}
