
/** --- GLITCH --- **/
/* Colour tokens — override to re-skin the effect:
   --ink    main text colour (defaults to currentColor)
   --ink-2  primary accent   --ink-3  secondary accent */
:root { --ink: currentColor; --ink-2: #FF4FD8; --ink-3: #4FF8FF; }

/* 02 Glitchcore — RGB channel-split glitch with sliced jumps */
.fx-glitch {
    position: relative;
    font: 600 30px/1.1 "JetBrains Mono", monospace;
    letter-spacing: .06em;
    color: var(--ink);
}
.fx-glitch::before, .fx-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
}
.fx-glitch::before {
    color: var(--ink-2);
    clip-path: inset(0 0 55% 0);
    animation: fx-glitch-a 2.6s steps(1) infinite;
}
.fx-glitch::after {
    color: var(--ink-3);
    clip-path: inset(45% 0 0 0);
    animation: fx-glitch-b 2.6s steps(1) infinite;
}
@keyframes fx-glitch-a {
    0%, 12%, 20%, 55%, 100% { transform: translate(0); opacity: 0; }
    13% { transform: translate(-5px, -2px); opacity: .9; }
    16% { transform: translate(4px, 1px);   opacity: .9; }
    48% { transform: translate(-3px, 2px);  opacity: .9; }
    51% { transform: translate(2px, -1px);  opacity: .9; }
}
@keyframes fx-glitch-b {
    0%, 14%, 22%, 60%, 100% { transform: translate(0); opacity: 0; }
    15% { transform: translate(5px, 2px);   opacity: .9; }
    18% { transform: translate(-4px, -1px); opacity: .9; }
    52% { transform: translate(3px, -2px);  opacity: .9; }
    56% { transform: translate(-2px, 1px);  opacity: .9; }
}


/** --- DECODER --- **/
/* <!-- Markup: <div class="fx-decoder" role="img" aria-label="DECODER"></div> --> **/
/* Colour tokens — override to re-skin the effect:
   --ink    main text colour (defaults to currentColor)
   --ink-2  primary accent   --ink-3  secondary accent */
:root { --ink: currentColor; --ink-2: #FF4FD8; --ink-3: #4FF8FF; }

/* 10 Cipher — scrambled characters decode into the word, then re-encrypt */
.fx-decoder {
    font: 600 28px/1.2 "JetBrains Mono", monospace;
    letter-spacing: .08em;
    color: var(--ink-3);
}
.fx-decoder::after {
    content: "▓K#R1&Q";
    animation: fx-decoder 4s steps(1) infinite;
}
@keyframes fx-decoder {
    0%   { content: "▓K#R1&Q"; color: var(--ink-3); }
    8%   { content: "D%#OD3▒"; }
    16%  { content: "DE☰O*ER"; }
    24%  { content: "DEC0D£R"; }
    32%  { content: "DECOD€R"; }
    40%, 82% { content: "DECODER"; color: var(--ink); }
    88%  { content: "D3C0*€R"; color: var(--ink-3); }
    94%  { content: "▒#COD1Q"; }
}


/** -- OUTLINE --**/
/*<!-- Markup: <svg class="fx-contour" viewBox="0 0 260 56" role="img" aria-label="OUTLINE"><text x="50%" y="50%" dominant-baseline="central" text-anchor="middle">OUTLINE</text></svg> -->*/

/* Colour tokens — override to re-skin the effect:
   --ink    main text colour (defaults to currentColor)
   --ink-2  primary accent   --ink-3  secondary accent */
:root { --ink: currentColor; --ink-2: #FF4FD8; --ink-3: #4FF8FF; }

/* 15 Wireframe — a dashed outline endlessly traces the letterforms */
.fx-contour {
    width: 240px;
    height: 56px;
    overflow: visible;
}
.fx-contour text {
    font: 600 40px "JetBrains Mono", monospace;
    letter-spacing: .02em;
    fill: color-mix(in srgb, var(--ink) 10%, transparent);
    stroke: var(--ink-3);
    stroke-width: 1.2;
    stroke-dasharray: 34 66;
    animation: fx-contour 3.2s linear infinite;
}
@keyframes fx-contour {
    to { stroke-dashoffset: -100; }
}