@import url("./desktop-projects.css");

@media screen and (min-width:761px) and (hover:hover) and (pointer:fine) {
  .split-heading .word-mask { overflow: visible !important; }

  main#main :is(h2,h3).split-heading .word-mask .motion-word,
  main#main .page-hero h1.split-heading .word-mask .motion-word {
    transform: none !important;
    opacity: 1 !important;
    padding-block: .2em;
    margin-block: -.2em;
    background-image: none !important;
    animation: none !important;
    color: inherit !important;
  }

  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
    @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
      main#main :is(h2,h3).split-heading .word-mask .motion-word,
      main#main .page-hero h1.split-heading .word-mask .motion-word {
        background-image: linear-gradient(100deg,var(--kc-ink-a) 0% 28%,var(--kc-ink-b) 47% 54%,var(--kc-ink-a) 75% 100%) !important;
        background-size: 320% 100% !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        color: transparent !important;
        animation: dk-ink auto linear both !important;
      }

      main#main :is(h2,h3).split-heading .word-mask .motion-word {
        animation-timeline: --heading-view !important;
        animation-range: cover var(--kc-start,1%) cover calc(var(--kc-start,1%) + 30%) !important;
      }

      main#main .page-hero { view-timeline: --dk-hero block; }

      main#main .page-hero h1.split-heading .word-mask .motion-word {
        animation-timeline: --dk-hero !important;
        animation-range: exit var(--kc-start,1%) exit calc(var(--kc-start,1%) + 35%) !important;
      }
    }
  }

  @supports not ((animation-timeline: view()) and (animation-range: entry 0% entry 100%)) {
    @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
      main#main :is(h2,h3).split-heading.entered .word-mask .motion-word,
      main#main .page-hero h1.split-heading.entered .word-mask .motion-word {
        background-image: linear-gradient(100deg,var(--kc-ink-a) 0% 28%,var(--kc-ink-b) 47% 54%,var(--kc-ink-a) 75% 100%) !important;
        background-size: 320% 100% !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        color: transparent !important;
        animation: dk-ink 700ms ease-out both !important;
        animation-delay: var(--delay, 0s) !important;
      }
    }
  }

  @keyframes dk-ink {
    from { background-position: 100% 0%; }
    to { background-position: 0% 0%; }
  }
}
