/* team-photo.css — WHO WE ARE team card (pairs with js/team-photo.js) */
.tp-card{position:relative;display:block;outline:none;-webkit-tap-highlight-color:transparent}
.tp-media{position:relative;overflow:hidden;border-radius:1rem;border:1px solid rgba(255,255,255,.1);
  box-shadow:0 0 30px rgba(255,204,0,.15);transform:translateZ(0);
  transition:transform .5s ease-out,box-shadow .5s ease-out,border-color .5s ease-out}
.tp-media>img{display:block;width:100%;height:auto;position:relative;z-index:0}
.tp-media>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;
  opacity:0;pointer-events:none;background:transparent;transition:opacity .12s linear}
.tp-card.is-playing .tp-media>video{opacity:1}
.tp-card.is-cut .tp-media>video{transition:none}

/* camera flash: full white in ~35 ms, holds a beat, then decays like a strobe */
.tp-flash{position:absolute;inset:0;z-index:2;opacity:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 38%,#fff 0%,#fff 55%,#fffaf0 100%)}
.tp-card.is-flashing .tp-flash{animation:tp-flash .6s cubic-bezier(.15,.6,.35,1) both}
@keyframes tp-flash{0%{opacity:0}6%{opacity:1}14%{opacity:1}100%{opacity:0}}
/* the photo underneath starts over-exposed and settles */
.tp-card.is-flashing .tp-media>img{animation:tp-afterglow .95s ease-out both}
@keyframes tp-afterglow{0%{filter:brightness(1.7) saturate(.6)}100%{filter:none}}
/* light spilling out around the card */
.tp-card::before{content:"";position:absolute;inset:0;border-radius:1rem;pointer-events:none;z-index:-1;opacity:0}
.tp-card.is-flashing::before{animation:tp-bloom .7s ease-out both}
@keyframes tp-bloom{0%{opacity:0;box-shadow:0 0 0 0 rgba(255,252,240,.0)}
  8%{opacity:1;box-shadow:0 0 120px 30px rgba(255,252,240,.55)}100%{opacity:0;box-shadow:0 0 160px 40px rgba(255,252,240,0)}}

/* desktop hover: highlight the border; lift + tilt only once the clip has ended and the flash fired.
   Without JS (or with reduced motion) the card keeps the old hover lift. */
@media (hover:hover) and (pointer:fine){
  .tp-card:hover .tp-media,.tp-card:focus-visible .tp-media{border-color:rgba(234,179,8,.4)}
}
@media (hover:hover) and (pointer:fine) and (min-width:768px){
  .tp-card.is-lifted .tp-media,
  .tp-card:not(.tp-ready):hover .tp-media{transform:translateY(-.75rem) scale(1.05) rotate(1deg);
    box-shadow:0 30px 60px rgba(255,204,0,.4)}
}
.tp-card:focus-visible .tp-media{box-shadow:0 0 0 3px rgba(234,179,8,.6),0 0 30px rgba(255,204,0,.15)}
@media (prefers-reduced-motion:reduce){
  .tp-media{transition:none}
  .tp-card.is-flashing .tp-flash,.tp-card.is-flashing .tp-media>img,.tp-card.is-flashing::before{animation-duration:.01s}
}
