/* Round 32 — Education phone card flip smoothing refinement.
   Goal: keep the same interaction, but make the phone flip read as a flatter,
   more natural card turn with no odd mid-card bowing or bend artifact. */
@media (max-width:760px){
  body.education-page .education-five-degree-grid,
  body.education-page .education-degree-grid,
  body.education-page .education-flip-card-shell,
  body.education-page .education-card-shell{
    -webkit-perspective:none !important;
    perspective:none !important;
    -webkit-transform-style:flat !important;
    transform-style:flat !important;
  }

  body.education-page .education-flip-card{
    -webkit-perspective:2800px !important;
    perspective:2800px !important;
    -webkit-perspective-origin:50% 48% !important;
    perspective-origin:50% 48% !important;
    -webkit-transform-style:preserve-3d !important;
    transform-style:preserve-3d !important;
    isolation:isolate !important;
    contain:none !important;
    overflow:visible !important;
  }

  body.education-page .education-flip-card__inner{
    width:100% !important;
    height:100% !important;
    -webkit-transform-origin:50% 50% !important;
    transform-origin:50% 50% !important;
    -webkit-transform-style:preserve-3d !important;
    transform-style:preserve-3d !important;
    -webkit-backface-visibility:hidden !important;
    backface-visibility:hidden !important;
    transition:transform .58s cubic-bezier(.22,.61,.36,1) !important;
    will-change:transform !important;
  }

  body.education-page .education-flip-card__face{
    position:absolute !important;
    inset:0 !important;
    overflow:hidden !important;
    border-radius:8px !important;
    -webkit-transform-origin:50% 50% !important;
    transform-origin:50% 50% !important;
    -webkit-transform-style:flat !important;
    transform-style:flat !important;
    -webkit-backface-visibility:hidden !important;
    backface-visibility:hidden !important;
    -webkit-mask-image:-webkit-radial-gradient(white, black) !important;
    mask-image:radial-gradient(white, black) !important;
    will-change:transform, opacity !important;
  }

  body.education-page .education-flip-card__front{
    -webkit-transform:rotateY(0deg) translateZ(0.01px) !important;
    transform:rotateY(0deg) translateZ(0.01px) !important;
  }

  body.education-page .education-flip-card__back{
    -webkit-transform:rotateY(180deg) translateZ(0.01px) !important;
    transform:rotateY(180deg) translateZ(0.01px) !important;
  }

  body.education-page .education-flip-card.is-flipped .education-flip-card__inner{
    -webkit-transform:rotateY(180deg) !important;
    transform:rotateY(180deg) !important;
  }
}
/* Portfolio desktop — position the Selected Case Highlights anchor 46px
   farther into the section so both trailing navigation links remain visible. */
@media (min-width:761px){
  body.portfolio-page #transformation-highlights{
    scroll-margin-top:-46px!important;
  }
}
