.glass-title-filter { position: absolute; }

:is(#hero-title, [data-silk-reveal="title"]) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.title-glass-run { position: relative; }
.title-glass__face {
    position: absolute;
    inset: -.21em -.1em;
    padding: .21em .1em;
    display: block;
    visibility: hidden;
    pointer-events: none;
    text-shadow: none;
}
.title-glass__solid::before, .title-glass__finish::before { content: attr(data-text); }
.title-glass__finish {
    position: absolute;
    inset: 0;
    padding: inherit;
    /* Keep the filtered face independent of the animated mask on its parent. */
    --title-glass-mask: initial;
    /* The filter reads this gray as the density of the glass. */
    color: #777;
    filter: var(--title-glass-relief);
}
canvas.title-glass__finish {
    inline-size: 100%;
    block-size: 100%;
    padding: 0;
    filter: none;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .title-glass__finish::before {
        background:
            linear-gradient(118deg, transparent 33%, #ffffff40 45%, transparent 57%),
            linear-gradient(180deg, #f2f2f2 0%, #7a7a7a 22%, #2e2e2e 56%, #666 86%, #c4c4c4);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}
.title-glass__marker {
    position: absolute;
    pointer-events: none;
    border-block-end: 2px solid var(--silk-accent);
}
.glass-title-description {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

@media screen and (forced-colors: none) {
    .title-glass__original {
        pointer-events: var(--chapter-pointer, auto);
        cursor: var(--silk-action-cursor, pointer);
    }
    .is-glass-painted > .title-glass__original { color: transparent; text-shadow: none; }
    .is-glass-painted > .title-glass__face { visibility: visible; }
    .is-glass-painted > .title-glass__material { mask: var(--title-glass-mask); }
    /* Frost the cloth inside the letters. Where an ancestor isolates its
       backdrop, the tint alone carries the glass. */
    .is-glass-painted.has-glass-shape > .title-glass__frost {
        clip-path: var(--title-glass-shape);
        mask: var(--title-glass-mask);
        background: linear-gradient(180deg, rgb(238 243 255 / .22), rgb(212 224 255 / .06) 48%, rgb(226 234 255 / .13));
        -webkit-backdrop-filter: blur(max(5px, .04em)) saturate(1.7) brightness(1.28);
        backdrop-filter: blur(max(5px, .04em)) saturate(1.7) brightness(1.28);
    }
    .is-glass-painted:not(.has-glass-shape) > .title-glass__frost { visibility: hidden; }
    .masthead > .title-glass-run:last-child > .title-glass__original {
        mask-image: linear-gradient(145deg, #000 0% 73%, #000c 94% 100%);
    }
    .masthead > .is-glass-painted:last-child > .title-glass__solid {
        mask: linear-gradient(145deg, #000 0% 73%, #000c 94% 100%) intersect, linear-gradient(#000, #000) subtract, var(--title-glass-mask);
    }
    .is-glass-painted > .title-glass__solid {
        mask: linear-gradient(#000, #000) subtract, var(--title-glass-mask);
    }
}
@media (forced-colors: active), print {
    .title-glass__face, .title-glass__marker { display: none; }
}
