---
---

<div class="scroll-progress" aria-hidden="true">
  <span class="scroll-progress__track"></span>
  <span class="scroll-progress__bar" data-scroll-progress></span>
</div>

<style>
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1400;
    pointer-events: none;
  }

  .scroll-progress__track {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.08);
    opacity: 0.65;
  }

  .scroll-progress__bar {
    display: block;
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, #38bdf8, #6366f1 40%, #c084fc 70%, #f472b6);
    opacity: 0;
    transition: transform 0.18s ease-out, opacity 0.3s ease;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.35));
  }
</style>

<script>
  import '../../scripts/scroll-progress.ts';
</script>
