.hb-wave, .pointer-sheen { display: none; }

@media (any-hover:hover) and (any-pointer:fine) and (prefers-reduced-motion:no-preference) {
  /* The light is painted once and translated within the hovered surface. */
  .pointer-sheen {
    display: block;
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 200ms ease-out;
  }
  [data-mouse-active] > .pointer-sheen { opacity: 1; }
  .pointer-sheen > i {
    display: block;
    pointer-events: none;
    position: absolute;
    left: 0; top: 0;
    width: var(--mouse-diameter, clamp(235px, 30vw, 440px));
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--mouse-glow, rgb(255 193 13 / .18)), transparent);
  }

  .hero { --mouse-glow: rgb(255 220 142 / .13); --mouse-diameter: clamp(340px, 42vw, 680px); }
  .hero .hero-bg {
    translate: calc(var(--mouse-x,0) * clamp(-28px,-1.7vw,-9px)) calc(var(--mouse-y,0) * -12px);
    scale: var(--hero-pointer-scale, 1);
    transition: translate 260ms ease-out, scale 360ms ease-out;
  }
  .hero[data-mouse-active] { --hero-pointer-scale: 1.055; }
  .hero .hero-title {
    translate: calc(var(--mouse-x,0) * 8px) calc(var(--mouse-y,0) * 4px);
    transition: translate 220ms ease-out;
  }
  .hero .hero-kicker .hairline {
    transform-origin: left;
    scale: calc(1 + var(--mouse-x,0) * .35) 1;
    transition: scale 210ms ease-out;
  }

  .media-card { --mouse-glow: rgb(255 213 113 / .18); --mouse-diameter: clamp(210px, 23vw, 360px); }
  .media-card img, .media-card .station-mark, .media-card .tile-arr svg { transition: transform 200ms ease-out; }
  .media-card[data-mouse-active] img {
    transform: perspective(900px) translate3d(calc(var(--mouse-x) * -7px),calc(var(--mouse-y) * -5px),0)
               rotateX(calc(var(--mouse-y) * -2.4deg)) rotateY(calc(var(--mouse-x) * 2.8deg)) scale(1.10);
  }
  .media-card[data-mouse-active] .station-mark {
    transform: translate(calc(var(--mouse-x) * -8px),calc(var(--mouse-y) * -5px)) rotate(calc(var(--mouse-x) * 2deg));
  }
  .media-card[data-mouse-active] .tile-arr svg { transform: translate(calc(var(--mouse-x) * 3px),calc(var(--mouse-y) * 3px)); }

  .hb-readout { --mouse-glow: rgb(255 207 75 / .23); }
  .hb-readout-content { z-index: 1; }
  .hb-readout .hb-speed {
    translate: calc(var(--mouse-x,0) * -7px) calc(var(--mouse-y,0) * -4px);
    transition: translate 200ms ease-out;
  }
  .hb-wave {
    position: absolute; inset: 15% 2% 15% 56%; display: flex; align-items: center;
    justify-content: space-between; gap: 2px;
    opacity: 0; transition: opacity 220ms ease-out; pointer-events: none;
  }
  .hb-readout[data-mouse-active] .hb-wave { opacity: .85; }
  .hb-wave i {
    --delta: calc(var(--bar-x) - var(--mouse-x,0));
    --distance: max(var(--delta), calc(-1 * var(--delta)));
    height: 86%; flex: 1; max-width: 4px;
    background: repeating-linear-gradient(to top, #ffcb34 0 3px, transparent 3px 6px);
    transform: scaleY(clamp(.07, calc(.86 - 1.7 * var(--distance) - .13 * var(--mouse-y,0)), 1));
    transition: transform 150ms ease-out;
  }

  /* Only the bezel and reflected light react. The OTT gesture surface stays still. */
  .ott-device-wrap { --mouse-glow: rgb(255 236 174 / .095); --mouse-diameter: clamp(170px,20vw,300px); }
  .ott-device-wrap > .pointer-sheen { border-radius: 20px; inset: 6px 0 13px; }
  .ott-device-wrap[data-mouse-active] .ott-shell {
    box-shadow: inset 0 0 0 2px #1c1d20,
      calc(var(--mouse-x) * -2px) calc(var(--mouse-y) * -2px) 1px rgb(255 213 95 / .72),
      0 16px 28px -20px #000;
  }

  .hb-sport { --mouse-glow: rgb(255 229 161 / .12); --mouse-diameter: min(52vw,680px); }
  .hb-stadium {
    transform: translate3d(calc(var(--mouse-x,0) * -20px), calc(var(--mouse-y,0) * -9px), 0) scale(var(--stadium-scale, 1));
    transition: transform 260ms ease-out;
  }
  .hb-sport[data-mouse-active] { --stadium-scale: 1.065; }
  .hb-sport h2 { translate: calc(var(--mouse-x,0) * 6px) 0; transition: translate 220ms ease-out; }

  .home-business-stage { position: relative; --mouse-glow: rgb(255 213 121 / .10); }
  .home-business-scene img {
    transform: perspective(950px) translate3d(calc(var(--mouse-x,0) * -10px),calc(var(--mouse-y,0) * -6px),0)
               rotateY(calc(var(--mouse-x,0) * 4deg)) rotateX(calc(var(--mouse-y,0) * -3deg));
    transition: transform 240ms ease-out;
  }
}
