/* The footer's grid becomes a shallow, pointer-lit plane behind the hero logo. */
.naxit-home-page .banner-section > .naxit-hero-grid {
  --naxit-footer-grid-row: clamp(72px,9vw,140px);
  --hero-tilt-x: 16deg;
  --hero-tilt-y: 0deg;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-pointer-x: 50%;
  --hero-pointer-y: 50%;
  --hero-light: 0;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(180deg,transparent,#000 12%,#000 76%,transparent);
  mask-image: linear-gradient(180deg,transparent,#000 12%,#000 76%,transparent);
}
.naxit-hero-grid-plane {
  position: absolute;
  inset: -10% -5%;
  transform: translate3d(var(--hero-shift-x),var(--hero-shift-y),0) rotateX(var(--hero-tilt-x)) rotateY(var(--hero-tilt-y));
  transform-origin: 50% 55%;
  transform-style: preserve-3d;
}
.naxit-hero-grid[data-motion="moving"] .naxit-hero-grid-plane { will-change: transform; }
.naxit-hero-grid-plane::before,.naxit-hero-grid-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px);
  background-size: calc(100% / 6) var(--naxit-footer-grid-row);
}
.naxit-hero-grid-plane::after {
  opacity: var(--hero-light);
  background-image: linear-gradient(rgba(255,255,255,.48) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.48) 1px,transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 330px 270px at var(--hero-pointer-x) var(--hero-pointer-y),#000,transparent 80%);
  mask-image: radial-gradient(ellipse 330px 270px at var(--hero-pointer-x) var(--hero-pointer-y),#000,transparent 80%);
}
.naxit-hero-grid .footer-grid-stars { z-index: 1; -webkit-mask-image: none; mask-image: none; }
.naxit-hero-grid-sparks { position: absolute; inset: 0; }
.naxit-hero-grid-sparks span {
  position: absolute;
  left: var(--spark-x,50%);
  top: var(--spark-y,50%);
  width: 12px;
  height: 12px;
  color: white;
  opacity: calc(var(--hero-light) * .8);
  transform: translate(-50%,-50%);
}
.naxit-hero-grid-sparks span:nth-child(2) { width: 9px; height: 9px; opacity: calc(var(--hero-light) * .4); }
.naxit-hero-grid-sparks span:nth-child(3) { width: 6px; height: 6px; opacity: calc(var(--hero-light) * .2); }
.naxit-hero-grid-sparks span::before,.naxit-hero-grid-sparks span::after { content: ""; position: absolute; background: currentColor; }
.naxit-hero-grid-sparks span::before { left: 0; top: calc(50% - .5px); width: 100%; height: 1px; }
.naxit-hero-grid-sparks span::after { top: 0; left: calc(50% - .5px); height: 100%; width: 1px; }
@media (hover: none),(pointer: coarse),(prefers-reduced-motion: reduce) {
  .naxit-hero-grid-plane { inset: 0; transform: none; }
  .naxit-hero-grid-plane::after,.naxit-hero-grid-sparks { display: none; }
}
