/* Manvi Acharya — touch FX layer (v12). Phones and tablets only; loaded after touch.css.
   Uses the individual `scale` / `rotate` / `translate` properties where it can so it never fights
   the existing reveal animations or the press-tilt, which both use `transform`. */

.fx-cv{position:fixed;left:0;top:0;width:100%;height:100%;z-index:9990;pointer-events:none}
.fx-flash{position:fixed;inset:0;z-index:9991;pointer-events:none;opacity:0;
  background:radial-gradient(circle at var(--fx,50%) var(--fy,50%),rgba(214,255,79,.95),rgba(122,92,255,.4) 38%,transparent 72%)}
.fx-toast{position:fixed;left:50%;bottom:calc(86px + env(safe-area-inset-bottom,0px));z-index:9992;translate:-50% 0;max-width:calc(100% - 40px);
  padding:11px 18px;border-radius:999px;background:var(--navy);color:var(--lime);border:1.5px solid rgba(214,255,79,.55);
  font:700 .82rem var(--sans,system-ui);letter-spacing:.02em;text-align:center;pointer-events:none;opacity:0;
  box-shadow:0 14px 34px -10px rgba(21,16,58,.7)}

@media (hover:none),(pointer:coarse){
  /* no accidental text selection / image callout while holding or peeking */
  .stage,.g-tile,.o-card,.chip{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}

  /* dock icon hops and squashes when its section becomes the active one */
  @keyframes fxHop{0%{transform:translateY(0) scale(1)}30%{transform:translateY(-9px) scale(1.18,.9)}60%{transform:translateY(1px) scale(.92,1.1)}82%{transform:translateY(-2px) scale(1.03)}100%{transform:none}}
  .dock a.on svg{animation:fxHop .6s cubic-bezier(.3,1.3,.5,1)}

  /* scroll velocity: images skew and swell, headings split into coral / violet fringes */
  .g-tile img,.portfolio-art img,.o-card img{
    transform:skewY(calc(var(--sv,0) * 1deg)) scale(calc(1.01 + var(--sva,0) * .035));transition:transform .16s linear}
  .sec-head h2,.contact h2{
    text-shadow:calc(var(--sva,0) * -3px) 0 rgba(255,92,57,calc(var(--sva,0) * .75)),calc(var(--sva,0) * 3px) 0 rgba(122,92,255,calc(var(--sva,0) * .75))}

  /* swipe rows become 3D coverflows */
  #features,.grid-others{perspective:1100px;perspective-origin:50% 40%}

  /* press-and-hold peek on gallery tiles */
  .g-tile{transition:transform .3s,box-shadow .3s,scale .38s cubic-bezier(.34,1.56,.64,1),translate .09s linear,rotate .2s}
  .g-item.peek{z-index:40}
  .g-item.peek .g-tile{scale:1.13;box-shadow:0 34px 56px -18px rgba(21,16,58,.75),0 0 0 3px var(--lime)}
  .g-item.peek figcaption{opacity:0;transition:opacity .2s}
  body.fx-peeking .g-item:not(.peek){opacity:.4;transition:opacity .25s}

  /* the 3D portrait glows while it charges */
  .stage.fx-charging .portrait{filter:drop-shadow(0 0 22px rgba(214,255,79,.65)) saturate(1.2);transition:filter .5s}
}

@media (prefers-reduced-motion:reduce){
  .fx-cv,.fx-flash,.fx-toast{display:none}
}
