/* footer-fx.css — footer light effects, loaded after main.css */

/* ---------- 1. A glowing horizon along the top edge: a fine cream line with a coral heart,
   a soft spill of light below it and a slow highlight travelling along it ---------- */
.site-footer { isolation: isolate; border-top-color: transparent; }
.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.site-footer::before {
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent) -30% 0 / 14% 100% no-repeat,
    linear-gradient(90deg, rgba(244, 240, 230, 0) 0%, rgba(244, 240, 230, .32) 18%, #FFC2A6 44%, #FF6B3D 50%, #FFC2A6 56%, rgba(244, 240, 230, .32) 82%, rgba(244, 240, 230, 0) 100%);
  box-shadow: 0 0 10px rgba(255, 107, 61, .45), 0 0 26px rgba(255, 107, 61, .18);
  animation: ffx-travel 9s cubic-bezier(.45, 0, .55, 1) infinite;
}
.site-footer::after {
  left: 6%;
  right: 6%;
  top: 0;
  height: clamp(120px, 16vw, 220px);
  background:
    radial-gradient(46% 100% at 50% 0%, rgba(255, 107, 61, .13), rgba(255, 140, 90, .045) 48%, transparent 76%),
    radial-gradient(70% 60% at 50% 0%, rgba(244, 240, 230, .045), transparent 70%);
}
@keyframes ffx-travel {
  0% { background-position: -30% 0, 0 0; }
  55%, 100% { background-position: 130% 0, 0 0; }
}

/* ---------- 2. The giant wordmark switches on: a lit sign with a gentle gradient, a light
   sweep that passes across the letters, then a calm warm glow ---------- */
.site-footer__giant svg {
  color: rgba(255, 236, 214, .26);
  filter: drop-shadow(0 0 6px rgba(255, 140, 90, .28));
  -webkit-mask-image:
    linear-gradient(100deg, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, .36) 40%, #000 50%, rgba(0, 0, 0, .36) 60%, rgba(0, 0, 0, .36) 100%),
    linear-gradient(180deg, #000 18%, rgba(0, 0, 0, .5) 100%);
  mask-image:
    linear-gradient(100deg, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, .36) 40%, #000 50%, rgba(0, 0, 0, .36) 60%, rgba(0, 0, 0, .36) 100%),
    linear-gradient(180deg, #000 18%, rgba(0, 0, 0, .5) 100%);
  -webkit-mask-size: 300% 100%, 100% 100%;
  mask-size: 300% 100%, 100% 100%;
  -webkit-mask-position: 100% 0, 0 0;
  mask-position: 100% 0, 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  animation: ffx-sweep 7s cubic-bezier(.45, 0, .2, 1) infinite 1s;
}
@keyframes ffx-sweep {
  0% { -webkit-mask-position: 100% 0, 0 0; mask-position: 100% 0, 0 0; }
  28%, 100% { -webkit-mask-position: 0% 0, 0 0; mask-position: 0% 0, 0 0; }
}

/* pause, the performance switch and reduced motion: everything holds still */
html.is-paused .site-footer::before,
html.is-paused .site-footer__giant svg,
.perf-off .site-footer::before,
.perf-off .site-footer__giant svg,
.site-footer.perf-off::before,
.site-footer.perf-off .site-footer__giant svg { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .site-footer::before,
  .site-footer__giant svg { animation: none !important; }
}
