/* sun-hero.css — live Siteworks sun shader and ambient hero bloom */
.sun-wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 620px;
  justify-self: end;
  opacity: 0;
  animation: sunIn 1.8s var(--ease, cubic-bezier(.2,.7,.2,1)) .35s forwards;
}

html.anim-done .sun-wrap {
  opacity: 1;
  animation: none;
}

@keyframes sunIn {
  from {
    opacity: 0;
    transform: scale(.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sun-host {
  position: absolute;
  inset: -26%;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 40%, rgba(0,0,0,.55) 64%, rgba(0,0,0,.18) 82%, transparent 97%);
  mask-image: radial-gradient(circle closest-side at 50% 50%, #000 40%, rgba(0,0,0,.55) 64%, rgba(0,0,0,.18) 82%, transparent 97%);
}

.sun-host canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Ambient bloom seats the sphere into the black Siteworks canvas. */
.sun-wrap::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(255,168,60,calc(.22 * var(--glow-mult, 1))) 0%, rgba(140,80,240,calc(.30 * var(--glow-mult, 1))) 44%, transparent 74%);
  filter: blur(28px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sun-wrap {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .sun-wrap {
    max-width: 460px;
    justify-self: center;
  }

  .sun-host {
    inset: -16%;
  }
}

@media (max-width: 760px) {
  .sun-wrap {
    justify-self: center;
    max-width: 360px;
    margin-top: 28px;
  }
}
