/* The result line uses the same aspect ratio as the E4 product image. */
.gp-e4-result-ray {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:0;
}

@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  body.gp-prisma.gp-light .hero-combined h1 > .gp-prisma-text {
    background-image:
      linear-gradient(110deg, transparent 30%, #307290 47%, #684b94 54%, transparent 70%),
      linear-gradient(110deg,#354955,#526d82 55%,#756a9d);
    background-size:235% 100%, 100% 100%;
    background-position:-30% 50%, 0 0;
    background-repeat:no-repeat;
    animation:gp-home-heading-light 1350ms 230ms cubic-bezier(.24,.7,.22,1) both;
  }

  body.gp-light.gp-launch-home .hero-combined .geo-photo {
    transform-origin:65% 55%;
    animation:gp-home-photo-depth 2650ms cubic-bezier(.25,.6,.25,1);
  }

  .is-ray-playing .gp-e4-result-ray {
    animation:gp-home-ray-visibility 1550ms linear;
  }

  .gp-e4-result-ray path {
    stroke:url(#gp-home-e4-light);
    stroke-width:3.5;
    stroke-linecap:round;
    stroke-dasharray:15 120;
    stroke-dashoffset:16;
    filter:drop-shadow(0 0 3px #587acd);
  }

  .is-ray-playing .gp-e4-result-ray path {
    animation:gp-home-e4-light 1550ms cubic-bezier(.35,.09,.48,.93);
  }

  #main .gp-silver-preview [data-motion-product] { position:relative; }
  [data-motion-product="bess"] { --gp-art-mask:url("battery-storage.webp"); }
  [data-motion-product="solar"] { --gp-art-mask:url("energistudio-solpark.svg"); }
  [data-motion-product="charging"] { --gp-art-mask:url("fast-charging.webp"); }

  #main .gp-silver-preview [data-motion-product]::after {
    content:"";
    position:absolute;
    inset:0;
    width:calc(86% - 17.2px);
    height:calc(94% - 18.8px);
    margin:auto;
    mask:var(--gp-art-mask) center / contain no-repeat;
    background:linear-gradient(114deg,transparent 40%,#a9e7ff55 46%,#fff9 50%,#b3a0ff44 54%,transparent 60%);
    background-size:250% 100%;
    background-repeat:no-repeat;
    background-position:130% 50%;
    pointer-events:none;
    opacity:0;
  }

  #main .gp-silver-preview [data-motion-product="solar"]::after {
    width:calc(94% - 18.8px);
  }

  #main .gp-silver-preview .gp-service-main:focus-visible [data-motion-product]::after {
    animation:gp-home-silver-reflection 1000ms ease-out;
  }
}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  #main .gp-silver-preview .gp-service-main:hover [data-motion-product]::after {
    animation:gp-home-silver-reflection 1000ms ease-out;
  }
}

@keyframes gp-home-heading-light {
  from { background-position:130% 50%, 0 0; }
  to { background-position:-30% 50%, 0 0; }
}

@keyframes gp-home-photo-depth {
  0%, 100% { transform:scale(1); }
  55% { transform:scale(1.036); }
}

@keyframes gp-home-ray-visibility {
  0%, 100% { opacity:0; }
  12%, 90% { opacity:1; }
}

@keyframes gp-home-e4-light {
  from { stroke-dashoffset:16; }
  to { stroke-dashoffset:-100; }
}

@keyframes gp-home-silver-reflection {
  0% { background-position:130% 50%; opacity:0; }
  18%, 82% { opacity:1; }
  100% { background-position:-30% 50%; opacity:0; }
}
