/* R.E.Q.M. → Foxify phase shift (exit half).
   Pairs with foxify-arrival on foxifybiz.com. Only active after the visitor
   clicks a link marked data-phase-shift. Nothing here changes the page otherwise. */

/* armored portrait layered over each cartoon, hidden until the shift */
#staff .staff-card .cartoon{position:relative}
#staff .phase-armor{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 22%;
  background:radial-gradient(ellipse at 50% 30%,#3B4366 0%,#1E2236 75%);
  opacity:0;pointer-events:none;
}

/* the dusk wash over everything outside the Staff section */
.phase-dusk{
  position:fixed;inset:0;z-index:900;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,rgba(51,58,87,.92) 0%,rgba(43,40,74,.94) 45%,rgba(30,34,54,.97) 100%);
}
html.phase-running #staff{position:relative;z-index:901}

/* the copper portal that opens from the clicked card */
.phase-ink{
  position:fixed;inset:0;z-index:1000;pointer-events:none;
  background:radial-gradient(ellipse at 50% 45%,#3B4366 0%,#333A57 30%,#1E2236 75%);
  display:grid;place-items:center;
}
.phase-ink .phase-ring{
  position:absolute;border-radius:50%;pointer-events:none;
  box-shadow:0 0 0 2px rgba(201,143,101,.9),0 0 40px 8px rgba(201,143,101,.35);
}
.phase-ink img{width:min(38vw,320px);opacity:0;filter:drop-shadow(0 0 30px rgba(201,143,101,.35))}

/* trigger affordance on the Kajin card (optional) */
#staff [data-phase-shift]{cursor:pointer}
#staff [data-phase-shift] .role::after{content:" · Foxify →";color:#9E6647;font-weight:600}

@media (prefers-reduced-motion:reduce){
  .phase-dusk,.phase-ink{transition:none}
}

/* sound toggle under the Staff grid */
#staff .phase-sound{display:block;margin:22px auto 0;background:none;border:1px solid rgba(51,58,87,.25);border-radius:999px;
  padding:6px 14px;font-family:inherit;font-size:12px;font-weight:500;line-height:1;letter-spacing:.06em;color:#333A57;cursor:pointer;opacity:.75}
#staff .phase-sound:hover{opacity:1}
html.phase-running #staff .phase-sound{opacity:0}
