/* Home: an editable, scroll-first canvas. The full node diagram remains in /space. */
body.is-home-scroll .hero-node-stage > [data-hero-node],
body.is-home-scroll .hero-node-stage > [data-node-disconnect],
body.is-home-scroll .hero-node-stage > [data-hero-node-mesh],
body.is-home-scroll .hero-node-stage > .hero-mobile-chain-mesh,
body.is-home-scroll .hero-camera-zoom {
  display: none !important;
}

/* Preserve the complete legacy navigation in the DOM for the future redesign. */
body.is-home-scroll .nav.card-nav { display: none !important; }

/* No rubber-band rectangle while clicking or dragging the empty Home grid.
   The selection engine and styles remain unchanged for /space. */
body.is-home-scroll .workspace-marquee-selection {
  display: none !important;
}

/* Violet illumination for the two expanding stars beside the hero copy. */
body.is-home-scroll .hero__copy {
  --home-star-glow-primary: #9e97e8;
  --home-star-glow-secondary: #958deb;
}

body.is-home-scroll .hero__pin-halo {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--home-star-glow-primary) 78%, transparent) 0%,
    var(--home-star-glow-primary) 18%,
    color-mix(in srgb, var(--home-star-glow-secondary) 27%, transparent) 42%,
    color-mix(in srgb, var(--home-star-glow-secondary) 8%, transparent) 58%,
    transparent 74%
  );
}

body.is-home-scroll .hero__pin--left .hero__pin-trail {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--home-star-glow-primary) 45%, transparent),
    color-mix(in srgb, var(--home-star-glow-secondary) 17%, transparent) 42%,
    transparent);
}

body.is-home-scroll .hero__pin--right .hero__pin-trail {
  background: linear-gradient(270deg,
    color-mix(in srgb, var(--home-star-glow-primary) 45%, transparent),
    color-mix(in srgb, var(--home-star-glow-secondary) 17%, transparent) 42%,
    transparent);
}

/* The empty background should be scrollable by touch, while custom nodes
   retain their individual touch-action:none for precise dragging. */
@media (pointer: coarse) {
  body.is-home-scroll .hero--node-canvas,
  body.is-home-scroll .hero-node-camera,
  body.is-home-scroll .hero-node-stage {
    touch-action: pan-y;
  }
}
