/* Hero X-ray effect on the battery (see js/xray.js and docs/XRAY-IMAGE.md). Slow cross-fade, nothing else moves. */
.hero-inner { pointer-events: none; }
.hero-inner .hero-copy { pointer-events: auto; }

.xray { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
/* Full-frame copy of the poster in which only the battery is see-through; same object-fit as the poster, clipped to the battery by JS */
.xray-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: 0; pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
.xray.is-on .xray-layer { opacity: 1; }
.xray-hit { position: absolute; display: block; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.xray-hit:focus-visible { outline: none; }

.xray-note { position: absolute; margin: 0; max-width: 36ch; text-align: right; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.xray.is-on .xray-note { opacity: 1; }

.hero.has-video .xray { display: none; }
@media (max-width: 700px) { .xray-note { font-size: 9.5px; letter-spacing: 0.1em; max-width: 28ch; } }
@media (prefers-reduced-motion: reduce) { .xray-layer, .xray-note { transition: none; } }
.hero--fit .xray-layer { object-fit: contain; }
