.work-heading .stipple-type {
    position: relative;
    display: inline-block;
    max-inline-size: 100%;
    margin-block: -.11em;
    padding-block: .11em;
    color: var(--paper);
}

.work-heading .stipple-grain {
    display: none;
}

@media (forced-colors: none) {
    @supports (background-clip: text) or (-webkit-background-clip: text) {
        .work-heading .stipple-type,
        .work-heading .stipple-grain {
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .work-heading .stipple-type {
            --screen-scanline: clamp(2.5px, .029em, 4.6px);
            --screen-pixel: clamp(3px, .033em, 5.25px);
            --screen-track: clamp(15rem, 68vw, 56rem);
            --screen-band: 1.2em;
            background-color: var(--paper);
            background-image:
                repeating-linear-gradient(0deg,
                    rgb(10 32 58 / 25%) 0 1px, transparent 1px var(--screen-scanline)),
                repeating-linear-gradient(90deg,
                    rgb(233 253 255 / 14%) 0 1px, transparent 1px var(--screen-pixel)),
                linear-gradient(0deg, transparent 18%, rgb(162 226 255 / 28%) 35%,
                    rgb(238 255 214 / 64%) 59%, rgb(237 255 240 / 82%) 62%,
                    rgb(204 248 255 / 28%) 65%, transparent 80%),
                radial-gradient(ellipse 34% 151% at 59% 83%, #d4ff87 4%,
                    rgb(169 245 120 / 78%) 37%, rgb(114 225 207 / 48%) 68%, transparent 100%),
                linear-gradient(90deg, #94c8ed 0% 4%, #79abd9 12%, #d6f2ff 23%,
                    #eefcff 29%, #84cff8 41%, #72b3e5 54%, #c0e7ff 66%,
                    #daeeff 75%, #8fc5e4 88%, #94c8ed 96% 100%);
            background-size: auto, auto, 100% var(--screen-band), var(--screen-track) 100%, var(--screen-track) 100%;
            background-position: 0 0, 0 0, 0 -.35em, 0 0, 0 0;
            background-repeat: no-repeat, no-repeat, repeat-y, repeat-x, repeat-x;
        }

        .work-heading .stipple-grain {
            position: absolute;
            inset: 0;
            display: block;
            padding: inherit;
            opacity: 0;
            pointer-events: none;
            user-select: none;
            background-image:
                radial-gradient(circle at 42% 43%, #f4ffc8 15%, #daf994 28%, transparent 33%),
                radial-gradient(circle at 65% 59%, #e5f7ff 13%, #bad8f1 23%, transparent 32%),
                linear-gradient(119deg, #7eafcd, #78a4b5 63%, #8daeca);
            background-size: .035em .033em, .054em .045em, 100% 100%;
            background-position:
                var(--stipple-drift-x, 0) var(--stipple-drift-y, 0),
                calc(-1 * var(--stipple-drift-x, 0px)) calc(-1 * var(--stipple-drift-y, 0px)),
                0 0;
            mask-image: radial-gradient(
                ellipse var(--stipple-radius, .57em) .43em at var(--stipple-x, 50%) var(--stipple-y, 50%),
                #000 11%, rgb(0 0 0 / 90%) 48%, transparent 100%
            );
        }
    }
}

@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    .work-heading .stipple-type[data-screen-running] {
        animation: screen-signal 4.2s cubic-bezier(.34, .05, .44, 1);
    }

    .work-heading .stipple-grain {
        transition: opacity .42s ease-out;
    }

    .work-heading .stipple-type[data-stipple-active] .stipple-grain {
        opacity: 1;
        transition-duration: .16s;
    }
}

@keyframes screen-signal {
    to {
        background-position: 0 0, 0 0, 0 .85em, var(--screen-track) 0, calc(-1 * var(--screen-track)) 0;
    }
}
