/* Merged Practice section (homepage only).
   Practice areas + Principles sub-block; all copy unchanged from the site. */

/* Visible without JS: .reveal stays unhidden until home.js adds .js-reveal.
   .is-ready enables the transition only after the hidden state has been committed,
   so arming does not play the animation in reverse. */
.reveal { opacity: 1; transform: none; }
.reveal.js-reveal { opacity: 0; transform: translateY(14px); }
.reveal.js-reveal.is-ready {
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 160ms);
}
.reveal.js-reveal.is-in { opacity: 1; transform: none; }

/* Clip the horizontal slide so it cannot create a page-level overflow. */
#practice { overflow-x: clip; }

/* Principles sits inside Practice; same grid as the former Approach section. */
.principles { margin-top: clamp(4.5rem, 10vw, 7.5rem); scroll-margin-top: calc(var(--header-h, 4rem) + 1.5rem); }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(2.5rem, 5vw, 3.5rem);
}
.principles-grid > .principle:last-child:nth-of-type(odd) { grid-column: 1 / -1; }
.principles-grid > .principle:last-child:nth-of-type(odd) .principle-line { max-width: 34rem; }
.principles > .anchor-alias { display: block; height: 0; scroll-margin-top: calc(var(--header-h, 4rem) + 1.5rem); }
.principles > .kicker { margin-bottom: 0.15rem; }

/* Horizontal row reveal — armed only by a JS-set class. */
.practice-col.js-reveal,
.principles-grid .principle.js-reveal {
  opacity: 0;
  transform: translateX(-40px);
}
.practice-col.js-reveal.is-ready,
.principles-grid .principle.js-reveal.is-ready {
  transition:
    opacity 700ms cubic-bezier(.2, .7, .2, 1),
    transform 700ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 140ms);
}
.practice-col.js-reveal.is-in,
.principles-grid .principle.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .principles-grid { grid-template-columns: 1fr; }
  .practice-col.js-reveal,
  .principles-grid .principle.js-reveal {
    transform: translateX(-16px);
  }
  .practice-col.js-reveal.is-in,
  .principles-grid .principle.js-reveal.is-in {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.js-reveal,
  .practice-col.js-reveal,
  .principles-grid .principle.js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
