/* ════════════════════════════════════════════════════════════
   Third Rock Wealth · gen-canvas.css
   Layering for the marketing-page generative canvases.

   A .gen-section is a positioning + stacking context. Its canvas
   sits behind the content at z-0; the content rides above at z-1.
   Mirrors the about-hero's .about-hero__visual / __content layering.
   Below the mobile breakpoint the canvases are removed entirely
   (the engine then skips WebGL/2D context creation for that host).
   ════════════════════════════════════════════════════════════ */

.gen-section {
  position: relative;
  isolation: isolate;
}

.gen-section__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gen-section__canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gen-section__content {
  position: relative;
  z-index: 1;
}

/* Mobile — drop the generative layer; the static editorial layout
   is what the audience (mostly on phones) already gets cleanly. */
@media (max-width: 640px) {
  .gen-section__canvas { display: none; }
}
