.ov-practices {
  position: relative;
  padding: clamp(4rem, 7vw, 6rem) 1.25rem clamp(4.5rem, 8vw, 7rem);
  scroll-margin-top: var(--ov-anchor-offset);
  color: var(--ov-text);
  background:
    radial-gradient(ellipse at 50% 0%, rgb(79 93 175 / 0.11), transparent 50%),
    linear-gradient(180deg, #0c0a20 0%, #17142e 55%, #19152f 100%);
}
.ov-practices::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 24%, transparent 76%, rgb(255 255 255 / 0.02));
}
.ov-practices__inner {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin-inline: auto;
}
.ov-practices__heading {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.ov-practices__eyebrow {
  margin: 0 0 .5rem;
  color: #aad9dc;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .08em;
}
.ov-practices__heading h2 {
  margin: 0 0 .75rem;
  font-family: var(--ov-font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: #b8c0e6;
}
@supports (background-clip:text) or (-webkit-background-clip:text) {
  .ov-practices__heading h2 {
    background: linear-gradient(100deg, #8f9dd6, #e3afd2 52%, #7bc2c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.ov-practices__intro {
  margin: 0;
  color: var(--ov-text-muted);
  font-size: 1rem;
  line-height: 1.68;
}

/* Desktop keeps the approved composition: four visuals first, then four descriptions. */
.ov-practices__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: clamp(1rem, 2vw, 1.5rem);
  row-gap: clamp(2rem, 5vw, 3.25rem);
  align-items: stretch;
}
.ov-practices__item {
  display: contents;
}
.ov-practices__item:nth-child(1) > * { grid-column: 1; }
.ov-practices__item:nth-child(2) > * { grid-column: 2; }
.ov-practices__item:nth-child(3) > * { grid-column: 3; }
.ov-practices__item:nth-child(4) > * { grid-column: 4; }

.ov-practices__icon-card {
  grid-row: 1;
  margin: 0;
  min-width: 0;
  padding: clamp(.75rem, 1vw, 1rem);
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.02));
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 16px 40px rgb(1 2 18 / 0.24);
}
.ov-practices__icon-media {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ov-practices__icon-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}
.ov-practices__text-card {
  grid-row: 2;
  min-width: 0;
  height: 100%;
  padding: clamp(1.125rem, 2vw, 1.4rem);
  border-radius: 1.15rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03));
  box-shadow: var(--ov-shadow-card);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--ov-duration-reveal) var(--ov-ease-out),
    transform var(--ov-duration-reveal) var(--ov-ease-out),
    border-color var(--ov-duration-ui) ease,
    box-shadow var(--ov-duration-ui) ease;
  transition-delay: var(--ov-reveal-delay, 0ms);
}
.ov-practices__text-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ov-practices__text-card:hover {
  border-color: rgb(170 217 220 / 0.3);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.09), 0 20px 48px rgb(3 2 18 / 0.34);
}
.ov-practices__text-card h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem);
  color: #f7f5fc;
}
.ov-practices__text-card p {
  margin: 0;
  color: var(--ov-text-muted);
  font-size: .98rem;
  line-height: 1.7;
}

/* Tablet: two visuals, their two matching texts, then the second pair. */
@media (max-width: 72rem) {
  .ov-practices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto;
    column-gap: 1rem;
    row-gap: .75rem;
  }

  .ov-practices__item:nth-child(1) > .ov-practices__icon-card { grid-column: 1; grid-row: 1; }
  .ov-practices__item:nth-child(2) > .ov-practices__icon-card { grid-column: 2; grid-row: 1; }
  .ov-practices__item:nth-child(1) > .ov-practices__text-card { grid-column: 1; grid-row: 2; }
  .ov-practices__item:nth-child(2) > .ov-practices__text-card { grid-column: 2; grid-row: 2; }

  .ov-practices__item:nth-child(3) > .ov-practices__icon-card { grid-column: 1; grid-row: 3; margin-top: 1.2rem; }
  .ov-practices__item:nth-child(4) > .ov-practices__icon-card { grid-column: 2; grid-row: 3; margin-top: 1.2rem; }
  .ov-practices__item:nth-child(3) > .ov-practices__text-card { grid-column: 1; grid-row: 4; }
  .ov-practices__item:nth-child(4) > .ov-practices__text-card { grid-column: 2; grid-row: 4; }

  .ov-practices__icon-card {
    width: 100%;
    height: clamp(16rem, 38vw, 19rem);
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .ov-practices__icon-media {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 1rem 1.35rem;
    overflow: hidden;
  }
  .ov-practices__icon-card img {
    width: min(68%, 16.5rem);
    height: auto;
    max-height: calc(100% - .25rem);
    aspect-ratio: auto;
    object-fit: contain;
    flex: none;
  }

  .ov-practices__text-card {
    width: 100%;
    min-height: 0;
    height: auto;
    align-self: stretch;
    padding: 1.15rem 1.25rem .95rem;
  }
  .ov-practices__text-card h3 {
    font-size: 1.12rem;
  }
  .ov-practices__text-card p {
    font-size: .93rem;
    line-height: 1.64;
  }
}

/* Phone: keep the same paired reading order, with tighter, safely cropped visuals. */
@media (max-width: 40rem) {
  .ov-practices {
    padding-inline: .75rem;
  }
  .ov-practices__grid {
    column-gap: .65rem;
    row-gap: .7rem;
  }
  .ov-practices__icon-card {
    height: clamp(10.75rem, 50vw, 13rem);
    border-radius: .95rem;
  }
  .ov-practices__icon-media {
    padding: .65rem .35rem .8rem;
  }
  .ov-practices__icon-card img {
    width: min(84%, 10.1rem);
    max-height: calc(100% - .15rem);
  }
  .ov-practices__text-card {
    min-height: 0;
    height: auto;
    align-self: stretch;
    padding: .88rem .85rem .78rem;
    border-radius: .95rem;
  }
  .ov-practices__text-card h3 {
    margin-bottom: .5rem;
    font-size: .98rem;
  }
  .ov-practices__text-card p {
    font-size: clamp(.74rem, 3.25vw, .82rem);
    line-height: 1.55;
  }
  .ov-practices__item:nth-child(3) > .ov-practices__icon-card,
  .ov-practices__item:nth-child(4) > .ov-practices__icon-card {
    margin-top: .8rem;
  }
}

@media (max-width: 25rem) {
  .ov-practices__icon-card {
    height: 10.75rem;
  }
  .ov-practices__icon-card img {
    width: min(80%, 8.7rem);
  }
  .ov-practices__text-card {
    min-height: 0;
    padding: .8rem .72rem .72rem;
  }
  .ov-practices__text-card p {
    font-size: .735rem;
    line-height: 1.52;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ov-practices__text-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (forced-colors: active) {
  .ov-practices__heading h2 {
    color: CanvasText;
    background: none;
  }
}
