/* Home page (front-page.php). */

/* Expertise cards: the design swaps the border colour on hover (React onMouseEnter). */
.ex-exp-card--light:hover { border-color: rgb(214, 173, 96) !important; }
.ex-exp-card--gold:hover { border-color: rgb(58, 64, 71) !important; }
.ex-exp-card:focus-visible { outline: 2px solid rgb(214, 173, 96); outline-offset: 3px; }

/* Benefits: bars grow from 0 and the percentages fade in once the section is in view
   (home.js adds .is-armed up front and .is-visible on scroll; without JS they show full). */
.ex-benefits.is-armed:not(.is-visible) .ex-benefit-bar { width: 0 !important; }
.ex-benefits.is-armed:not(.is-visible) .ex-benefit-pct { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .ex-benefit-bar, .ex-benefit-pct { transition: none !important; }
}

/* About mosaic: the design's tall portrait crops (600x820) set the grid height (600x996 at 1440).
   Our images are landscape, so pin the proportion on desktop instead. */
@media (min-width: 1024px) {
  .ex-about-grid { aspect-ratio: 600 / 996; }
}
