/* Hi-Res Homes — occasional Charlie-style light sweep (1125g).
   A soft diagonal strip of light passes through the type once (~1.2s),
   then fades. JS retriggers about every 10 seconds (slight random).
   Never a constant loop. prefers-reduced-motion: off.
   Text stays readable: the calendar phrase uses background-clip text with
   currentColor always under the glyphs; the header button uses a
   pseudo-element sheen so the label is never clipped. */

/* (a) "booked calendar" — clip-to-text, currentColor always covers the letters. */
h2 em.booked.hrh-glow.hrh-glow-run {
  background-image: linear-gradient(
    110deg,
    currentColor 0%,
    currentColor 40%,
    #fff 49%,
    #fff8cc 50%,
    #fff 51%,
    currentColor 60%,
    currentColor 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hrh-glow-sweep 1.2s ease-in-out 1;
}

@keyframes hrh-glow-sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}

/* (b) header "Book a shoot" — sheen over the pill; label stays solid white. */
header.sticky a[href="#contact"][data-hrh-glow] {
  position: relative;
  overflow: hidden;
}
header.sticky a[href="#contact"][data-hrh-glow]::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -80%;
  width: 55%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 248, 204, 0.35) 52%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  pointer-events: none;
  transform: translateX(-40%);
  opacity: 0;
}
header.sticky a[href="#contact"][data-hrh-glow].hrh-glow-run::after {
  opacity: 1;
  animation: hrh-glow-sheen 1.2s ease-in-out 1;
}

@keyframes hrh-glow-sheen {
  from { transform: translateX(-40%); }
  to   { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  h2 em.booked.hrh-glow.hrh-glow-run {
    animation: none !important;
    background-image: none !important;
    background: none !important;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    -webkit-background-clip: unset;
  }
  header.sticky a[href="#contact"][data-hrh-glow]::after,
  header.sticky a[href="#contact"][data-hrh-glow].hrh-glow-run::after {
    animation: none !important;
    opacity: 0 !important;
    content: none;
  }
}
