/* Portfolio V3.04 — preserve V3.02 tile dimensions and animate rules on hover only. */

/* The V3.03 margins were shrinking cards within their grid tracks.
   The V3.04 layout measures the original grid before positioning each card. */
@media (min-width: 761px) {
  #workGrid > .project-card,
  #labGrid > .project-card {
    margin: 0 !important;
    transform: none !important;
    translate: none !important;
  }
  /* Applied after original tile dimensions have been measured. */
  #workGrid.is-editorial-staggered,
  #labGrid.is-editorial-staggered {
    display: block !important;
    position: relative !important;
    grid-auto-rows: unset !important;
    overflow: visible;
  }
  #workGrid.is-editorial-staggered > .project-card,
  #labGrid.is-editorial-staggered > .project-card {
    position: absolute !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transform: none !important;
    translate: none !important;
  }
}
@media (max-width: 760px) {
  #workGrid.is-editorial-staggered,
  #labGrid.is-editorial-staggered { display:grid !important; height:auto !important; }
}

/* Once the pointer hovers over an expertise or award row, draw its rule to
   completion. The class is never removed on mouseleave or scrolling. */
#helloMode [data-trim-line]::before {
  transform: scaleX(0) !important;
  transition: transform 950ms cubic-bezier(.25,.8,.2,1) !important;
}
#helloMode [data-trim-line].is-trimmed::before {
  transform: scaleX(1) !important;
}
@media (prefers-reduced-motion: reduce) {
  #helloMode [data-trim-line]::before { transition:none !important; }
}
