/* =====================================================================
   Lekić Lab — home-page hero visual (assets/js/hero.js). Owner: hero-viz.
   The page sizes .hero-viz (full-bleed, ~100vh); hero.js fills it with a
   <canvas class="hero-canvas"> and a seismogram panel (.hero-seis).
   Style: flat journal-figure look — no blur, glow, rounding or shadow.
   Panel placement can be tuned by the page with custom properties:
     --hero-seis-right, --hero-seis-bottom, --hero-seis-width, --hero-seis-height
   ===================================================================== */

.hero-viz { isolation: isolate; }

.hero-viz > .hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.hero-viz.is-over-earth > .hero-canvas { cursor: pointer; }

/* seismogram panel: white, 1px rule, square corners (bottom-right on wide screens) */
.hero-viz .hero-seis {
  position: absolute; z-index: 2;
  right: var(--hero-seis-right, clamp(16px, 2.2vw, 32px));
  bottom: var(--hero-seis-bottom, clamp(16px, 3vh, 32px));
  width: var(--hero-seis-width, 356px);
  height: var(--hero-seis-height, 198px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}
.hero-viz .hero-seis > canvas { display: block; width: 100%; height: 100%; max-width: none; }

/* narrow / portrait screens: the page copy needs the lower half, so the panel is off by default.
   A page can opt in with  .hero-viz { --hero-seis-portrait: block; }  */
.hero-viz.is-portrait .hero-seis {
  display: var(--hero-seis-portrait, none);
  left: 16px; right: 16px; margin: 0 auto; width: auto; max-width: 460px;
  height: var(--hero-seis-height-portrait, 136px);
  bottom: var(--hero-seis-bottom-portrait, 16px);
}
.hero-viz.no-panel .hero-seis { display: none; }
