/* Hero grid floor: perspective grid scrolling toward the viewer, fading into a lime horizon with a soft sun.
   Applies to the weekly closes banner (.banner.hero-anim). Injected by hero.js. */
.banner.hero-anim.has-floor {
  background:
    radial-gradient(70% 55% at 50% 44%, rgba(196,255,14,.10), transparent 70%),
    linear-gradient(180deg, #0A0A0A 0%, #141414 44%, #0A0A0A 100%);
  animation: none;
}
.hero-floor-wrap { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-sun {
  position: absolute; left: 50%; top: 22%; width: min(38%, 340px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(196,255,14,.55) 0%, rgba(196,255,14,.18) 48%, rgba(196,255,14,0) 72%);
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 62%);
  animation: heroSun 6s ease-in-out infinite;
}
.hero-sun::after { /* retro horizontal slits across the sun */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(180deg, transparent 0 9px, #0F0F0F 9px 12px);
  -webkit-mask-image: linear-gradient(180deg, transparent 22%, #000 52%);
  mask-image: linear-gradient(180deg, transparent 22%, #000 52%);
}
@keyframes heroSun { 0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.04); } }
.hero-horizon {
  position: absolute; left: 0; right: 0; top: 46%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(196,255,14,.9) 30%, rgba(196,255,14,.9) 70%, transparent);
  box-shadow: 0 0 18px 4px rgba(196,255,14,.35);
}
.hero-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 54%;
  perspective: 220px; perspective-origin: 50% 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}
.hero-plane {
  position: absolute; left: -60%; width: 220%; top: 0; height: 400%;
  transform-origin: 50% 0; transform: rotateX(72deg);
  background:
    linear-gradient(rgba(196,255,14,.55) 1.6px, transparent 1.6px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(196,255,14,.55) 1.6px, transparent 1.6px) 0 0 / 34px 34px;
  animation: heroFloor 1.8s linear infinite;
  will-change: transform;
}
@keyframes heroFloor { from { transform: rotateX(72deg) translateY(0); } to { transform: rotateX(72deg) translateY(34px); } }
/* keep text readable over the floor */
.banner.hero-anim.has-floor .s-target > div:not(.hl) { background: rgba(10,10,10,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.banner.hero-anim.has-floor > p { text-shadow: 0 1px 8px rgba(0,0,0,.8); }
@media (max-width: 1023px) {
  .hero-sun { top: 14%; width: 60%; }
  .hero-horizon { top: 38%; }
  .hero-floor { height: 62%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-plane, .hero-sun { animation: none !important; }
}

/* 17/11: the sun is now Joe's own mark (3 lime bars) rising behind the horizon */
.hero-sun { background: none; border-radius: 0; filter: drop-shadow(0 0 28px rgba(196,255,14,.45)); width: min(30%, 300px); top: 6%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 66%); mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 66%); }
.hero-sun::after { display: none; }
.hero-sun svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-sun svg path { fill: rgba(196,255,14,.85); }
@media (max-width: 1023px) { .hero-sun { top: 4%; width: 54%; } }

/* iPhone fix 17/11: iOS Safari does not clip 3D-transformed children with overflow:hidden.
   clip-path forces the clip, so the grid floor can never widen the page. */
.banner.hero-anim { clip-path: inset(0 round 18px); -webkit-clip-path: inset(0 round 18px); isolation: isolate; }
.hero-floor-wrap, .hero-floor { clip-path: inset(0); -webkit-clip-path: inset(0); }
