/* ==========================================================================
   Card Concepts — concept 05 (colour field over copy, 45∶55)
   Sandbox only: card-concepts.html. Do not load on landings.
   Statement header matches Solutions (.bd-eco__intro).
   Self-contained: does not need base.css. Tokens used with fallbacks.
   Illustration is a CSS background on .bd-cc5__media over the colour
   field; no inner <img>. Art: assets/images/card-background-section-5/
   ========================================================================== */

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

.bd-cc5 {
  --bd-cc5-radius: 12px;
  --bd-cc5-rule: #d5d7da;
  --bd-cc5-tint: 0.3;
  --bd-cc5-glow:
    0 0 12px rgba(16, 24, 40, 0.044),
    0 0 40px rgba(16, 24, 40, 0.044);
  display: block;
  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-cc5 .bd-wrap {
  width: 100%;
  max-width: var(--bd-content, 1280px);
  margin-inline: auto;
}

.bd-cc5__intro {
  width: 100%;
  margin: 0 0 var(--bd-space-8, 32px);
  padding-bottom: var(--bd-space-8, 32px);
  border-bottom: 1px solid var(--bd-cc5-rule, #d5d7da);
}

.bd-cc5__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-cc5__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-cc5__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-cc5__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--bd-space-6, 24px);
  width: 100%;
  min-width: 0;
}

.bd-cc5__card {
  display: grid;
  grid-template-rows: 45fr 55fr;
  min-width: 0;
  min-height: 520px;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: var(--bd-cc5-radius);
  padding: 0;
  background: var(--bd-surface, #fff);
  box-shadow: var(--bd-glow, var(--bd-cc5-glow));
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

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

.bd-cc5__media {
  --bd-cc5-art: none;
  position: relative;
  isolation: isolate;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background-color: var(--bd-cc5-field);
  background-image: var(--bd-cc5-art);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bd-cc5__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--bd-cc5-field);
  opacity: var(--bd-cc5-tint);
  mix-blend-mode: color;
  -webkit-mask-image: var(--bd-cc5-art);
  mask-image: var(--bd-cc5-art);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.bd-cc5__card--purple {
  --bd-cc5-field: #B3B0E9;
}

.bd-cc5__card--green {
  --bd-cc5-field: #9CC7B5;
}

.bd-cc5__card--blue {
  --bd-cc5-field: #78ACE2;
}

.bd-cc5__media--tokenization {
  --bd-cc5-art: url("../../assets/images/card-background-section-5/card1.png");
}

.bd-cc5__media--stablecoin {
  --bd-cc5-art: url("../../assets/images/card-background-section-5/card2.png");
}

.bd-cc5__media--nodes {
  --bd-cc5-art: url("../../assets/images/card-background-section-5/card3.png");
}

.bd-cc5__copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--bd-space-6, 24px);
  background: var(--bd-surface, #fff);
}

.bd-cc5__name {
  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-cc5__body {
  margin: var(--bd-space-3, 12px) 0 0;
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bd-text, #000);
}

.bd-cc5__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: var(--bd-space-2, 8px);
  margin-top: auto;
  padding-top: var(--bd-space-6, 24px);
  color: var(--bd-link, #2563EB);
  font-size: var(--bd-text-base, 16px);
  font-weight: 400;
  line-height: 1.2;
}

.bd-cc5__more svg {
  width: 16px;
  height: 16px;
  overflow: visible;
  flex-shrink: 0;
  animation: bd-cc5-arrow 2.4s ease-in-out infinite;
}

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

.bd-cc5__card:hover .bd-cc5__more {
  opacity: 0.7;
}

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

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

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

@media (max-width: 767px) {
  .bd-cc5__title {
    font-size: 24px;
  }
}

@keyframes bd-cc5-arrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bd-cc5__more svg {
    animation: none;
  }
}
