/* Effetti di testo · libreria completa (21/11/2026)
   Fonte: colorion-text-effects, https://github.com/ckissi/colorion-text-effects (MIT, «use, modify and ship»),
   copia di lavoro in design/effetti/colorion-text-effects. Adattamenti: classi e animazioni da fx- a tx-, tolti font,
   dimensioni e spaziature fisse (l'effetto prende la tipografia del titolo), colori dai token del sito.
   Uso: <span class="tx-TIPO">parola</span> su una parola o una frase breve di un titolo; assets/js/effetti-testo.js
   prepara da solo le lettere e data-text dove servono. Elenco e anteprima: design/effetti/vetrina.html.
   Non usare tx-decoder (il testo vero sparisce: lo scrive il CSS), tx-contour, tx-annotate e tx-textpath senza il
   loro markup speciale (vedi vetrina). Con prefers-reduced-motion tutto è fermo. */
[class*="tx-"] { --ink-2: var(--a); --ink-3: var(--a-hi); --base: 8px; }   /* --ink resta il colore del testo del sito */
.tx-scuro, .tx-scuro [class*="tx-"], [class*="tx-"].tx-scuro { --ink: #f8fafc; --ink-2: var(--a-hi); --ink-3: #e2e8f0; }   /* su fondi scuri */
[class*="tx-"] > b { font-weight: inherit; }

/* ---------- Text effects (ink on surface) ----------
   Every effect paints with three colour tokens so a copied snippet can be
   re-skinned by overriding them:
     --ink    main text colour        (defaults to currentColor)
     --ink-2  primary accent          (hot magenta)
     --ink-3  secondary accent        (electric cyan)
   All effect keyframes are tx-prefixed to stay collision-free. */

/* 01 Borealis — aurora gradient drifting through the letters */
.tx-aurora {
  background: linear-gradient(115deg, var(--ink-2), var(--ink-3), var(--ink-2), var(--ink-3)) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tx-aurora 7s linear infinite;
}
@keyframes tx-aurora {
  0%   { background-position: 0% 50%;   filter: hue-rotate(0deg); }
  100% { background-position: 300% 50%; filter: hue-rotate(360deg); }
}

/* 02 Glitchcore — RGB channel-split glitch with sliced jumps */
.tx-glitch {
  position: relative;
  color: var(--ink);
}
.tx-glitch::before, .tx-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
}
.tx-glitch::before {
  color: var(--ink-2);
  clip-path: inset(0 0 55% 0);
  animation: tx-glitch-a 2.6s steps(1) infinite;
}
.tx-glitch::after {
  color: var(--ink-3);
  clip-path: inset(45% 0 0 0);
  animation: tx-glitch-b 2.6s steps(1) infinite;
}
@keyframes tx-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 tx-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; }
}

/* 03 Teletype — typewriter with blinking caret (word must match the ch width) */
.tx-typewriter {
  box-sizing: content-box; /* the caret sits outside the character-count width */
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  width: 10ch; /* = number of characters typed */
  border-right: .55ch solid var(--ink-2);
  animation: tx-type 3.6s steps(10) infinite,
             tx-caret .65s steps(1) infinite;
}
@keyframes tx-type {
  0%, 8%    { width: 0; }
  55%, 100% { width: 10ch; }
}
@keyframes tx-caret {
  50% { border-color: transparent; }
}

/* 04 Neon-Haus — buzzing neon sign with unstable tube flicker */
.tx-neon {
  color: var(--ink);
  animation: tx-neon 3.2s linear infinite;
}
@keyframes tx-neon {
  0%, 18%, 21%, 24%, 100% {
    opacity: 1;
    text-shadow:
      0 0 4px var(--ink),
      0 0 11px var(--ink-2),
      0 0 24px var(--ink-2),
      0 0 48px var(--ink-2);
  }
  19%, 22%, 62% {
    opacity: .35;
    text-shadow: none;
  }
  63%, 64.5% {
    opacity: .6;
    text-shadow: 0 0 4px var(--ink-2);
  }
}

/* 05 Aqua-Fill — the word fills with liquid that rises and drains */
.tx-liquid {
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink-3) 65%, transparent);
  background: linear-gradient(0deg,
      var(--ink-3) 0 46%,
      color-mix(in srgb, var(--ink-3) 55%, transparent) 48%,
      transparent 52% 100%
    ) 0 0 / 100% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-liquid 3.4s ease-in-out infinite;
}
@keyframes tx-liquid {
  0%, 100% { background-position: 0 -110%; }
  50%      { background-position: 0 10%; }
}

/* 06 Chromia — brushed-metal letters with a passing sheen */
.tx-chrome {
  background: linear-gradient(105deg,
      color-mix(in srgb, var(--ink) 40%, transparent) 0 38%,
      var(--ink) 47%,
      #fff 50%,
      var(--ink) 53%,
      color-mix(in srgb, var(--ink) 40%, transparent) 62% 100%
    ) 0 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tx-chrome 2.8s ease-in-out infinite;
}
@keyframes tx-chrome {
  0%   { background-position: 130% 0; }
  60%, 100% { background-position: -130% 0; }
}

/* 07 Lens-Drift — letters slip in and out of focus, one after another */
.tx-focus {
  color: var(--ink);
}
.tx-focus b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-focus 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .18s);
}
@keyframes tx-focus {
  0%, 100% { filter: blur(0);   opacity: 1; }
  50%      { filter: blur(7px); opacity: .35; }
}

/* 08 Tidal-Type — letters ride a rolling sine wave */
.tx-wave {
  color: var(--ink-3);
}
.tx-wave b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-wave 1.3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.14s);
}
@keyframes tx-wave {
  0%, 100% { transform: translateY(7px); }
  50%      { transform: translateY(-7px); }
}

/* 09 Bisect — the word is sliced horizontally; halves drift apart and re-align */
.tx-sliced {
  position: relative;
  color: transparent;
}
.tx-sliced::before, .tx-sliced::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink);
}
.tx-sliced::before {
  clip-path: inset(0 0 50% 0);
  animation: tx-sliced-top 3s ease-in-out infinite;
}
.tx-sliced::after {
  clip-path: inset(50% 0 0 0);
  animation: tx-sliced-bot 3s ease-in-out infinite;
}
@keyframes tx-sliced-top {
  0%, 22%, 78%, 100% { transform: translateX(0); }
  38%, 62% { transform: translateX(8px); color: var(--ink-2); }
}
@keyframes tx-sliced-bot {
  0%, 22%, 78%, 100% { transform: translateX(0); }
  38%, 62% { transform: translateX(-8px); color: var(--ink-3); }
}

/* 10 Cipher — scrambled characters decode into the word, then re-encrypt */
.tx-decoder {
  color: var(--ink-3);
}
.tx-decoder::after {
  content: "▓K#R1&Q";
  animation: tx-decoder 4s steps(1) infinite;
}
@keyframes tx-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"; }
}

/* 11 Redactor — a scanning bar sweeps the word, lighting letters as it passes */
.tx-scanner {
  position: relative;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--ink) 25%, transparent) 0 40%,
      var(--ink) 50%,
      color-mix(in srgb, var(--ink) 25%, transparent) 60% 100%
    ) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tx-scan-glow 2.6s ease-in-out infinite alternate;
}
.tx-scanner::after {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0;
  width: 3px;
  background: var(--ink-2);
  box-shadow: 0 0 14px var(--ink-2);
  animation: tx-scan-bar 2.6s ease-in-out infinite alternate;
}
@keyframes tx-scan-glow {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
@keyframes tx-scan-bar {
  0%   { left: 0; transform: translateX(0); }
  100% { left: 100%; transform: translateX(-100%); }
}

/* 12 Emberglow — letters smoulder under rising fire light */
.tx-ember {
  color: #ffd9a0;
  animation: tx-ember 1.7s ease-in-out infinite alternate;
}
@keyframes tx-ember {
  0% {
    text-shadow:
      0 -2px 6px  #ffab40,
      0 -6px 14px #ff6d00,
      0 -12px 28px #dd2c00,
      0 -20px 44px rgba(213, 0, 0, .55);
  }
  100% {
    text-shadow:
      0 -3px 8px  #ffc46b,
      0 -9px 20px #ff8f1f,
      0 -18px 38px #ff3d00,
      0 -30px 60px rgba(213, 0, 0, .8);
  }
}

/* 13 Echo-Verse — ghost copies of the word ripple outward */
.tx-echo {
  position: relative;
  color: var(--ink);
}
.tx-echo::before, .tx-echo::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  animation: tx-echo 2s ease-out infinite;
}
.tx-echo::before { color: var(--ink-2); }
.tx-echo::after  { color: var(--ink-3); animation-delay: 1s; }
@keyframes tx-echo {
  0%   { opacity: .8; transform: scale(1);   filter: blur(0); }
  100% { opacity: 0;  transform: scale(1.9); filter: blur(3px); }
}

/* 14 Deep-Type — extruded 3D block letters rocking on their axis */
.tx-extrude {
  color: var(--ink);
  text-shadow:
    1px 1px 0 color-mix(in srgb, var(--ink-2) 80%, #000),
    2px 2px 0 color-mix(in srgb, var(--ink-2) 70%, #000),
    3px 3px 0 color-mix(in srgb, var(--ink-2) 60%, #000),
    4px 4px 0 color-mix(in srgb, var(--ink-2) 50%, #000),
    5px 5px 0 color-mix(in srgb, var(--ink-2) 40%, #000),
    6px 6px 0 color-mix(in srgb, var(--ink-2) 30%, #000),
    7px 7px 12px rgba(0, 0, 0, .5);
  animation: tx-extrude 3s ease-in-out infinite;
}
@keyframes tx-extrude {
  0%, 100% { transform: rotate(-3.5deg) translateY(2px); }
  50%      { transform: rotate(3.5deg)  translateY(-4px); }
}

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

/* 16 Prisma — each letter refracts a different band of the spectrum */
.tx-spectrum {
}
.tx-spectrum b {
  font-weight: inherit;
  display: inline-block;
  color: #ff2d78;
  filter: hue-rotate(calc(var(--i) * 42deg));
  animation: tx-spectrum 2.4s linear infinite;
  animation-delay: calc(var(--i) * -.1s);
}
@keyframes tx-spectrum {
  to { filter: hue-rotate(calc(var(--i) * 42deg + 360deg)); }
}

/* 17 Jitterbug — nervous analogue jitter: skews, jumps and dropped frames */
.tx-jitter {
  color: var(--ink);
  animation: tx-jitter 1.9s steps(1) infinite;
}
@keyframes tx-jitter {
  0%, 7%, 15%, 55%, 100% { transform: none; opacity: 1; }
  8%  { transform: skewX(-14deg) translateX(-4px); }
  10% { transform: skewX(10deg) translateX(3px); }
  12% { transform: translateY(-3px); opacity: .6; }
  46% { transform: skewX(8deg); }
  48% { transform: skewX(-6deg) translateY(2px); opacity: .75; }
  50% { transform: translateX(2px); }
}

/* 18 Anaglyph-3D — red/cyan stereo channels drift apart and snap back */
.tx-anaglyph {
  color: var(--ink);
  animation: tx-anaglyph 2.4s ease-in-out infinite;
}
@keyframes tx-anaglyph {
  0%, 100% { text-shadow: 0 0 0 #ff3355, 0 0 0 #33ddff; }
  50% {
    text-shadow:
      -6px 0 1px #ff3355,
       6px 0 1px #33ddff;
  }
}

/* 19 Split-Flap — airport departure board; letters flip on their plates */
.tx-flap {
  display: inline-flex;
  gap: 3px;
  perspective: 400px;
  color: var(--ink);
}
.tx-flap b {
  font-weight: inherit;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.9em;
  background: linear-gradient(
      color-mix(in srgb, var(--ink) 16%, transparent) 0 49%,
      color-mix(in srgb, var(--ink) 8%, transparent) 51% 100%);
  border-radius: 4px;
  transform-origin: center;
  animation: tx-flap 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * .12s);
}
@keyframes tx-flap {
  0%, 55%, 100% { transform: rotateX(0); }
  62% { transform: rotateX(-88deg); }
  69% { transform: rotateX(0); }
  74% { transform: rotateX(-25deg); }
  79% { transform: rotateX(0); }
}

/* 20 Phosphor — CRT terminal: green glow, rolling scanlines, tube flicker */
.tx-crt {
  position: relative;
  padding: .3em .5em;
  color: #4dff88;
  text-shadow: 0 0 7px rgba(77, 255, 136, .8);
  background: rgba(20, 60, 35, .18);
  border-radius: 4px;
  animation: tx-crt-flicker 3.4s steps(1) infinite;
}
.tx-crt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      transparent 0 2px,
      rgba(0, 0, 0, .38) 2px 4px);
  animation: tx-crt-roll 6s linear infinite;
}
@keyframes tx-crt-flicker {
  0%, 6%, 100% { opacity: 1; }
  3%   { opacity: .82; }
  4.5% { opacity: .95; transform: translateY(1px); }
  70%  { opacity: .9; }
  71%  { opacity: 1; transform: none; }
}
@keyframes tx-crt-roll {
  to { background-position: 0 48px; }
}

/* 21 Pop-Riot — letters leap with a hard comic-book drop shadow */
.tx-pop {
  color: var(--ink);
}
.tx-pop b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-pop 1.5s cubic-bezier(.3, 1.6, .4, 1) infinite;
  animation-delay: calc(var(--i) * .09s);
}
@keyframes tx-pop {
  0%, 55%, 100% { transform: translateY(0); text-shadow: 0 0 0 var(--ink-2); }
  25% { transform: translateY(-12px) rotate(-4deg); text-shadow: 0 12px 0 var(--ink-2); }
}

/* 22 Limelight — a spotlight sweeps across otherwise unlit letters */
.tx-spotlight {
  background: radial-gradient(3.5ch 100% at 50% 50%,
      var(--ink) 20%,
      color-mix(in srgb, var(--ink) 14%, transparent) 75%
    ) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tx-spotlight 3.4s ease-in-out infinite alternate;
}
@keyframes tx-spotlight {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* 23 Rubber-Band — the word squashes and stretches like an elastic band */
.tx-elastic {
  color: var(--ink-2);
  animation: tx-elastic 1.6s ease-in-out infinite;
}
@keyframes tx-elastic {
  0%, 100% { transform: scale(1, 1); }
  28% { transform: scale(1.28, .72); }
  44% { transform: scale(.78, 1.24); }
  60% { transform: scale(1.12, .9); }
  74% { transform: scale(.96, 1.05); }
  86% { transform: scale(1.02, .98); }
}

/* 24 Still-Water — the word floats over its own rippling reflection
   (uses -webkit-box-reflect: Chromium & Safari; degrades gracefully) */
.tx-mirror {
  color: var(--ink);
  -webkit-box-reflect: below 2px linear-gradient(transparent 45%, rgba(255, 255, 255, .28));
  animation: tx-mirror 3s ease-in-out infinite;
}
@keyframes tx-mirror {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* 25 Ransom-Note — mismatched cut-out letters shifting on the page */
.tx-ransom {
  display: inline-flex;
  gap: 4px;
  color: var(--ink);
}
.tx-ransom b {
  font-weight: inherit;
  display: grid;
  place-items: center;
  padding: .28em .3em;
  border-radius: 3px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  animation: tx-ransom 2.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.5s);
}
.tx-ransom b:nth-child(odd) {
  background: var(--ink-2);
  color: #14020f;
}
.tx-ransom b:nth-child(3n) {
  background: transparent;
  outline: 1.5px dashed color-mix(in srgb, var(--ink) 55%, transparent);
  color: var(--ink-3);
}
@keyframes tx-ransom {
  0%   { transform: rotate(-6deg) translateY(1.5px); }
  100% { transform: rotate(6deg)  translateY(-1.5px); }
}

/* 26 Meltdown — letters sag, stretch and drip before snapping back */
.tx-melt {
  color: var(--ink-2);
}
.tx-melt b {
  font-weight: inherit;
  display: inline-block;
  transform-origin: top center;
  animation: tx-melt 2.8s ease-in infinite;
  animation-delay: calc(var(--i) * .22s);
}
@keyframes tx-melt {
  0%, 45%  { transform: scaleY(1) translateY(0); filter: blur(0); }
  70%      { transform: scaleY(1.55) translateY(7px) scaleX(.92); filter: blur(1.5px); }
  85%, 100% { transform: scaleY(1) translateY(0); filter: blur(0); }
}

/* 27 Cardio — a lub-dub heartbeat with a systolic glow */
.tx-heartbeat {
  color: var(--ink-2);
  animation: tx-heartbeat 1.4s ease-in-out infinite;
}
@keyframes tx-heartbeat {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 transparent; }
  14% { transform: scale(1.14); text-shadow: 0 0 18px color-mix(in srgb, var(--ink-2) 65%, transparent); }
  28% { transform: scale(1); }
  42% { transform: scale(1.18); text-shadow: 0 0 26px color-mix(in srgb, var(--ink-2) 80%, transparent); }
  70% { transform: scale(1); text-shadow: 0 0 0 transparent; }
}

/* 28 Hi-Liter — a marker pen paints across the word, then lifts off */
.tx-marker {
  color: var(--ink);
  padding: .1em .2em;
  background: linear-gradient(100deg,
      color-mix(in srgb, var(--ink-2) 85%, transparent),
      color-mix(in srgb, var(--ink-2) 60%, transparent)
    ) no-repeat 0 62%;
  background-size: 0% 46%;
  animation: tx-marker 3s ease-in-out infinite;
}
@keyframes tx-marker {
  0%        { background-size: 0% 46%;   background-position: 0 62%; }
  38%, 62%  { background-size: 100% 46%; background-position: 0 62%; }
  100%      { background-size: 0% 46%;   background-position: 100% 62%; }
}

/* 29 Sundial — a long cast shadow circles the letters like a passing sun */
.tx-sundial {
  color: var(--ink);
  animation: tx-sundial 5s linear infinite;
}
@keyframes tx-sundial {
  0%, 100% {
    text-shadow:
      4px 0 var(--ink-2),
      8px 0 color-mix(in srgb, var(--ink-2) 55%, transparent),
      12px 0 color-mix(in srgb, var(--ink-2) 25%, transparent);
  }
  12.5% {
    text-shadow:
      2.8px 2.8px var(--ink-2),
      5.6px 5.6px color-mix(in srgb, var(--ink-2) 55%, transparent),
      8.4px 8.4px color-mix(in srgb, var(--ink-2) 25%, transparent);
  }
  25% {
    text-shadow:
      0 4px var(--ink-2),
      0 8px color-mix(in srgb, var(--ink-2) 55%, transparent),
      0 12px color-mix(in srgb, var(--ink-2) 25%, transparent);
  }
  37.5% {
    text-shadow:
      -2.8px 2.8px var(--ink-2),
      -5.6px 5.6px color-mix(in srgb, var(--ink-2) 55%, transparent),
      -8.4px 8.4px color-mix(in srgb, var(--ink-2) 25%, transparent);
  }
  50% {
    text-shadow:
      -4px 0 var(--ink-2),
      -8px 0 color-mix(in srgb, var(--ink-2) 55%, transparent),
      -12px 0 color-mix(in srgb, var(--ink-2) 25%, transparent);
  }
  62.5% {
    text-shadow:
      -2.8px -2.8px var(--ink-2),
      -5.6px -5.6px color-mix(in srgb, var(--ink-2) 55%, transparent),
      -8.4px -8.4px color-mix(in srgb, var(--ink-2) 25%, transparent);
  }
  75% {
    text-shadow:
      0 -4px var(--ink-2),
      0 -8px color-mix(in srgb, var(--ink-2) 55%, transparent),
      0 -12px color-mix(in srgb, var(--ink-2) 25%, transparent);
  }
  87.5% {
    text-shadow:
      2.8px -2.8px var(--ink-2),
      5.6px -5.6px color-mix(in srgb, var(--ink-2) 55%, transparent),
      8.4px -8.4px color-mix(in srgb, var(--ink-2) 25%, transparent);
  }
}

/* 30 Negative — an inversion bar sweeps the word, flipping letters to their
   photographic negative via mix-blend-mode: difference */
.tx-negative {
  position: relative;
  color: var(--ink);
  padding: .18em .22em;
}
.tx-negative::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background: var(--ink);
  mix-blend-mode: difference;
  animation: tx-negative 2.4s ease-in-out infinite alternate;
}
@keyframes tx-negative {
  0%   { left: 0;    transform: translateX(0); }
  100% { left: 100%; transform: translateX(-100%); }
}

/* 31 Holograph — translucent scanline projection with drifting chroma edges */
.tx-hologram {
  position: relative;
  color: color-mix(in srgb, var(--ink-3) 72%, var(--ink));
  text-shadow:
    0 0 6px color-mix(in srgb, var(--ink-3) 60%, transparent),
    0 0 22px color-mix(in srgb, var(--ink-3) 45%, transparent);
  isolation: isolate;
  animation: tx-hologram-float 3.8s ease-in-out infinite;
}
.tx-hologram::before,
.tx-hologram::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tx-hologram::before {
  color: var(--ink-2);
  clip-path: inset(0 0 52% 0);
  opacity: .58;
  animation: tx-hologram-split 2.8s steps(1) infinite;
}
.tx-hologram::after {
  color: transparent;
  background: repeating-linear-gradient(
      0deg,
      color-mix(in srgb, var(--ink) 70%, transparent) 0 1px,
      transparent 1px 4px
    );
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .48;
  animation: tx-hologram-lines 1.2s linear infinite;
}
@keyframes tx-hologram-float {
  0%, 100% { transform: translateY(2px) skewX(0deg); filter: brightness(1); }
  50%      { transform: translateY(-4px) skewX(-3deg); filter: brightness(1.35); }
}
@keyframes tx-hologram-split {
  0%, 14%, 40%, 72%, 100% { transform: translateX(0); opacity: .22; }
  15% { transform: translateX(-5px); opacity: .8; }
  17% { transform: translateX(4px);  opacity: .6; }
  74% { transform: translateX(3px);  opacity: .7; }
}
@keyframes tx-hologram-lines {
  to { background-position: 0 12px; }
}

/* 32 Gold-Foil — embossed metallic letters with a diagonal specular sweep */
.tx-foil {
  color: transparent;
  background:
    linear-gradient(108deg,
      #7a4a08 0%,
      #f2c15d 18%,
      #fff4b8 24%,
      #b87014 36%,
      #f6d66d 51%,
      #8e560b 68%,
      #fff0a2 76%,
      #c98218 100%
    ) 0 0 / 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(255, 244, 184, .45),
    0 9px 20px rgba(0, 0, 0, .36);
  animation: tx-foil 3.1s ease-in-out infinite;
}
@keyframes tx-foil {
  0%, 100% { background-position: 115% 0; filter: saturate(1.05); }
  45%      { background-position: -35% 0; filter: saturate(1.35) brightness(1.12); }
}

/* 33 Pixel-Sort — blocky offsets smear the word into stepped digital columns */
.tx-pixel {
  position: relative;
  color: var(--ink);
  text-shadow:
    1px 0 0 var(--ink-2),
   -1px 0 0 var(--ink-3);
}
.tx-pixel::before,
.tx-pixel::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: .85;
}
.tx-pixel::before {
  color: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% 28%, 0 28%, 0 44%, 100% 44%, 100% 58%, 0 58%);
  animation: tx-pixel-a 2.2s steps(1) infinite;
}
.tx-pixel::after {
  color: var(--ink-3);
  clip-path: polygon(0 30%, 100% 30%, 100% 42%, 0 42%, 0 66%, 100% 66%, 100% 82%, 0 82%);
  animation: tx-pixel-b 2.2s steps(1) infinite;
}
@keyframes tx-pixel-a {
  0%, 20%, 54%, 100% { transform: translate(0); }
  22% { transform: translate(7px, -2px); }
  24% { transform: translate(-4px, 1px); }
  56% { transform: translate(5px, 2px); }
  58% { transform: translate(-7px, 0); }
}
@keyframes tx-pixel-b {
  0%, 18%, 58%, 100% { transform: translate(0); }
  19% { transform: translate(-6px, 2px); }
  21% { transform: translate(4px, -1px); }
  60% { transform: translate(-5px, -2px); }
  63% { transform: translate(6px, 1px); }
}

/* 34 Starlight — a constellation shimmer twinkles across frosted letter faces */
.tx-starlight {
  color: transparent;
  background:
    radial-gradient(circle at 14% 35%, #fff 0 2px, transparent 2.4px),
    radial-gradient(circle at 42% 68%, #fff 0 1.6px, transparent 2px),
    radial-gradient(circle at 75% 24%, #fff 0 2.2px, transparent 2.6px),
    linear-gradient(100deg, var(--ink), var(--ink-3), var(--ink));
  background-size: 120px 60px, 150px 72px, 180px 68px, 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ink-3) 45%, transparent));
  animation: tx-starlight 3.6s linear infinite;
}
@keyframes tx-starlight {
  0%   { background-position: 0 0, 0 0, 0 0, 120% 0; }
  100% { background-position: 120px 0, -150px 0, 180px 0, -120% 0; }
}

/* 35 Blueprint — technical outline letters over a moving drafting grid */
.tx-blueprint {
  color: transparent;
  padding: .28em .45em;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink-3) 80%, var(--ink));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ink-3) 22%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--ink-3) 18%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink-3) 42%, transparent), transparent 35% 65%, color-mix(in srgb, var(--ink-3) 42%, transparent));
  background-size: 12px 12px, 12px 12px, 240% 100%;
  background-position: 0 0, 0 0, 100% 0;
  border: 1px solid color-mix(in srgb, var(--ink-3) 42%, transparent);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--ink-3) 18%, transparent);
  animation: tx-blueprint 4s linear infinite;
}
@keyframes tx-blueprint {
  to { background-position: 24px 0, 0 24px, -100% 0; }
}

/* 36 Vapor-Trail — soft neon copies trail behind a drifting word */
.tx-vapor {
  position: relative;
  color: var(--ink);
  text-shadow: 0 0 12px color-mix(in srgb, var(--ink) 45%, transparent);
  animation: tx-vapor-main 2.8s ease-in-out infinite;
}
.tx-vapor::before,
.tx-vapor::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: blur(2px);
  opacity: .62;
}
.tx-vapor::before {
  color: var(--ink-2);
  animation: tx-vapor-a 2.8s ease-in-out infinite;
}
.tx-vapor::after {
  color: var(--ink-3);
  animation: tx-vapor-b 2.8s ease-in-out infinite;
}
@keyframes tx-vapor-main {
  0%, 100% { transform: translateX(-3px); }
  50%      { transform: translateX(3px); }
}
@keyframes tx-vapor-a {
  0%, 100% { transform: translate(-10px, 6px) scaleX(1.08); opacity: .22; }
  50%      { transform: translate(-18px, -4px) scaleX(1.22); opacity: .58; }
}
@keyframes tx-vapor-b {
  0%, 100% { transform: translate(10px, -5px) scaleX(1.08); opacity: .2; }
  50%      { transform: translate(18px, 5px) scaleX(1.2); opacity: .56; }
}

/* 37 Kinetic-Type — characters slide on staggered rails and lock into place */
.tx-kinetic {
  color: var(--ink);
  display: inline-flex;
}
.tx-kinetic b {
  font-weight: inherit;
  display: inline-block;
  transform-origin: center;
  animation: tx-kinetic 2.6s cubic-bezier(.2, .8, .2, 1) infinite;
  animation-delay: calc(var(--i) * .08s);
}
.tx-kinetic b:nth-child(2n) { color: var(--ink-3); }
.tx-kinetic b:nth-child(3n) { color: var(--ink-2); }
@keyframes tx-kinetic {
  0%, 18%   { transform: translateY(0) rotate(0deg); filter: blur(0); }
  34%       { transform: translateY(-18px) rotate(-9deg); filter: blur(.4px); }
  52%       { transform: translateY(14px) rotate(7deg); }
  68%, 100% { transform: translateY(0) rotate(0deg); filter: blur(0); }
}

/* 38 Blackout — redaction strips repeatedly hide and reveal classified text */
.tx-blackout {
  position: relative;
  color: var(--ink);
  padding: .28em .12em;
}
.tx-blackout::before,
.tx-blackout::after {
  content: "";
  position: absolute;
  left: -.18em;
  right: -.18em;
  height: 44%;
  background: var(--ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink-2) 45%, transparent);
  animation: tx-blackout 3s steps(1) infinite;
}
.tx-blackout::before {
  top: 0;
  transform-origin: left;
}
.tx-blackout::after {
  bottom: 0;
  transform-origin: right;
  animation-delay: .28s;
}
@keyframes tx-blackout {
  0%, 20%, 72%, 100% { transform: scaleX(0); }
  26%, 58%           { transform: scaleX(1); }
  64%                { transform: scaleX(.38); }
}

/* 39 Magnetic — letters attract into a tight field, then repel outward */
.tx-magnetic {
  color: var(--ink);
  display: inline-flex;
}
.tx-magnetic b {
  font-weight: inherit;
  display: inline-block;
  text-shadow: 0 0 0 var(--ink-2);
  animation: tx-magnetic 2.7s ease-in-out infinite;
  animation-delay: calc(var(--i) * .07s);
}
.tx-magnetic b:nth-child(odd) { color: var(--ink-3); }
@keyframes tx-magnetic {
  0%, 100% {
    transform: translateX(0) scale(1);
    text-shadow: 0 0 0 transparent;
  }
  42% {
    transform: translateX(calc((3 - var(--i)) * 2px)) scale(1.12);
    text-shadow: 0 0 16px color-mix(in srgb, var(--ink-2) 70%, transparent);
  }
  62% {
    transform: translateX(calc((var(--i) - 3) * 3px)) scale(.96);
  }
}

/* 40 Luma-Mesh — animated mesh-gradient ink with a soft luminous edge */
.tx-mesh {
  color: transparent;
  background:
    radial-gradient(circle at 18% 28%, var(--ink-2) 0 12%, transparent 28%),
    radial-gradient(circle at 78% 24%, var(--ink-3) 0 14%, transparent 30%),
    radial-gradient(circle at 44% 82%, #ffffff 0 10%, transparent 24%),
    linear-gradient(110deg, var(--ink-2), var(--ink-3));
  background-size: 180% 180%, 170% 170%, 160% 160%, 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--ink-3) 28%, transparent));
  animation: tx-mesh 4.8s ease-in-out infinite alternate;
}
@keyframes tx-mesh {
  0%   { background-position: 0% 20%, 100% 10%, 35% 100%, 100% 0; }
  100% { background-position: 100% 80%, 0% 60%, 70% 0%, -100% 0; }
}

/* 41 Iridescent — pearlescent text whose colour shifts with a moving angle */
.tx-iridescent {
  color: transparent;
  background: conic-gradient(
      from 20deg,
      #f7fbff,
      var(--ink-3),
      #bba7ff,
      var(--ink-2),
      #fff7d6,
      #f7fbff
    ) 50% 50% / 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  animation: tx-iridescent 4.5s linear infinite;
}
@keyframes tx-iridescent {
  to { filter: hue-rotate(360deg); background-position: 120% 50%; }
}

/* 42 Glass-Type — translucent frosted letters with an offset refraction layer */
.tx-glass {
  position: relative;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 52%, transparent);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .4),
    0 12px 24px rgba(0, 0, 0, .3);
  animation: tx-glass 3.4s ease-in-out infinite;
}
.tx-glass::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink-3);
  opacity: .34;
  filter: blur(3px);
  transform: translate(4px, 5px);
}
.tx-glass::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(115deg, transparent 22%, #fff 44%, transparent 62%) 110% 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .55;
  animation: tx-glass-sheen 2.7s ease-in-out infinite;
}
@keyframes tx-glass {
  50% { transform: translateY(-3px); }
}
@keyframes tx-glass-sheen {
  to { background-position: -110% 0; }
}

/* 43 Datastream — matrix-like data bands flow through clipped letterforms */
.tx-datastream {
  position: relative;
  color: transparent;
  background:
    repeating-linear-gradient(0deg,
      var(--ink-3) 0 2px,
      color-mix(in srgb, var(--ink-3) 35%, transparent) 2px 4px,
      transparent 4px 8px
    ),
    linear-gradient(90deg, var(--ink-2), var(--ink-3), var(--ink));
  background-size: 100% 32px, 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-datastream 1.6s linear infinite;
}
.tx-datastream::after {
  content: "0101 1100 0011";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 170%;
  color: color-mix(in srgb, var(--ink-3) 42%, transparent);
  transform: translateX(-50%);
  animation: tx-datastream-code 1.6s linear infinite;
}
@keyframes tx-datastream {
  to { background-position: 0 32px, -120% 0; }
}
@keyframes tx-datastream-code {
  0% { opacity: .2; transform: translate(-50%, -2px); }
  50% { opacity: .7; }
  100% { opacity: .2; transform: translate(-50%, 10px); }
}

/* 44 Orbitals — letters circle tiny invisible tracks before settling back */
.tx-orbit {
  color: var(--ink);
  display: inline-flex;
}
.tx-orbit b {
  font-weight: inherit;
  display: inline-block;
  transform-origin: 50% 120%;
  animation: tx-orbit 2.8s cubic-bezier(.45, 0, .2, 1) infinite;
  animation-delay: calc(var(--i) * -.18s);
}
.tx-orbit b:nth-child(odd) { color: var(--ink-3); }
.tx-orbit b:nth-child(3n) { color: var(--ink-2); }
@keyframes tx-orbit {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35%      { transform: translate(5px, -13px) rotate(16deg); }
  70%      { transform: translate(-5px, 7px) rotate(-10deg); }
}

/* 45 Prism-Cut — diagonal glass shards refract the word into colour offsets */
.tx-prismcut {
  position: relative;
  color: var(--ink);
}
.tx-prismcut::before,
.tx-prismcut::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tx-prismcut::before {
  color: var(--ink-2);
  clip-path: polygon(0 0, 66% 0, 46% 100%, 0 100%);
  animation: tx-prismcut-a 3s ease-in-out infinite;
}
.tx-prismcut::after {
  color: var(--ink-3);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 24% 100%);
  animation: tx-prismcut-b 3s ease-in-out infinite;
}
@keyframes tx-prismcut-a {
  0%, 100% { transform: translate(0); opacity: .35; }
  50%      { transform: translate(-7px, -2px); opacity: .85; }
}
@keyframes tx-prismcut-b {
  0%, 100% { transform: translate(0); opacity: .35; }
  50%      { transform: translate(7px, 2px); opacity: .85; }
}

/* 46 Soft-Blur — a modern bloom effect that breathes between crisp and hazy */
.tx-softblur {
  color: var(--ink);
  text-shadow:
    0 0 0 var(--ink),
    0 0 18px color-mix(in srgb, var(--ink-2) 45%, transparent),
    0 0 34px color-mix(in srgb, var(--ink-3) 35%, transparent);
  animation: tx-softblur 3.2s ease-in-out infinite;
}
@keyframes tx-softblur {
  0%, 100% { filter: blur(0); opacity: 1; transform: scale(1); }
  50%      { filter: blur(2.4px); opacity: .72; transform: scale(1.045); }
}

/* 47 Laser-Cut — a hot scanning blade carves a bright split through the word */
.tx-laser {
  position: relative;
  color: var(--ink);
}
.tx-laser::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink-2);
  clip-path: inset(44% 0 42% 0);
  text-shadow: 0 0 10px var(--ink-2);
  animation: tx-laser-slice 2.2s ease-in-out infinite;
}
.tx-laser::after {
  content: "";
  position: absolute;
  left: -8%;
  top: 49%;
  width: 116%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, var(--ink-2), transparent);
  box-shadow: 0 0 13px var(--ink-2);
  animation: tx-laser 2.2s ease-in-out infinite;
}
@keyframes tx-laser {
  0%, 100% { transform: translateY(-14px) scaleX(.35); opacity: 0; }
  44%, 58% { transform: translateY(0) scaleX(1); opacity: 1; }
}
@keyframes tx-laser-slice {
  0%, 100% { transform: translateX(0); opacity: .2; }
  50%      { transform: translateX(5px); opacity: 1; }
}

/* 48 Microchip — circuit-board traces scroll beneath monospaced letter masks */
.tx-microchip {
  color: transparent;
  padding: .35em .45em;
  background:
    linear-gradient(90deg, transparent 0 44%, var(--ink-3) 44% 47%, transparent 47% 100%),
    linear-gradient(0deg, transparent 0 46%, var(--ink-2) 46% 49%, transparent 49% 100%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink-3) 35%, transparent) 0 1px, transparent 1px 14px),
    linear-gradient(100deg, var(--ink), var(--ink-3));
  background-size: 42px 42px, 42px 42px, 14px 100%, 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  border: 1px solid color-mix(in srgb, var(--ink-3) 24%, transparent);
  animation: tx-microchip 3.8s linear infinite;
}
@keyframes tx-microchip {
  to { background-position: 42px 0, 0 42px, 14px 0, -120% 0; }
}

/* 49 Heatmap — thermal colour blooms migrate across dense letter shapes */
.tx-heatmap {
  color: transparent;
  background:
    radial-gradient(circle at 20% 50%, #fff26d 0 8%, transparent 24%),
    radial-gradient(circle at 70% 40%, #ff4f8b 0 12%, transparent 28%),
    radial-gradient(circle at 44% 78%, var(--ink-3) 0 14%, transparent 32%),
    linear-gradient(90deg, #2d7dff, #36f0b2, #ffcf4a, #ff4f8b);
  background-size: 130% 130%, 150% 150%, 140% 140%, 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-heatmap 3.5s ease-in-out infinite alternate;
}
@keyframes tx-heatmap {
  0%   { background-position: 0 0, 100% 20%, 40% 100%, 100% 0; filter: saturate(1); }
  100% { background-position: 100% 90%, 0 60%, 80% 0, -100% 0; filter: saturate(1.35); }
}

/* 50 Parallax — coloured shadow layers drift at different speeds per letter */
.tx-parallax {
  color: var(--ink);
  display: inline-flex;
}
.tx-parallax b {
  font-weight: inherit;
  display: inline-block;
  text-shadow:
    4px 4px 0 color-mix(in srgb, var(--ink-2) 72%, transparent),
   -4px -3px 0 color-mix(in srgb, var(--ink-3) 72%, transparent);
  animation: tx-parallax 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.11s);
}
@keyframes tx-parallax {
  0%, 100% {
    transform: translate(0);
    text-shadow:
      4px 4px 0 color-mix(in srgb, var(--ink-2) 72%, transparent),
     -4px -3px 0 color-mix(in srgb, var(--ink-3) 72%, transparent);
  }
  50% {
    transform: translateY(-4px);
    text-shadow:
      8px 2px 0 color-mix(in srgb, var(--ink-2) 72%, transparent),
     -8px -1px 0 color-mix(in srgb, var(--ink-3) 72%, transparent);
  }
}

/* 51 Ink-Trap — editorial serif-like traps pulse as heavy ink floods corners */
.tx-inktrap {
  position: relative;
  color: var(--ink);
}
.tx-inktrap::before,
.tx-inktrap::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tx-inktrap::before {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-3);
  opacity: .65;
  animation: tx-inktrap-line 2.7s ease-in-out infinite;
}
.tx-inktrap::after {
  color: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 84% 22%, 18% 22%, 0 0, 0 100%, 20% 78%, 86% 78%, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  animation: tx-inktrap-fill 2.7s ease-in-out infinite;
}
@keyframes tx-inktrap-line {
  50% { transform: scale(1.05); opacity: .95; }
}
@keyframes tx-inktrap-fill {
  0%, 100% { opacity: .18; transform: scale(.98); }
  50%      { opacity: .72; transform: scale(1.02); }
}

/* 52 Topographic — contour-map lines crawl through the text fill */
.tx-topographic {
  color: transparent;
  background:
    repeating-radial-gradient(ellipse at 30% 55%,
      var(--ink) 0 1px,
      transparent 1px 7px
    ),
    repeating-radial-gradient(ellipse at 78% 35%,
      var(--ink-3) 0 1px,
      transparent 1px 8px
    );
  background-size: 130px 70px, 170px 80px;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ink-3) 25%, transparent));
  animation: tx-topographic 5s linear infinite;
}
@keyframes tx-topographic {
  to { background-position: 130px 0, -170px 0; }
}

/* 53 Signal-Noise — broadcast interference bends the word into noisy bands */
.tx-signal {
  position: relative;
  color: var(--ink);
  animation: tx-signal 2s steps(1) infinite;
}
.tx-signal::before,
.tx-signal::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tx-signal::before {
  color: var(--ink-2);
  clip-path: inset(0 0 58% 0);
  animation: tx-signal-a 2s steps(1) infinite;
}
.tx-signal::after {
  color: var(--ink-3);
  clip-path: inset(42% 0 0 0);
  animation: tx-signal-b 2s steps(1) infinite;
}
@keyframes tx-signal {
  0%, 21%, 47%, 100% { filter: none; }
  22%, 24% { filter: blur(.8px) contrast(1.4); }
}
@keyframes tx-signal-a {
  0%, 20%, 52%, 100% { transform: translate(0); opacity: .15; }
  23% { transform: translate(-8px, -1px); opacity: .9; }
  54% { transform: translate(5px, 2px); opacity: .7; }
}
@keyframes tx-signal-b {
  0%, 24%, 58%, 100% { transform: translate(0); opacity: .12; }
  27% { transform: translate(8px, 1px); opacity: .86; }
  60% { transform: translate(-5px, -2px); opacity: .72; }
}

/* 54 Portal — a conic vortex opens inside the letters and rotates behind them */
.tx-portal {
  position: relative;
  color: transparent;
  background: conic-gradient(from 0deg, var(--ink-2), var(--ink), var(--ink-3), var(--ink-2));
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-portal 3.6s linear infinite;
}
.tx-portal::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: radial-gradient(circle, transparent 0 30%, #fff 34% 36%, transparent 40% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .72;
  animation: tx-portal-pulse 1.8s ease-in-out infinite;
}
@keyframes tx-portal {
  to { filter: hue-rotate(360deg); transform: rotate(.001deg); }
}
@keyframes tx-portal-pulse {
  0%, 100% { transform: scale(.92); opacity: .24; }
  50%      { transform: scale(1.08); opacity: .8; }
}

/* 55 Tilt-Shift — a sharp focal strip travels through blurred duplicate text */
.tx-tiltshift {
  position: relative;
  color: color-mix(in srgb, var(--ink) 28%, transparent);
  filter: blur(2px);
}
.tx-tiltshift::before,
.tx-tiltshift::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tx-tiltshift::before {
  color: var(--ink);
  filter: blur(0);
  clip-path: inset(32% 0 32% 0);
  animation: tx-tiltshift 2.8s ease-in-out infinite alternate;
}
.tx-tiltshift::after {
  color: var(--ink-3);
  opacity: .3;
  filter: blur(6px);
}
@keyframes tx-tiltshift {
  0%   { clip-path: inset(0 0 64% 0); transform: translateY(-2px); }
  100% { clip-path: inset(64% 0 0 0); transform: translateY(2px); }
}

/* 56 Duotone — two offset colour plates slide across a crisp centre layer */
.tx-duotone {
  position: relative;
  color: var(--ink);
}
.tx-duotone::before,
.tx-duotone::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.tx-duotone::before {
  color: var(--ink-2);
  animation: tx-duotone-a 2.6s ease-in-out infinite;
}
.tx-duotone::after {
  color: var(--ink-3);
  animation: tx-duotone-b 2.6s ease-in-out infinite;
}
@keyframes tx-duotone-a {
  0%, 100% { transform: translate(-3px, 0); opacity: .42; }
  50%      { transform: translate(-9px, -3px); opacity: .8; }
}
@keyframes tx-duotone-b {
  0%, 100% { transform: translate(3px, 0); opacity: .42; }
  50%      { transform: translate(9px, 3px); opacity: .8; }
}

/* 57 Glyph-Rain — characters fall in staggered vertical trails and re-form */
.tx-glyphrain {
  color: var(--ink);
  display: inline-flex;
}
.tx-glyphrain b {
  font-weight: inherit;
  display: inline-block;
  text-shadow:
    0 -12px 0 color-mix(in srgb, var(--ink-3) 45%, transparent),
    0 -24px 0 color-mix(in srgb, var(--ink-2) 28%, transparent);
  animation: tx-glyphrain 2.4s cubic-bezier(.25, .8, .25, 1) infinite;
  animation-delay: calc(var(--i) * .12s);
}
.tx-glyphrain b:nth-child(2n) { color: var(--ink-3); }
@keyframes tx-glyphrain {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  38% {
    transform: translateY(22px);
    opacity: .22;
  }
  64% {
    transform: translateY(-10px);
    opacity: .75;
  }
}

/* 58 Zoetrope — letters whirl on a spinning 3D drum, one frame after another */
.tx-zoetrope {
  color: var(--ink);
  display: inline-flex;
  perspective: 480px;
}
.tx-zoetrope b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-zoetrope 3s cubic-bezier(.55, 0, .25, 1) infinite;
  animation-delay: calc(var(--i) * .09s);
}
.tx-zoetrope b:nth-child(3n)   { color: var(--ink-2); }
.tx-zoetrope b:nth-child(3n+1) { color: var(--ink-3); }
@keyframes tx-zoetrope {
  0%, 12%   { transform: rotateY(0); filter: blur(0); }
  40%       { filter: blur(1px); }
  62%, 100% { transform: rotateY(360deg); filter: blur(0); }
}

/* 59 Dot-Matrix — halftone dot letters printed row by row under a bright head */
.tx-dotmatrix {
  color: transparent;
  background:
    linear-gradient(180deg, transparent 0 16%, #fff 24%, transparent 32% 100%) 0 -100% / 100% 300%,
    radial-gradient(circle, var(--ink-3) 0 1.3px, transparent 1.8px) 0 0 / 5px 5px;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-dotmatrix 2.8s linear infinite;
}
@keyframes tx-dotmatrix {
  0%   { background-position: 0 -100%, 0 0; }
  100% { background-position: 0 200%, 0 0; }
}

/* 60 Pendulum — letters swing from an unseen pivot in staggered phase */
.tx-pendulum {
  color: var(--ink);
}
.tx-pendulum b {
  font-weight: inherit;
  display: inline-block;
  transform-origin: 50% -80%;
  animation: tx-pendulum 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.12s);
}
.tx-pendulum b:nth-child(even) { color: var(--ink-3); }
@keyframes tx-pendulum {
  0%, 100% { transform: rotate(10deg); }
  50%      { transform: rotate(-10deg); }
}

/* 61 Smoke-Signal — letters curl upward and dissipate like smoke, then re-form */
.tx-smoke {
  color: var(--ink);
}
.tx-smoke b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-smoke 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .16s);
}
@keyframes tx-smoke {
  0%, 42%   { transform: none; opacity: 1; filter: blur(0); color: var(--ink); }
  62%       { color: var(--ink-3); }
  78%       { transform: translate(6px, -22px) rotate(14deg) scale(1.45); opacity: 0; filter: blur(7px); }
  79%       { transform: translateY(10px) scale(.8); opacity: 0; filter: blur(4px); }
  92%, 100% { transform: none; opacity: 1; filter: blur(0); }
}

/* 62 Eclipse — a dark moon crosses the glowing word and dims it in passing */
.tx-eclipse {
  position: relative;
  color: var(--ink);
  text-shadow:
    0 0 10px color-mix(in srgb, var(--ink-2) 70%, transparent),
    0 0 26px color-mix(in srgb, var(--ink-2) 40%, transparent);
  animation: tx-eclipse-dim 5s ease-in-out infinite;
}
.tx-eclipse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -1.5em;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: #05040c;
  box-shadow:
    0 0 10px 2px color-mix(in srgb, var(--ink-2) 85%, transparent),
    inset -4px -3px 8px rgba(0, 0, 0, .9);
  transform: translateY(-50%);
  animation: tx-eclipse 5s ease-in-out infinite;
}
@keyframes tx-eclipse {
  0%   { left: -1.5em; }
  50%  { left: calc(50% - .65em); }
  100% { left: 100%; }
}
@keyframes tx-eclipse-dim {
  0%, 28%, 72%, 100% { filter: brightness(1); }
  50%                { filter: brightness(.4); }
}

/* 63 Barcode — striped code bars fill the word while a red beam scans it */
.tx-barcode {
  position: relative;
  color: transparent;
  background: repeating-linear-gradient(90deg,
      var(--ink) 0 2px, transparent 2px 4px,
      var(--ink) 4px 5px, transparent 5px 8px,
      var(--ink) 8px 11px, transparent 11px 13px);
  -webkit-background-clip: text;
  background-clip: text;
}
.tx-barcode::before {
  content: "9 780316 668111";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  white-space: nowrap;
}
.tx-barcode::after {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -2%;
  width: 2px;
  background: var(--ink-2);
  box-shadow:
    0 0 12px var(--ink-2),
    0 0 26px color-mix(in srgb, var(--ink-2) 60%, transparent);
  animation: tx-barcode 1.9s ease-in-out infinite alternate;
}
@keyframes tx-barcode {
  0%   { left: -2%; }
  100% { left: 101%; }
}

/* 64 Frostbite — ice creeps up the letters under a crystalline shimmer */
.tx-frost {
  color: transparent;
  background:
    radial-gradient(circle at 22% 30%, #fff 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 68% 62%, #fff 0 1.3px, transparent 1.9px),
    linear-gradient(0deg,
      #fff 0%,
      var(--ink-3) 34%,
      color-mix(in srgb, var(--ink-3) 45%, var(--ink)) 60%,
      var(--ink) 100%);
  background-size: 90px 46px, 120px 58px, 100% 260%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-frost 4s ease-in-out infinite alternate;
}
@keyframes tx-frost {
  0% {
    background-position: 0 0, 0 0, 0 0%;
    filter: drop-shadow(0 0 2px color-mix(in srgb, var(--ink-3) 30%, transparent));
  }
  100% {
    background-position: 18px 6px, -22px -8px, 0 100%;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--ink-3) 75%, transparent));
  }
}

/* 65 Moiré — two line screens drift against each other, weaving interference bands */
.tx-moire {
  color: transparent;
  background:
    repeating-linear-gradient(87deg, var(--ink-2) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 4px),
    linear-gradient(color-mix(in srgb, var(--ink) 30%, transparent), color-mix(in srgb, var(--ink) 30%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-moire 6s linear infinite alternate;
}
@keyframes tx-moire {
  0%   { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 48px 0, -48px 0, 0 0; }
}

/* 66 Rubber-Stamp — the word slams down like an ink stamp, then fades off the page */
.tx-stamp {
  color: var(--ink-2);
  padding: .38em .5em;
  border: 3px solid var(--ink-2);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink-2) 55%, transparent);
  animation: tx-stamp 3.2s cubic-bezier(.22, 1.4, .36, 1) infinite;
}
@keyframes tx-stamp {
  0%, 6%    { transform: rotate(-6deg) scale(2.4); opacity: 0; filter: blur(4px); }
  14%       { transform: rotate(-6deg) scale(.96); opacity: 1; filter: blur(0); }
  18%       { transform: rotate(-6deg) scale(1.04); }
  22%, 78%  { transform: rotate(-6deg) scale(1); opacity: 1; filter: blur(0); }
  94%, 100% { transform: rotate(-6deg) scale(1); opacity: 0; filter: blur(.6px); }
}

/* 67 LED-Board — stadium LED matrix letters with a chasing brightness sweep */
.tx-led {
  position: relative;
  color: color-mix(in srgb, var(--ink-2) 22%, transparent);
  text-shadow: 0 0 1px color-mix(in srgb, var(--ink-2) 35%, transparent);
}
.tx-led::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background:
    radial-gradient(circle closest-side,
      #fff 0 28%,
      var(--ink-2) 34% 62%,
      transparent 68%) 0 0 / 4.5px 4.5px;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--ink-2) 70%, transparent))
    drop-shadow(0 0 16px color-mix(in srgb, var(--ink-2) 35%, transparent));
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 18%,
    #000 42%,
    transparent 68%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 18%,
    #000 42%,
    transparent 68%
  );
  -webkit-mask-size: 240% 100%;
  mask-size: 240% 100%;
  -webkit-mask-position: 120% 0;
  mask-position: 120% 0;
  animation: tx-led 2.1s linear infinite;
}
.tx-led::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background:
    radial-gradient(circle closest-side,
      color-mix(in srgb, var(--ink-2) 55%, transparent) 0 55%,
      transparent 62%) 0 0 / 4.5px 4.5px;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .45;
}
@keyframes tx-led {
  to {
    -webkit-mask-position: -120% 0;
    mask-position: -120% 0;
  }
}

/* 68 Light-Leak — cinematic colour veils wash diagonally through the word */
.tx-lightleak {
  position: relative;
  color: var(--ink);
  isolation: isolate;
}
.tx-lightleak::before,
.tx-lightleak::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: screen;
}
.tx-lightleak::before {
  background: linear-gradient(
      118deg,
      transparent 12%,
      #ff5a1f 34%,
      #ffd27a 44%,
      #fff 48%,
      transparent 62%
    ) 120% 0 / 240% 100%;
  filter: blur(.35px);
  animation: tx-lightleak-a 4.4s ease-in-out infinite;
}
.tx-lightleak::after {
  background: linear-gradient(
      248deg,
      transparent 18%,
      var(--ink-3) 38%,
      var(--ink-2) 48%,
      transparent 68%
    ) -20% 0 / 240% 100%;
  opacity: .9;
  animation: tx-lightleak-b 5.6s ease-in-out infinite;
}
@keyframes tx-lightleak-a {
  0%, 100% { background-position: 130% 0; opacity: .12; }
  42%      { background-position: -30% 0; opacity: 1; }
}
@keyframes tx-lightleak-b {
  0%, 100% { background-position: -30% 0; opacity: .1; }
  55%      { background-position: 130% 0; opacity: .95; }
}

/* 69 Kilovolt — letters crackle with staggered electric discharge flashes */
.tx-voltage {
  color: var(--ink);
  display: inline-flex;
}
.tx-voltage b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-voltage 2.6s steps(1) infinite;
  animation-delay: calc(var(--i) * .08s);
}
@keyframes tx-voltage {
  0%, 100% {
    transform: none;
    color: var(--ink);
    text-shadow: none;
    filter: brightness(1);
  }
  7% {
    transform: translate(1px, -1px) skewX(-10deg);
    color: #fff;
    text-shadow:
      0 0 4px #fff,
      0 0 14px var(--ink-3),
      2px 0 0 var(--ink-2),
     -2px 0 0 var(--ink-3);
    filter: brightness(1.85);
  }
  9% {
    transform: translate(-1px, 1px) skewX(8deg);
    color: var(--ink-3);
    text-shadow:
      0 0 10px var(--ink-3),
      0 0 22px color-mix(in srgb, var(--ink-3) 70%, transparent);
  }
  11%, 48% {
    transform: none;
    color: var(--ink);
    text-shadow: none;
    filter: brightness(1);
  }
  61% {
    transform: translate(0, -1px) skewX(4deg);
    color: #fff;
    text-shadow:
      0 0 6px var(--ink-2),
      0 0 18px var(--ink-2),
     -1px 0 0 var(--ink-3);
    filter: brightness(1.6);
  }
  63% {
    transform: none;
    color: var(--ink);
    text-shadow: none;
    filter: brightness(1);
  }
}

/* 70 Carrara — liquid marble veins drift through polished stone letterforms */
.tx-marble {
  color: transparent;
  background:
    radial-gradient(ellipse 40% 70% at 18% 42%,
      color-mix(in srgb, var(--ink) 55%, transparent) 0%,
      transparent 55%),
    radial-gradient(ellipse 50% 40% at 72% 58%,
      color-mix(in srgb, var(--ink-3) 40%, transparent) 0%,
      transparent 50%),
    linear-gradient(118deg,
      #f4f0ea 0%,
      #d9d2c8 14%,
      var(--ink-2) 22%,
      #ebe6df 34%,
      var(--ink-3) 48%,
      #cfc7bb 58%,
      #f7f3ed 72%,
      var(--ink) 86%,
      #e8e2d8 100%);
  background-size: 160% 160%, 180% 180%, 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
  animation: tx-marble 5.2s ease-in-out infinite alternate;
}
@keyframes tx-marble {
  0% {
    background-position: 8% 30%, 90% 70%, 0% 50%;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28)) saturate(1);
  }
  100% {
    background-position: 78% 68%, 12% 22%, 100% 50%;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .34)) saturate(1.15);
  }
}

/* 71 Ripple — concentric water rings expand through the word like a pond splash */
.tx-ripple {
  position: relative;
  color: color-mix(in srgb, var(--ink-3) 55%, var(--ink));
}
.tx-ripple::before,
.tx-ripple::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.tx-ripple::before {
  background:
    repeating-radial-gradient(
      circle at 50% 55%,
      transparent 0 6px,
      color-mix(in srgb, var(--ink-3) 85%, #fff) 7px 9px,
      transparent 10px 16px
    );
  background-size: 100% 100%;
  opacity: .9;
  animation: tx-ripple 2.4s linear infinite;
}
.tx-ripple::after {
  background:
    repeating-radial-gradient(
      circle at 50% 55%,
      transparent 0 8px,
      var(--ink-2) 9px 11px,
      transparent 12px 20px
    );
  opacity: .55;
  animation: tx-ripple 2.4s linear infinite reverse;
  mix-blend-mode: screen;
}
@keyframes tx-ripple {
  0% {
    background-size: 40% 40%;
    background-position: 50% 55%;
    opacity: .35;
  }
  70% { opacity: .95; }
  100% {
    background-size: 220% 220%;
    background-position: 50% 55%;
    opacity: .15;
  }
}

/* 72 Shatter — letters fracture outward then snap back into place */
.tx-shatter {
  color: var(--ink);
  display: inline-flex;
  perspective: 420px;
}
.tx-shatter b {
  font-weight: inherit;
  display: inline-block;
  transform-origin: 50% 60%;
  animation: tx-shatter 3.2s cubic-bezier(.22, 1.15, .36, 1) infinite;
  animation-delay: calc(var(--i) * .07s);
}
@keyframes tx-shatter {
  0%, 18% {
    transform: none;
    opacity: 1;
    filter: blur(0);
    color: var(--ink);
    text-shadow: none;
  }
  28% {
    transform:
      translate(
        calc((var(--i) - 2.5) * 14px),
        calc(-18px - var(--i) * 3px)
      )
      rotate(calc((var(--i) - 2.5) * 18deg))
      scale(.88);
    opacity: .55;
    filter: blur(.4px);
    color: var(--ink-2);
    text-shadow:
      2px 0 0 color-mix(in srgb, var(--ink-3) 70%, transparent),
     -2px 0 0 color-mix(in srgb, var(--ink-2) 70%, transparent);
  }
  38% {
    transform:
      translate(
        calc((var(--i) - 2.5) * 22px),
        calc(8px + var(--i) * 2px)
      )
      rotate(calc((var(--i) - 2.5) * -12deg))
      scale(1.05);
    opacity: .25;
    filter: blur(1.2px);
  }
  48% {
    transform: translate(0, -6px) scale(1.08);
    opacity: 0;
    filter: blur(2px);
  }
  49% {
    transform: scale(.7);
    opacity: 0;
    filter: blur(0);
    color: var(--ink-3);
  }
  62%, 100% {
    transform: none;
    opacity: 1;
    filter: blur(0);
    color: var(--ink);
    text-shadow: none;
  }
}

/* 73 Film-Grain — analogue silver-halide noise crawls over the letterforms */
.tx-grain {
  position: relative;
  color: var(--ink);
  animation: tx-grain-flicker 3.6s ease-in-out infinite;
}
.tx-grain::before,
.tx-grain::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.tx-grain::before {
  background-image:
    radial-gradient(circle, #fff 0 .55px, transparent .85px),
    radial-gradient(circle, #000 0 .45px, transparent .75px),
    radial-gradient(circle, #fff 0 .4px, transparent .7px);
  background-size: 3px 3px, 4px 4px, 5px 5px;
  background-position: 0 0, 1px 2px, 2px 1px;
  opacity: .42;
  mix-blend-mode: soft-light;
  animation: tx-grain .28s steps(4) infinite;
}
.tx-grain::after {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--ink) 0%, transparent) 0%,
      color-mix(in srgb, #fff 22%, transparent) 48%,
      color-mix(in srgb, var(--ink) 0%, transparent) 100%
    ) 0 -40% / 100% 60%;
  opacity: .55;
  mix-blend-mode: overlay;
  animation: tx-grain-scan 2.6s linear infinite;
}
@keyframes tx-grain {
  0%   { background-position: 0 0, 1px 2px, 2px 1px; }
  25%  { background-position: 2px -1px, -1px 3px, 0 2px; }
  50%  { background-position: -1px 2px, 3px 0, 1px -1px; }
  75%  { background-position: 1px 1px, -2px -1px, 3px 2px; }
  100% { background-position: 0 0, 1px 2px, 2px 1px; }
}
@keyframes tx-grain-scan {
  0%   { background-position: 0 -50%; opacity: .15; }
  45%  { opacity: .6; }
  100% { background-position: 0 160%; opacity: .2; }
}
@keyframes tx-grain-flicker {
  0%, 100% { filter: contrast(1.04) brightness(1); }
  32%      { filter: contrast(1.14) brightness(1.05); }
  58%      { filter: contrast(.97) brightness(.94); }
  76%      { filter: contrast(1.08) brightness(1.02); }
}

/* 74 Caustics — underwater light ribbons swim and refract through the word */
.tx-caustic {
  color: transparent;
  background:
    radial-gradient(ellipse 55% 35% at 18% 42%,
      #fff 0 8%, transparent 42%),
    radial-gradient(ellipse 45% 50% at 68% 58%,
      color-mix(in srgb, var(--ink-3) 90%, #fff) 0 10%, transparent 46%),
    radial-gradient(ellipse 40% 30% at 42% 78%,
      #fff 0 6%, transparent 40%),
    radial-gradient(ellipse 50% 40% at 82% 28%,
      color-mix(in srgb, var(--ink-2) 75%, #fff) 0 9%, transparent 44%),
    radial-gradient(ellipse 35% 45% at 30% 18%,
      var(--ink-3) 0 7%, transparent 38%),
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--ink-3) 70%, var(--ink)) 0%,
      var(--ink) 42%,
      color-mix(in srgb, var(--ink-2) 55%, var(--ink)) 100%
    );
  background-size:
    160% 160%,
    180% 170%,
    150% 150%,
    170% 160%,
    140% 150%,
    100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--ink-3) 42%, transparent));
  animation: tx-caustic 4.2s ease-in-out infinite alternate;
}
@keyframes tx-caustic {
  0% {
    background-position:
      0% 25%, 100% 80%, 35% 100%, 90% 5%, 20% 10%, 0 0;
    filter:
      drop-shadow(0 0 8px color-mix(in srgb, var(--ink-3) 30%, transparent))
      brightness(1);
  }
  100% {
    background-position:
      85% 70%, 5% 15%, 70% 0%, 15% 90%, 75% 85%, 0 0;
    filter:
      drop-shadow(0 0 20px color-mix(in srgb, var(--ink-3) 60%, transparent))
      brightness(1.18);
  }
}

/* 75 Origami — paper letters hinge open on staggered folds, then tuck shut */
.tx-fold {
  color: var(--ink);
  display: inline-flex;
  perspective: 640px;
  transform-style: preserve-3d;
}
.tx-fold b {
  font-weight: inherit;
  display: inline-block;
  transform-origin: left center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  animation: tx-fold 3.8s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: calc(var(--i) * .11s);
}
@keyframes tx-fold {
  0%, 8% {
    transform: rotateY(-92deg) translateZ(0);
    opacity: 0;
    color: color-mix(in srgb, var(--ink) 55%, #000);
    text-shadow: none;
    filter: brightness(.55);
  }
  22% {
    transform: rotateY(8deg) translateZ(6px);
    opacity: 1;
    color: var(--ink);
    text-shadow: 4px 0 10px color-mix(in srgb, var(--ink-2) 35%, transparent);
    filter: brightness(1.08);
  }
  30%, 58% {
    transform: rotateY(0deg) translateZ(0);
    opacity: 1;
    color: var(--ink);
    text-shadow: none;
    filter: brightness(1);
  }
  72% {
    transform: rotateY(-12deg) translateZ(4px);
    opacity: 1;
    color: var(--ink-3);
    text-shadow: -3px 0 8px color-mix(in srgb, var(--ink-3) 30%, transparent);
    filter: brightness(1.05);
  }
  86%, 100% {
    transform: rotateY(92deg) translateZ(0);
    opacity: 0;
    color: color-mix(in srgb, var(--ink) 55%, #000);
    text-shadow: none;
    filter: brightness(.55);
  }
}

/* 76 Domino — letters topple in a chain reaction, then spring back upright */
.tx-domino {
  color: var(--ink);
  display: inline-flex;
  align-items: flex-end;
  perspective: 800px;
}
.tx-domino b {
  font-weight: inherit;
  display: inline-block;
  transform-origin: 0% 100%;
  animation: tx-domino 3.6s linear infinite;
  animation-delay: calc(var(--i) * .12s);
}
@keyframes tx-domino {
  0%, 12% {
    transform: rotate(0deg);
    color: var(--ink);
    text-shadow: 1px 0 0 color-mix(in srgb, var(--ink-3) 25%, transparent);
    animation-timing-function: cubic-bezier(.6, .04, .98, .34);
  }
  30% {
    transform: rotate(87deg);
    color: var(--ink-2);
    text-shadow: 0 0 14px color-mix(in srgb, var(--ink-2) 60%, transparent);
    animation-timing-function: cubic-bezier(.2, .8, .3, 1);
  }
  35% {
    transform: rotate(79deg);
    color: var(--ink-2);
    text-shadow: 0 0 6px color-mix(in srgb, var(--ink-2) 30%, transparent);
  }
  42%, 64% {
    transform: rotate(84deg);
    color: color-mix(in srgb, var(--ink) 45%, transparent);
    text-shadow: none;
    animation-timing-function: cubic-bezier(.5, -.35, .3, 1.45);
  }
  86% {
    transform: rotate(-6deg);
    color: var(--ink-3);
    text-shadow: 0 0 10px color-mix(in srgb, var(--ink-3) 45%, transparent);
  }
  94%, 100% {
    transform: rotate(0deg);
    color: var(--ink);
    text-shadow: 1px 0 0 color-mix(in srgb, var(--ink-3) 25%, transparent);
  }
}

/* 77 Zip-Merge — letters interlock like zipper teeth behind a travelling slider */
.tx-zipper {
  position: relative;
  color: var(--ink);
  display: inline-flex;
  padding: 0 12px;
}
.tx-zipper b {
  --dir: -1;
  font-weight: inherit;
  display: inline-block;
  animation: tx-zipmesh 3.8s cubic-bezier(.34, 1.28, .5, 1) infinite;
  animation-delay: calc(var(--i) * .1s);
}
.tx-zipper b:nth-child(even) { --dir: 1; }
.tx-zipper::before {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ink-2), var(--ink-3));
  transform-origin: left center;
  animation: tx-zipseam 3.8s cubic-bezier(.4, 0, .2, 1) infinite;
}
.tx-zipper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 17px;
  margin: -8px 0 0 -6px;
  border-radius: 3px 3px 5px 5px;
  background: linear-gradient(160deg, #fff 0%, var(--ink-3) 45%, var(--ink-2) 100%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--ink-3) 55%, transparent);
  animation: tx-zipslider 3.8s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes tx-zipmesh {
  0%, 8% {
    transform: translateY(calc(var(--dir) * 26px)) rotate(calc(var(--dir) * 7deg));
    opacity: .2;
    color: var(--ink-3);
  }
  /* meshed: alternating letters settle just above / below the seam,
     interlocking the way zipper teeth do rather than sitting flush */
  32%, 70% {
    transform: translateY(calc(var(--dir) * 5px)) rotate(0deg);
    opacity: 1;
    color: var(--ink);
  }
  82%, 100% {
    transform: translateY(calc(var(--dir) * 26px)) rotate(calc(var(--dir) * 7deg));
    opacity: .2;
    color: var(--ink-3);
  }
}
@keyframes tx-zipseam {
  0%, 8% { transform: scaleX(0); opacity: .15; }
  40%, 70% { transform: scaleX(1); opacity: .5; }
  92%, 100% { transform: scaleX(0); opacity: .15; }
}
@keyframes tx-zipslider {
  0%, 8% { left: 0; }
  40%, 70% { left: 100%; }
  92%, 100% { left: 0; }
}

/* 78 Equalizer — letters ride the peaks of a pumping audio meter */
.tx-equalizer {
  color: var(--ink);
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
  padding-top: 44px;
}
.tx-equalizer b {
  position: relative;
  font-weight: inherit;
  display: inline-block;
  animation: tx-eqbounce 1.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.21s);
}
.tx-equalizer b::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 122%;
  transform: translateX(-50%);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(
    180deg,
    var(--ink-2) 0%,
    var(--ink-3) 65%,
    color-mix(in srgb, var(--ink-3) 25%, transparent) 100%
  );
  box-shadow: 0 0 10px color-mix(in srgb, var(--ink-2) 40%, transparent);
  animation: tx-eqbar 1.9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.21s);
}
@keyframes tx-eqbar {
  0%, 100% { height: 7px; bottom: -7px; }
  20% { height: 34px; bottom: -34px; }
  40% { height: 15px; bottom: -15px; }
  60% { height: 44px; bottom: -44px; }
  80% { height: 22px; bottom: -22px; }
}
@keyframes tx-eqbounce {
  0%, 100% {
    transform: translateY(-7px);
    color: color-mix(in srgb, var(--ink) 65%, transparent);
    text-shadow: none;
  }
  20% {
    transform: translateY(-34px);
    color: var(--ink);
    text-shadow: none;
  }
  40% {
    transform: translateY(-15px);
    color: color-mix(in srgb, var(--ink) 80%, transparent);
    text-shadow: none;
  }
  60% {
    transform: translateY(-44px);
    color: #fff;
    text-shadow: 0 0 16px var(--ink-2);
  }
  80% {
    transform: translateY(-22px);
    color: var(--ink);
    text-shadow: none;
  }
}

/* 79 Mercury — liquid-metal letters puddle together, then reform */
.tx-gooey {
  display: inline-flex;
  align-items: flex-end;
}
.tx-gooey b {
  font-weight: inherit;
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    185deg,
    #f4f7ff 8%,
    var(--ink-3) 34%,
    #d5dbe6 50%,
    var(--ink-2) 72%,
    #9aa3b5 100%
  );
  background-size: 100% 190%;
  -webkit-background-clip: text;
  background-clip: text;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--ink-3) 30%, transparent));
  animation: tx-gooey 3.4s cubic-bezier(.45, .06, .28, 1) infinite;
  animation-delay: calc(var(--i) * .06s);
}
@keyframes tx-gooey {
  0%, 16%, 100% {
    transform: translateX(0) scale(1, 1);
    background-position: 50% 0%;
    filter: drop-shadow(0 6px 8px color-mix(in srgb, var(--ink-3) 30%, transparent));
  }
  44%, 54% {
    transform: translateX(calc((3 - var(--i)) * 5px)) scale(1.14, .7);
    background-position: 50% 90%;
    filter: drop-shadow(0 2px 12px color-mix(in srgb, var(--ink-2) 55%, transparent));
  }
}

/* 80 Sonar — a radar sweep lights the word like a returning ping */
@property --sonar {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
.tx-sonar {
  position: relative;
  color: color-mix(in srgb, var(--ink-3) 40%, var(--ink));
  animation: tx-sonar 2.6s linear infinite;
}
.tx-sonar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 122px;
  height: 122px;
  margin: -61px 0 0 -61px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 50%, var(--ink-2) 0 2px, transparent 3px),
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0 13px,
      color-mix(in srgb, var(--ink-3) 18%, transparent) 14px 15px
    ),
    conic-gradient(
      from var(--sonar),
      transparent 0 348deg,
      color-mix(in srgb, var(--ink-3) 22%, transparent) 354deg,
      color-mix(in srgb, var(--ink-2) 58%, transparent) 360deg
    );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink-3) 30%, transparent),
    0 0 18px color-mix(in srgb, var(--ink-3) 16%, transparent);
}
.tx-sonar::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: conic-gradient(
    from var(--sonar),
    transparent 0 292deg,
    var(--ink-3) 328deg,
    #fff 348deg,
    var(--ink-2) 360deg
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ink-3) 50%, transparent));
}
@keyframes tx-sonar {
  to { --sonar: 360deg; }
}

/* 81 Hyperspace — letters punch out of deep Z and blow past the camera */
.tx-warp {
  color: var(--ink);
  display: inline-flex;
  perspective: 520px;
  transform-style: preserve-3d;
}
.tx-warp b {
  font-weight: inherit;
  display: inline-block;
  transform-style: preserve-3d;
  animation: tx-warp 2.7s cubic-bezier(.22, .82, .24, 1) infinite;
  animation-delay: calc(var(--i) * .08s);
}
@keyframes tx-warp {
  0%, 100% {
    transform: translateZ(-160px) scale(.62) rotateX(10deg);
    opacity: .4;
    color: var(--ink-3);
    filter: blur(2.5px);
    text-shadow: none;
  }
  22% {
    opacity: 1;
    filter: blur(0);
  }
  30%, 62% {
    transform: translateZ(0) scale(1) rotateX(0deg);
    opacity: 1;
    color: #fff;
    filter: blur(0);
    text-shadow:
      0 0 12px var(--ink-3),
      0 0 28px color-mix(in srgb, var(--ink-2) 70%, transparent);
  }
  82% {
    transform: translateZ(190px) scale(1.42) rotateX(-10deg);
    opacity: .22;
    color: var(--ink-2);
    filter: blur(3px);
    text-shadow: 0 0 22px var(--ink-2);
  }
}

/* 82 Ghostwrite — the AI shimmer: a soft luminance band sweeps muted letters */
.tx-shimmer {
  color: transparent;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--ink) 16%, transparent) 0 40%,
      color-mix(in srgb, var(--ink) 55%, transparent) 46%,
      #fff 50%,
      color-mix(in srgb, var(--ink) 55%, transparent) 54%,
      color-mix(in srgb, var(--ink) 16%, transparent) 60% 100%
    ) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-shimmer 2.8s linear infinite;
}
@keyframes tx-shimmer {
  to { background-position: 300% 0; }
}

/* 83 Tickertape — endless editorial marquee gliding one seamless loop
   (the word repeats five times; the track slides exactly one copy width) */
.tx-ticker {
  justify-self: start;
  width: max-content;
  color: var(--ink);
  white-space: nowrap;
  animation: tx-ticker 9s linear infinite;
}
@keyframes tx-ticker {
  to { transform: translateX(-20%); }
}

/* 84 Kaboom — the word crashes in from nowhere with an RGB shake and shockwave */
.tx-kaboom {
  position: relative;
  color: var(--ink);
  animation: tx-kaboom 3s infinite;
}
.tx-kaboom::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4em;
  height: 1.5em;
  border: 2px solid var(--ink-3);
  border-radius: 50%;
  pointer-events: none;
  animation: tx-kaboom-ring 3s ease-out infinite;
}
@keyframes tx-kaboom {
  0%, 30% {
    opacity: 0;
    transform: scale(3.4) translateY(-10px);
    filter: blur(14px);
    animation-timing-function: cubic-bezier(.55, 0, 1, .45);
  }
  36% {
    opacity: 1;
    transform: scale(.88);
    filter: blur(0);
    animation-timing-function: cubic-bezier(.2, 1.6, .4, 1);
  }
  41% {
    transform: scale(1.07);
    animation-timing-function: steps(1, end);
  }
  45% {
    color: #fff;
    text-shadow: -6px 0 0 var(--ink-2), 6px 0 0 var(--ink-3);
    transform: translate(-5px, 3px) scale(1);
  }
  49% { transform: translate(4px, -3px); }
  53% {
    transform: translate(-2px, 1px);
    text-shadow: -2px 0 0 var(--ink-2), 2px 0 0 var(--ink-3);
    animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  }
  57%, 88% {
    transform: none;
    color: var(--ink);
    text-shadow: none;
    filter: blur(0);
    opacity: 1;
  }
  95%, 100% {
    opacity: 0;
    transform: scale(.8);
    filter: blur(5px);
  }
}
@keyframes tx-kaboom-ring {
  0%, 34% { opacity: 0; transform: translate(-50%, -50%) scale(.25); }
  40%     { opacity: .85; }
  72%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.7); }
}

/* 85 Lyric-Fill — karaoke highlight paints each letter left-to-right with a bounce */
.tx-karaoke {
  display: inline-flex;
}
.tx-karaoke b {
  font-weight: inherit;
  display: inline-block;
  color: color-mix(in srgb, var(--ink) 42%, transparent);
  background: linear-gradient(
      180deg,
      #fff 0%,
      var(--ink-2) 42%,
      var(--ink-3) 100%
    ) no-repeat 0 0 / 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-karaoke 4.4s cubic-bezier(.2, .85, .25, 1) infinite;
  animation-delay: calc(var(--i) * .28s);
}
@keyframes tx-karaoke {
  0%, 6% {
    background-size: 0% 100%;
    transform: translateY(0) scale(1);
    color: color-mix(in srgb, var(--ink) 42%, transparent);
    filter: none;
  }
  14% {
    background-size: 100% 100%;
    transform: translateY(-9px) scale(1.16);
    color: transparent;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--ink-2) 70%, transparent));
  }
  22%, 64% {
    background-size: 100% 100%;
    transform: translateY(0) scale(1);
    color: transparent;
    filter: none;
  }
  78%, 100% {
    background-size: 0% 100%;
    transform: translateY(0) scale(1);
    color: color-mix(in srgb, var(--ink) 42%, transparent);
    filter: none;
  }
}

/* 86 Lenti-Card — a holographic trading card tilts, ridge-stripes flipping colour */
.tx-lenticular {
  position: relative;
  color: transparent;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgb(255 255 255 / .28) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(
      115deg,
      var(--ink-2) 0%,
      #fff 18%,
      var(--ink-3) 36%,
      #ffe08a 52%,
      var(--ink-2) 70%,
      #fff 86%,
      var(--ink-3) 100%
    );
  background-size: 4px 100%, 240% 100%;
  background-position: 0 0, 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-lenti-tilt 2.8s ease-in-out infinite alternate;
}
.tx-lenticular::before,
.tx-lenticular::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tx-lenticular::before {
  color: var(--ink-2);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px);
  mask-image: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px);
  animation: tx-lenti-a 2.8s ease-in-out infinite alternate;
}
.tx-lenticular::after {
  color: var(--ink-3);
  -webkit-mask-image: repeating-linear-gradient(90deg, transparent 0 2px, #000 2px 4px);
  mask-image: repeating-linear-gradient(90deg, transparent 0 2px, #000 2px 4px);
  animation: tx-lenti-b 2.8s ease-in-out infinite alternate;
}
@keyframes tx-lenti-tilt {
  from {
    transform: perspective(460px) rotateY(-20deg);
    filter: hue-rotate(0deg) saturate(1.15);
    background-position: 0 0, 120% 0;
  }
  to {
    transform: perspective(460px) rotateY(20deg);
    filter: hue-rotate(28deg) saturate(1.35);
    background-position: 0 0, -20% 0;
  }
}
@keyframes tx-lenti-a {
  from { transform: translateX(-3px); opacity: .4; }
  to   { transform: translateX(4px);  opacity: .85; }
}
@keyframes tx-lenti-b {
  from { transform: translateX(3px);  opacity: .85; }
  to   { transform: translateX(-4px); opacity: .35; }
}

/* 87 Helium — balloon letters inflate from flat, catch a highlight, then deflate */
.tx-balloon {
  display: inline-flex;
  filter: drop-shadow(0 9px 10px color-mix(in srgb, var(--ink-2) 38%, transparent));
}
.tx-balloon b {
  font-weight: inherit;
  display: inline-block;
  color: transparent;
  background:
    radial-gradient(circle at 32% 22%, #fff 0 9%, transparent 22%),
    radial-gradient(circle at 50% 58%,
      var(--ink-2) 0 40%,
      color-mix(in srgb, var(--ink-2) 42%, #3a001f) 76%,
      color-mix(in srgb, var(--ink-2) 18%, #14000a) 100%);
  background-size: 160% 160%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  transform-origin: 50% 85%;
  animation: tx-balloon 3.1s cubic-bezier(.34, 1.5, .64, 1) infinite;
  animation-delay: calc(var(--i) * .13s);
}
.tx-balloon b:nth-child(even) {
  background:
    radial-gradient(circle at 32% 22%, #fff 0 9%, transparent 22%),
    radial-gradient(circle at 50% 58%,
      var(--ink-3) 0 40%,
      color-mix(in srgb, var(--ink-3) 42%, #003038) 76%,
      color-mix(in srgb, var(--ink-3) 18%, #001014) 100%);
  background-size: 160% 160%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes tx-balloon {
  0%, 6% {
    transform: scale(.72, .58) translateY(8px);
    filter: blur(.4px);
    background-position: 50% 90%, 0 0;
  }
  28% {
    transform: scale(1.14, 1.2) translateY(-8px) rotate(-5deg);
    filter: blur(0);
    background-position: 16% 6%, 0 0;
  }
  40%, 74% {
    transform: scale(1, 1) translateY(0) rotate(0deg);
    filter: blur(0);
    background-position: 32% 22%, 0 0;
  }
  92%, 100% {
    transform: scale(.72, .58) translateY(8px);
    filter: blur(.4px);
    background-position: 50% 90%, 0 0;
  }
}

/* 88 Liquid-Lens — a glass puck glides over the word: a soft-masked copy
   refracts the letters while the puck itself is clipped to an ellipse
   (clip-path, not a mask — a mask does not clip `backdrop-filter`) */
.tx-lens {
  position: relative;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}
/* the magnified, chromatically split copy seen through the glass */
.tx-lens::before {
  content: attr(data-text);
  position: absolute;
  inset: -16px 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--ink);
  text-shadow:
    -2px 0 color-mix(in srgb, var(--ink-2) 70%, transparent),
     2px 0 color-mix(in srgb, var(--ink-3) 70%, transparent);
  -webkit-mask-image: radial-gradient(ellipse 38px 28px at 50% 50%,
      #000 0 54%, rgb(0 0 0 / .55) 78%, transparent 88%);
  mask-image: radial-gradient(ellipse 38px 28px at 50% 50%,
      #000 0 54%, rgb(0 0 0 / .55) 78%, transparent 88%);
  -webkit-mask-size: 86px 100%;
  mask-size: 86px 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: tx-lens-refract 4.6s cubic-bezier(.6, 0, .4, 1) infinite;
}
/* the puck itself: rim highlight, sheen and a real backdrop blur */
.tx-lens::after {
  content: "";
  position: absolute;
  inset: -16px 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 38px 28px at 50% 50%,
      transparent 0 66%,
      rgb(255 255 255 / .5) 78% 86%,
      transparent 96%),
    radial-gradient(ellipse 28px 18px at 38% 26%,
      rgb(255 255 255 / .16),
      transparent 72%),
    radial-gradient(ellipse 34px 24px at 50% 58%,
      color-mix(in srgb, var(--ink-3) 14%, transparent),
      transparent 78%);
  background-size: 86px 100%;
  background-repeat: no-repeat;
  -webkit-backdrop-filter: blur(1px) saturate(1.8) brightness(1.14);
  backdrop-filter: blur(1px) saturate(1.8) brightness(1.14);
  animation: tx-lens-glass 4.6s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes tx-lens-refract {
  0%, 6% {
    -webkit-mask-position: -86px 0;
    mask-position: -86px 0;
  }
  94%, 100% {
    -webkit-mask-position: calc(100% + 86px) 0;
    mask-position: calc(100% + 86px) 0;
  }
}
@keyframes tx-lens-glass {
  0%, 6% {
    clip-path: ellipse(40px 30px at -43px 50%);
    background-position: -86px 0;
  }
  94%, 100% {
    clip-path: ellipse(40px 30px at calc(100% + 43px) 50%);
    background-position: calc(100% + 86px) 0;
  }
}

/* 89 Whiplash — letters whip in on a stretched motion-blur smear, land with a
   squash, then get dragged off the other side */
.tx-smear {
  color: var(--ink);
  display: inline-flex;
}
.tx-smear b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-smear 2.9s cubic-bezier(.16, .9, .3, 1) infinite;
  animation-delay: calc(var(--i) * .07s);
}
.tx-smear b:nth-child(3n)   { color: var(--ink-3); }
.tx-smear b:nth-child(3n+2) { color: var(--ink-2); }
@keyframes tx-smear {
  0% {
    transform: translateX(-120px) scale(3.4, .68) skewX(-16deg);
    filter: blur(5px);
    opacity: 0;
  }
  17% {
    transform: translateX(0) scale(1, 1) skewX(0deg);
    filter: blur(0);
    opacity: 1;
  }
  25% { transform: scale(.84, 1.14); }
  33% { transform: scale(1.06, .95); }
  41%, 72% { transform: scale(1, 1); filter: blur(0); opacity: 1; }
  92%, 100% {
    transform: translateX(120px) scale(3.4, .68) skewX(16deg);
    filter: blur(5px);
    opacity: 0;
  }
}

/* 90 Keycap — mechanical keycaps bottom out one after another, the skirt
   collapsing under each cap as it clicks */
.tx-keycap {
  display: inline-flex;
  gap: 8px;
  padding-bottom: 9px;
}
.tx-keycap b {
  position: relative;
  font-weight: inherit;
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--ink) 22%, transparent) 0%,
      color-mix(in srgb, var(--ink) 7%, transparent) 46%,
      transparent 100%),
    color-mix(in srgb, var(--ink-2) 10%, #16121f);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--ink) 32%, transparent),
    0 6px 0 color-mix(in srgb, var(--ink-2) 42%, #0b0812),
    0 10px 16px rgb(0 0 0 / .5);
  animation: tx-keycap 3.4s cubic-bezier(.3, 1.4, .5, 1) infinite;
  animation-delay: calc(var(--i) * .16s);
}
.tx-keycap b::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%,
    color-mix(in srgb, var(--ink-3) 55%, transparent),
    transparent 70%);
  opacity: 0;
  animation: tx-keycap-click 3.4s ease-out infinite;
  animation-delay: calc(var(--i) * .16s);
}
@keyframes tx-keycap {
  0%, 8% {
    transform: translateY(0);
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, var(--ink) 32%, transparent),
      0 6px 0 color-mix(in srgb, var(--ink-2) 42%, #0b0812),
      0 10px 16px rgb(0 0 0 / .5);
  }
  16% {
    transform: translateY(6px);
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, var(--ink) 14%, transparent),
      0 0 0 color-mix(in srgb, var(--ink-2) 42%, #0b0812),
      0 3px 8px rgb(0 0 0 / .55);
  }
  30%, 100% {
    transform: translateY(0);
    box-shadow:
      inset 0 1px 0 color-mix(in srgb, var(--ink) 32%, transparent),
      0 6px 0 color-mix(in srgb, var(--ink-2) 42%, #0b0812),
      0 10px 16px rgb(0 0 0 / .5);
  }
}
@keyframes tx-keycap-click {
  0%, 12% { opacity: 0; }
  16%     { opacity: .9; }
  34%,100%{ opacity: 0; }
}

/* 91 Groovy — 70s retro type: each letter lifts off the page and a stack of
   mustard, orange, rust and brown offset layers fans out beneath it */
.tx-groovy {
  --groovy-1: #f6b33d;
  --groovy-2: #e8692c;
  --groovy-3: #b23a28;
  --groovy-4: #5b2a1e;
  color: #ffe6bd;
  display: inline-flex;
  transform: skewX(-8deg);
}
.tx-groovy b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-groovy 3.2s cubic-bezier(.45, 0, .3, 1) infinite;
  animation-delay: calc(var(--i) * .1s);
}
@keyframes tx-groovy {
  0%, 100% {
    transform: translate(0, 0);
    text-shadow:
      1px 1px 0 var(--groovy-1),
      2px 2px 0 var(--groovy-2),
      3px 3px 0 var(--groovy-3),
      4px 4px 0 var(--groovy-4);
  }
  35%, 65% {
    transform: translate(-3px, -5px);
    text-shadow:
      3px 3px 0 var(--groovy-1),
      6px 6px 0 var(--groovy-2),
      9px 9px 0 var(--groovy-3),
      12px 12px 0 var(--groovy-4);
  }
}

/* 92 Grunge — distressed type: inline SVG noise masks wear blotches, pinholes
   and scratches into the letters over a misregistered second ink plate */
.tx-grunge {
  position: relative;
  color: var(--ink);
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='120'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -6 0 0 0 4.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='s' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -10 0 0 0 7.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(-62deg, #000 0 17px, transparent 17px 18px, #000 18px 43px);
  -webkit-mask-composite: source-in;
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='120'%3E%3Cfilter id='g' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -6 0 0 0 4.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='s' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -10 0 0 0 7.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(-62deg, #000 0 17px, transparent 17px 18px, #000 18px 43px);
  mask-composite: intersect;
  animation: tx-grunge 2.4s infinite;
}
/* second ink plate, printed slightly off-register */
.tx-grunge::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--ink-2);
  opacity: .8;
  transform: translate(3px, 2px);
  animation: tx-grunge-plate 2.4s infinite;
}
@keyframes tx-grunge {
  0%   { -webkit-mask-position: 0 0, 0 0, 0 0; mask-position: 0 0, 0 0, 0 0; animation-timing-function: steps(1, end); }
  33%  { -webkit-mask-position: -60px 20px, 31px -17px, 9px 0; mask-position: -60px 20px, 31px -17px, 9px 0; animation-timing-function: steps(1, end); }
  66%  { -webkit-mask-position: 40px -35px, -22px 40px, -14px 0; mask-position: 40px -35px, -22px 40px, -14px 0; animation-timing-function: steps(1, end); }
  100% { -webkit-mask-position: 0 0, 0 0, 0 0; mask-position: 0 0, 0 0, 0 0; }
}
@keyframes tx-grunge-plate {
  0%   { transform: translate(3px, 2px); animation-timing-function: steps(1, end); }
  33%  { transform: translate(-2px, 3px); animation-timing-function: steps(1, end); }
  66%  { transform: translate(2px, -2px); animation-timing-function: steps(1, end); }
  100% { transform: translate(3px, 2px); }
}

/* 93 Pew-Pew — each letter fires in as a stretched laser bolt, flashes white
   on impact with a spark, recoils and settles into a faint glow */
.tx-pewpew {
  color: var(--ink);
  display: inline-flex;
}
.tx-pewpew b {
  position: relative;
  font-weight: inherit;
  display: inline-block;
  animation: tx-pewpew 3.2s infinite;
  animation-delay: calc(var(--i) * .14s);
}
/* impact spark */
.tx-pewpew b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.5em;
  height: 1.5em;
  margin: -.75em 0 0 -.75em;
  border-radius: 50%;
  background: radial-gradient(circle,
    #fff 0 7%,
    var(--ink-3) 14%,
    color-mix(in srgb, var(--ink-2) 50%, transparent) 26%,
    transparent 46%);
  opacity: 0;
  pointer-events: none;
  animation: tx-pewpew-spark 3.2s ease-out infinite;
  animation-delay: calc(var(--i) * .14s);
}
@keyframes tx-pewpew {
  0% {
    opacity: 0;
    transform: translateX(-170px) scale(4, .08);
    color: #fff;
    text-shadow: 0 0 4px var(--ink-3), 0 0 10px var(--ink-3);
    animation-timing-function: linear;
  }
  2% { opacity: 1; animation-timing-function: linear; }
  8% {
    transform: translateX(0) scale(1.35, .7);
    color: #fff;
    text-shadow: 0 0 6px #fff, 0 0 16px var(--ink-3), 0 0 30px var(--ink-2);
    animation-timing-function: cubic-bezier(.2, .8, .3, 1);
  }
  12% { transform: translateX(-6px) scale(.88, 1.14); }
  17% { transform: translateX(2px) scale(1.04, .97); }
  24%, 80% {
    opacity: 1;
    transform: none;
    color: var(--ink);
    text-shadow: 0 0 10px color-mix(in srgb, var(--ink-3) 40%, transparent);
  }
  92%, 100% {
    opacity: 0;
    transform: translateX(18px);
    text-shadow: none;
  }
}
@keyframes tx-pewpew-spark {
  0%, 7% { opacity: 0; transform: scale(0); }
  8%     { opacity: 1; transform: scale(.45); }
  20%    { opacity: 0; transform: scale(1.7); }
  100%   { opacity: 0; transform: scale(1.7); }
}

/* 94 Invisible-Ink — the word hides under a shimmering cloud of particles that
   drifts apart to reveal it, then swirls back to cover it again */
.tx-invisible {
  position: relative;
  color: var(--ink);
  animation: tx-invisible-text 5.2s ease-in-out infinite;
}
.tx-invisible::before,
.tx-invisible::after {
  position: absolute;
  pointer-events: none;
  background:
    radial-gradient(circle, #fff 0 .6px, transparent 1.1px) 0 0 / 5px 5px,
    radial-gradient(circle, var(--ink-3) 0 .7px, transparent 1.2px) 2px 3px / 7px 6px,
    radial-gradient(circle, var(--ink) 0 .5px, transparent 1px) 1px 1px / 3px 4px;
  animation:
    tx-invisible-shimmer .45s steps(3) infinite,
    tx-invisible-cloud 5.2s ease-in-out infinite;
}
/* dense particles packed into the letter shapes */
.tx-invisible::before {
  content: attr(data-text);
  inset: 0;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
/* looser particles floating around the word */
.tx-invisible::after {
  content: "";
  inset: -10px -14px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent);
  mask-image: radial-gradient(closest-side, #000 40%, transparent);
}
@keyframes tx-invisible-text {
  0%, 40%   { color: transparent; }
  56%, 82%  { color: var(--ink); }
  96%, 100% { color: transparent; }
}
@keyframes tx-invisible-shimmer {
  0%   { background-position: 0 0, 2px 3px, 1px 1px; }
  33%  { background-position: 2px 1px, -1px 4px, 0 3px; }
  66%  { background-position: -1px 3px, 3px 1px, 2px 0; }
  100% { background-position: 1px -1px, 0 2px, -1px 2px; }
}
@keyframes tx-invisible-cloud {
  0%, 38%   { opacity: 1; transform: scale(1); filter: blur(0); }
  56%, 80%  { opacity: 0; transform: scale(1.18); filter: blur(3px); }
  96%, 100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* 95 Loud — the word swells up, shouts with a violent shake in the accent
   colour, then snaps back down to size */
.tx-loud {
  color: var(--ink);
  display: inline-block;
  animation: tx-loud 3s infinite;
}
@keyframes tx-loud {
  0%, 12% {
    transform: scale(1);
    color: var(--ink);
    text-shadow: none;
    animation-timing-function: cubic-bezier(.2, 1.5, .4, 1);
  }
  20% {
    transform: scale(1.75);
    color: var(--ink-2);
    text-shadow: 0 0 18px color-mix(in srgb, var(--ink-2) 55%, transparent);
  }
  23% { transform: translate(-5px, 2px) rotate(-3deg) scale(1.75); }
  26% { transform: translate(5px, -2px) rotate(3deg) scale(1.75); }
  29% { transform: translate(-4px, -1px) rotate(-2deg) scale(1.75); }
  32% { transform: translate(4px, 1px) rotate(2deg) scale(1.75); }
  35% { transform: translate(-2px, 2px) rotate(-1deg) scale(1.75); }
  38% { transform: translate(2px, -1px) rotate(1deg) scale(1.75); }
  44% {
    transform: scale(1.75);
    color: var(--ink-2);
    text-shadow: 0 0 18px color-mix(in srgb, var(--ink-2) 55%, transparent);
    animation-timing-function: cubic-bezier(.3, 1.6, .5, 1);
  }
  54%, 100% {
    transform: scale(1);
    color: var(--ink);
    text-shadow: none;
  }
}

/* 96 Whisper — a gentle entrance: the word starts tiny and blurred, slowly
   grows into focus with a soft glow, then fades away like a breath */
.tx-gentle {
  color: var(--ink);
  display: inline-block;
  text-shadow: 0 0 14px color-mix(in srgb, var(--ink-3) 35%, transparent);
  animation: tx-gentle 5s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes tx-gentle {
  0%       { transform: scale(.35); opacity: 0; filter: blur(6px); }
  48%, 80% { transform: scale(1); opacity: 1; filter: blur(0); }
  100%     { transform: scale(1.04); opacity: 0; filter: blur(3px); }
}

/* 97 Rotator — text changing animation: the word slides up and out and a new
   one rolls in from below, cycling through four words in three colours */
.tx-rotator {
  position: relative;
  /* the real word holds the width and stays readable to screen readers */
  color: transparent;
  clip-path: inset(0 -.2em);
}
.tx-rotator::before {
  content: "BOLD";
  position: absolute;
  inset: 0;
  color: var(--ink);
  animation:
    tx-rotator-word 8s infinite,
    tx-rotator-slide 2s cubic-bezier(.7, 0, .3, 1) infinite;
}
@keyframes tx-rotator-word {
  0%, 24.99%    { content: "BOLD"; color: var(--ink); }
  25%, 49.99%   { content: "LOUD"; color: var(--ink-2); }
  50%, 74.99%   { content: "FAST"; color: var(--ink-3); }
  75%, 100%     { content: "WILD"; color: var(--ink-2); }
}
@keyframes tx-rotator-slide {
  0%       { transform: translateY(100%); opacity: 0; }
  18%, 82% { transform: translateY(0); opacity: 1; }
  100%     { transform: translateY(-100%); opacity: 0; }
}

/* 98 Loader — text loading animation: a brightness wave runs through dimmed
   letters as each one hops, while a progress bar fills underneath */
.tx-loader {
  position: relative;
  display: inline-flex;
  padding-bottom: 12px;
}
.tx-loader b {
  font-weight: inherit;
  display: inline-block;
  color: color-mix(in srgb, var(--ink) 28%, transparent);
  animation: tx-loader 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .1s);
}
.tx-loader::after {
  content: "";
  position: absolute;
  left: 0;
  right: .14em;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, var(--ink-2), var(--ink-3)) 0 0 / 0% 100% no-repeat,
    color-mix(in srgb, var(--ink) 12%, transparent);
  animation: tx-loader-bar 3.2s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes tx-loader {
  0%, 40%, 100% {
    transform: translateY(0);
    color: color-mix(in srgb, var(--ink) 28%, transparent);
    text-shadow: none;
  }
  20% {
    transform: translateY(-6px);
    color: var(--ink);
    text-shadow: 0 0 12px color-mix(in srgb, var(--ink-3) 60%, transparent);
  }
}
@keyframes tx-loader-bar {
  0%       { background-size: 0% 100%, auto; }
  85%, 92% { background-size: 100% 100%, auto; opacity: 1; }
  100%     { background-size: 100% 100%, auto; opacity: 0; }
}

/* 99 Dissolve — fading text effect: letters fade up out of a blur one by one,
   hold, then fade away again in the same order */
.tx-fade {
  color: var(--ink);
  display: inline-flex;
}
.tx-fade b {
  font-weight: inherit;
  display: inline-block;
  animation: tx-fade 4.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .09s);
}
@keyframes tx-fade {
  0%       { opacity: 0; transform: translateY(8px); filter: blur(6px); }
  22%, 62% { opacity: 1; transform: translateY(0); filter: blur(0); }
  84%, 100%{ opacity: 0; transform: translateY(-8px); filter: blur(6px); }
}

/* 100 Ben-Day — offset halftone dots slide across bold outlined letters */
.tx-halftone {
  position: relative;
  isolation: isolate;
  white-space: pre;
  color: var(--ink-2);
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
}
.tx-halftone::before,
.tx-halftone::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tx-halftone::before {
  z-index: -1;
  color: var(--ink-3);
  -webkit-text-stroke: 0;
  transform: translate(4px, 5px);
}
.tx-halftone::after {
  color: transparent;
  -webkit-text-stroke: 0;
  background: radial-gradient(circle, var(--ink) 0 1px, transparent 1.2px) 0 0 / 4px 4px;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-halftone-drift 3s linear infinite;
}
@keyframes tx-halftone-drift {
  to { background-position: 4px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-halftone::after { animation: none; }
}

/* 101 Riso-Press — two textured ink plates drift out of print registration */
.tx-risograph {
  position: relative;
  isolation: isolate;
  white-space: pre;
  color: var(--ink-2);
}
.tx-risograph::before,
.tx-risograph::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.tx-risograph::before {
  z-index: -1;
  background-image: radial-gradient(circle, transparent 0 .55px, var(--ink-3) .8px);
  background-size: 3px 3px;
  transform: translate(4px, 3px);
  animation: tx-riso-register 4s ease-in-out infinite;
}
.tx-risograph::after {
  background-image: radial-gradient(circle, var(--ink) 0 .65px, transparent .9px);
  background-size: 3px 3px;
  opacity: .42;
}
@keyframes tx-riso-register {
  0%, 100% { transform: translate(4px, 3px); }
  45% { transform: translate(-4px, 1px); }
  70% { transform: translate(2px, -3px); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-risograph::before { animation: none; }
}

/* 102 Peel-Off — thick die-cut sticker letters lift from their offset shadows */
.tx-sticker {
  display: inline-flex;
  isolation: isolate;
  white-space: pre;
}
.tx-sticker b {
  display: inline-block;
  font-weight: inherit;
  color: var(--ink-2);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 2px 4px 0 var(--ink-3), 3px 6px 0 var(--ink-3);
  transform: rotate(-5deg);
  animation: tx-sticker-peel 3.8s cubic-bezier(.22,1,.36,1) infinite;
  animation-delay: calc(var(--i) * .1s);
}
.tx-sticker b:nth-child(even) { color: var(--ink-3); }
@keyframes tx-sticker-peel {
  0%, 65%, 100% { transform: translateY(0) rotate(-5deg); }
  22% { transform: translateY(-8px) rotate(7deg); }
  36% { transform: translateY(2px) rotate(-7deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-sticker b { animation: none; }
}

/* 103 Paper-Stack — layered paper letters float above colorful cut edges */
.tx-papercut {
  display: inline-flex;
  white-space: pre;
}
.tx-papercut b {
  display: inline-block;
  font-weight: inherit;
  color: var(--ink);
  text-shadow:
    1px 1px 0 var(--ink-3), 2px 2px 0 var(--ink-3),
    3px 3px 0 var(--ink-2), 4px 4px 0 var(--ink-2),
    5px 5px 0 color-mix(in srgb, var(--ink-2) 55%, #21142b),
    6px 6px 0 color-mix(in srgb, var(--ink-2) 55%, #21142b),
    9px 12px 6px #08070f66;
  transform: rotate(-3deg);
  animation: tx-paper-float 4.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.22s);
}
.tx-papercut b:nth-child(even) { color: color-mix(in srgb, var(--ink-3) 30%, var(--ink)); }
@keyframes tx-paper-float {
  0%, 100% { transform: translateY(2px) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-papercut b { animation: none; }
}

/* 104 Impression — recessed letterpress type catches a soft grazing light */
.tx-letterpress {
  position: relative;
  white-space: pre;
  color: color-mix(in srgb, var(--ink-2) 55%, #21142b);
  text-shadow: 0 -2px 1px #08070fcc, 0 1px 0 var(--ink-2), 0 2px 1px color-mix(in srgb, var(--ink) 55%, transparent);
}
.tx-letterpress::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  text-shadow: none;
  background: linear-gradient(105deg, transparent 30%, var(--ink-3) 48%, var(--ink) 50%, transparent 62%) 100% 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .6;
  animation: tx-press-light 5s ease-in-out infinite;
}
@keyframes tx-press-light {
  0%, 15% { background-position: 100% 0; }
  65%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-letterpress::after { animation: none; opacity: .25; background-position: 50% 0; }
}

/* 105 Satin-Stitch — diagonal satin threads shimmer inside embroidered letters */
.tx-embroidery {
  position: relative;
  white-space: pre;
  color: transparent;
  background: repeating-linear-gradient(120deg,
    var(--ink-2) 0 1px,
    color-mix(in srgb, var(--ink-2) 45%, var(--ink)) 1px 2px,
    color-mix(in srgb, var(--ink-2) 65%, #21142b) 2px 3px);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .6px var(--ink-3);
  filter: drop-shadow(1px 2px 0 color-mix(in srgb, var(--ink-2) 60%, #21142b)) drop-shadow(0 4px 2px #08070f88);
}
.tx-embroidery::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-text-stroke: 0;
  background: linear-gradient(110deg, transparent 38%, var(--ink) 50%, transparent 62%) 100% 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .65;
  animation: tx-thread-sheen 4.5s ease-in-out infinite;
}
@keyframes tx-thread-sheen {
  0%, 10% { background-position: 100% 0; }
  75%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-embroidery::after { animation: none; background-position: 50% 0; opacity: .25; }
}

/* 106 Stretch-Club — condensed letters stretch upward in a staggered rhythm */
.tx-stretch {
  display: inline-flex;
  white-space: pre;
}
.tx-stretch b {
  display: inline-block;
  font-weight: inherit;
  color: var(--ink);
  transform-origin: center bottom;
  animation: tx-stretch-rise 3.6s cubic-bezier(.65,0,.35,1) infinite;
  animation-delay: calc(var(--i) * .1s);
}
.tx-stretch b:nth-child(3n+1) { color: var(--ink-2); }
.tx-stretch b:nth-child(3n+2) { color: var(--ink-3); }
@keyframes tx-stretch-rise {
  0%, 12%, 70%, 100% { transform: scale(.85, 1); }
  34%, 42% { transform: scale(.65, 1.8); }
  55% { transform: scale(1.05, .85); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-stretch b { animation: none; }
}

/* 107 Candy-Stripe — glossy diagonal candy stripes flow through rounded type */
.tx-candystripe {
  white-space: pre;
  color: transparent;
  background:
    linear-gradient(180deg, var(--ink) 0%, transparent 38%, #21142b55 72%, transparent 100%),
    repeating-linear-gradient(135deg, var(--ink-2) 0 8px, var(--ink) 8px 16px, var(--ink-3) 16px 24px, var(--ink) 24px 32px);
  background-size: 100% 100%, 90.51px 90.51px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .6px var(--ink);
  filter: drop-shadow(0 3px 0 color-mix(in srgb, var(--ink-2) 60%, #21142b));
  animation: tx-candy-slide 4s linear infinite;
}
@keyframes tx-candy-slide {
  to { background-position: 0 0, 90.51px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-candystripe { animation: none; }
}

/* 108 Mirrorball — mirrored mosaic tiles catch a traveling disco highlight */
.tx-disco {
  position: relative;
  white-space: pre;
  color: transparent;
  background:
    repeating-linear-gradient(0deg, #21142b88 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, #21142b88 0 1px, transparent 1px 6px),
    repeating-conic-gradient(from 45deg,
      var(--ink) 0deg 90deg, color-mix(in srgb, var(--ink-3) 65%, var(--ink)) 90deg 180deg,
      color-mix(in srgb, var(--ink-2) 60%, #21142b) 180deg 270deg,
      color-mix(in srgb, var(--ink-3) 50%, #21142b) 270deg 360deg) 0 0 / 12px 12px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .5px color-mix(in srgb, var(--ink) 70%, transparent);
  filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--ink-2) 60%, #21142b));
}
.tx-disco::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-text-stroke: 0;
  background: linear-gradient(115deg, transparent 35%, var(--ink) 49%, var(--ink-3) 51%, transparent 65%) 100% 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-disco-light 3.8s ease-in-out infinite;
}
@keyframes tx-disco-light {
  0%, 8% { background-position: 100% 0; opacity: .2; }
  45% { opacity: .9; }
  85%, 100% { background-position: 0 0; opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-disco::after { animation: none; background-position: 50% 0; opacity: .3; }
}

/* 109 Wax-Seal — molten wax compresses beneath a rotating embossed seal */
.tx-waxseal {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 100px;
  height: 100px;
  padding: 0 12px;
  box-sizing: border-box;
  white-space: pre;
  color: color-mix(in srgb, var(--ink-2) 40%, #210f22);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 65%, transparent), 0 -1px 1px #210f22;
  animation: tx-wax-impress 5s cubic-bezier(.22,1,.36,1) infinite;
}
.tx-waxseal::before {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: -1;
  border-radius: 43% 57% 46% 54% / 55% 44% 56% 45%;
  background:
    radial-gradient(ellipse at 32% 24%, color-mix(in srgb, var(--ink) 55%, transparent), transparent 42%),
    conic-gradient(from 20deg, var(--ink-2), #48132f, var(--ink-2), #731f48, var(--ink-2));
  box-shadow: inset 3px 4px 5px #ffffff55, inset -4px -5px 6px #16081788, 0 7px 0 #260f24, 0 12px 16px #08070f66;
  animation: tx-wax-pool 5s ease-in-out infinite;
}
.tx-waxseal::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 3px double color-mix(in srgb, var(--ink) 45%, var(--ink-2));
  border-radius: 50%;
  box-shadow: inset 0 2px 2px #210f2266, 0 1px 1px #ffffff55;
  pointer-events: none;
  animation: tx-wax-ring 5s ease-in-out infinite;
}
@keyframes tx-wax-impress {
  0%, 7% { transform: rotate(-18deg) scale(1.35); opacity: 0; }
  17% { transform: rotate(-8deg) scale(.92); opacity: 1; }
  23%, 78% { transform: rotate(-8deg) scale(1); opacity: 1; }
  94%, 100% { transform: rotate(-8deg) scale(1); opacity: 0; }
}
@keyframes tx-wax-pool {
  0%, 12% { border-radius: 50%; transform: scale(.86); }
  22%, 100% { border-radius: 43% 57% 46% 54% / 55% 44% 56% 45%; transform: scale(1); }
}
@keyframes tx-wax-ring {
  0%, 14% { opacity: 0; transform: rotate(30deg) scale(.8); }
  24%, 100% { opacity: 1; transform: rotate(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-waxseal { animation: none; transform: rotate(-8deg); opacity: 1; }
  .tx-waxseal::before, .tx-waxseal::after { animation: none; }
}

/* 110 Ticket-Punch — a perforated admission ticket snaps apart at its stub */
.tx-ticket {
  position: relative;
  isolation: isolate;
  padding: 28px 53px 28px 20px;
  margin-right: 30px;
  white-space: pre;
  color: #21142b;
  background:
    radial-gradient(circle at 0 50%, transparent 9px, var(--ink-3) 9.5px) left / calc(100% - 36px) 100% no-repeat;
  filter: drop-shadow(0 6px 0 #08070f55);
  transform: rotate(-5deg);
  animation: tx-ticket-arrive 4.8s cubic-bezier(.22,1,.36,1) infinite;
}
.tx-ticket::before {
  content: '';
  position: absolute;
  left: 12px;
  right: 48px;
  top: 10px;
  bottom: 10px;
  border-top: 2px solid #21142b;
  border-bottom: 2px solid #21142b;
  background: repeating-linear-gradient(90deg, #21142b 0 2px, transparent 2px 5px) bottom / 100% 5px no-repeat;
  opacity: .5;
  pointer-events: none;
}
.tx-ticket::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 36px;
  border-left: 2px dashed #21142b99;
  box-sizing: border-box;
  background:
    repeating-linear-gradient(90deg, #21142b 0 2px, transparent 2px 5px) center / 20px 38px no-repeat,
    radial-gradient(circle at 100% 50%, transparent 9px, var(--ink-2) 9.5px);
  transform-origin: left bottom;
  animation: tx-ticket-tear 4.8s ease-in-out infinite;
}
@keyframes tx-ticket-arrive {
  0%, 7% { transform: translateY(-20px) rotate(-12deg); opacity: 0; }
  20%, 76% { transform: translateY(0) rotate(-5deg); opacity: 1; }
  94%, 100% { transform: translateY(12px) rotate(-3deg); opacity: 0; }
}
@keyframes tx-ticket-tear {
  0%, 38% { transform: translate(0) rotate(0); opacity: 1; }
  48% { transform: translate(1px, 2px) rotate(12deg); opacity: 1; }
  62%, 100% { transform: translate(16px, 24px) rotate(28deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-ticket { animation: none; }
  .tx-ticket::after { animation: none; }
}

/* 111 Carbon-Copy — three paper impressions fan apart after a typing impact */
.tx-carbon {
  position: relative;
  isolation: isolate;
  padding: 14px 18px;
  margin-right: 28px;
  white-space: pre;
  color: #21142b;
  background: linear-gradient(transparent 95%, #21142b18 95%) 0 0 / 100% 8px, var(--ink);
  border: 1px solid #21142b33;
  box-shadow: 0 3px 5px #08070f44;
  transform: rotate(-3deg);
  animation: tx-carbon-strike 5.2s ease-in-out infinite;
}
.tx-carbon::before, .tx-carbon::after {
  content: attr(data-text);
  position: absolute;
  inset: -1px;
  padding: 14px 18px;
  border: 1px solid #21142b33;
  box-shadow: 0 3px 5px #08070f44;
  pointer-events: none;
  transform-origin: left bottom;
}
.tx-carbon::before {
  z-index: -2;
  color: color-mix(in srgb, #21142b 45%, var(--ink-2));
  background: var(--ink-2);
  transform: translate(9px, 18px) rotate(6deg);
  animation: tx-carbon-third 5.2s ease-in-out infinite;
}
.tx-carbon::after {
  z-index: -1;
  color: color-mix(in srgb, #21142b 65%, var(--ink-3));
  background: var(--ink-3);
  transform: translate(5px, 9px) rotate(3deg);
  animation: tx-carbon-second 5.2s ease-in-out infinite;
}
@keyframes tx-carbon-strike {
  0%, 9% { transform: translateY(-10px) rotate(-3deg); opacity: 0; }
  17% { transform: translateY(2px) rotate(-3deg); opacity: 1; }
  22%, 82% { transform: translateY(0) rotate(-3deg); opacity: 1; }
  96%, 100% { opacity: 0; transform: translateY(0) rotate(-3deg); }
}
@keyframes tx-carbon-second {
  0%, 24% { transform: translate(0) rotate(0); }
  46%, 100% { transform: translate(5px, 9px) rotate(3deg); }
}
@keyframes tx-carbon-third {
  0%, 30% { transform: translate(0) rotate(0); }
  54%, 100% { transform: translate(9px, 18px) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-carbon, .tx-carbon::before, .tx-carbon::after { animation: none; }
}

/* 112 Type-Hammer — individual metal type blocks swing down and leave ink impressions */
.tx-typehammer {
  display: inline-flex;
  gap: .04em;
  white-space: pre;
  perspective: 600px;
  padding: 12px 0 24px;
}
.tx-typehammer b {
  position: relative;
  display: inline-block;
  padding: .2em .13em;
  font-weight: inherit;
  color: #21142b;
  background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--ink-3) 65%, #21142b));
  border: 1px solid color-mix(in srgb, var(--ink) 65%, transparent);
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 2px 0 #ffffff77, 0 4px 0 #21142b;
  transform-origin: center 140%;
  animation: tx-typehammer-strike 4.6s cubic-bezier(.22,1,.36,1) infinite;
  animation-delay: calc(var(--i) * .12s);
}
.tx-typehammer b::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 15px;
  top: 100%;
  left: calc(50% - 1.5px);
  background: linear-gradient(90deg, var(--ink), #21142b);
  z-index: -1;
}
.tx-typehammer b::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid var(--ink-2);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: tx-typehammer-impact 4.6s ease-out infinite;
  animation-delay: calc(var(--i) * .12s);
}
@keyframes tx-typehammer-strike {
  0%, 8% { transform: rotateX(-78deg) translateY(8px); opacity: .25; }
  18% { transform: rotateX(7deg) translateY(-2px); opacity: 1; }
  24% { transform: rotateX(-12deg) translateY(2px); }
  32%, 72% { transform: rotateX(0) translateY(0); opacity: 1; }
  92%, 100% { transform: rotateX(-78deg) translateY(8px); opacity: .25; }
}
@keyframes tx-typehammer-impact {
  0%, 16% { transform: scale(.65); opacity: 0; }
  19% { transform: scale(.8); opacity: .7; }
  34%, 100% { transform: scale(1.65); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-typehammer b, .tx-typehammer b::after { animation: none; }
  .tx-typehammer b { transform: none; opacity: 1; }
}

/* 113 Label-Maker — raised white glyphs emboss onto a feeding strip of ridged tape */
.tx-labelmaker {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  padding: 15px 22px;
  white-space: pre;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #08070f22 2px 3px), color-mix(in srgb, var(--ink-2) 55%, #21142b);
  border-top: 2px solid color-mix(in srgb, var(--ink-2) 65%, var(--ink));
  border-bottom: 3px solid #21142b;
  box-shadow: 0 5px 7px #08070f66;
  transform: rotate(-4deg);
  animation: tx-label-feed 5s cubic-bezier(.22,1,.36,1) infinite;
}
.tx-labelmaker b {
  font-weight: inherit;
  color: var(--ink);
  text-shadow: -1px -1px 0 #08070faa, 1px 1px 0 #ffffff55, 0 2px 2px #08070f88;
  animation: tx-label-emboss 5s steps(1,end) infinite;
  animation-delay: calc(var(--i) * .13s);
}
.tx-labelmaker::before, .tx-labelmaker::after {
  content: '';
  position: absolute;
  top: -2px;
  bottom: -3px;
  width: 7px;
  background: repeating-linear-gradient(135deg, #21142b 0 3px, var(--ink-2) 3px 5px);
  pointer-events: none;
}
.tx-labelmaker::before { left: -3px; clip-path: polygon(0 0,100% 0,50% 16%,100% 33%,50% 50%,100% 66%,50% 83%,100% 100%,0 100%); }
.tx-labelmaker::after { right: -3px; clip-path: polygon(100% 0,0 0,50% 16%,0 33%,50% 50%,0 66%,50% 83%,0 100%,100% 100%); }
@keyframes tx-label-feed {
  0%, 6% { clip-path: inset(-8px 100% -12px -8px); transform: translateX(-12px) rotate(-4deg); }
  34%, 80% { clip-path: inset(-8px -8px -12px -8px); transform: translateX(0) rotate(-4deg); }
  95%, 100% { clip-path: inset(-8px -8px -12px -8px); transform: translateX(12px) rotate(-4deg); opacity: 0; }
  6%, 80% { opacity: 1; }
}
@keyframes tx-label-emboss {
  0%, 12% { color: transparent; text-shadow: none; }
  20%, 100% { color: var(--ink); text-shadow: -1px -1px 0 #08070faa, 1px 1px 0 #ffffff55, 0 2px 2px #08070f88; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-labelmaker, .tx-labelmaker b { animation: none; }
}

/* 114 Ink-Roller — a brayer rolls a textured ink face over a ghosted outline */
.tx-inkroller {
  position: relative;
  isolation: isolate;
  white-space: pre;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 35%, transparent);
}
.tx-inkroller::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 0;
  background:
    repeating-linear-gradient(4deg, transparent 0 5px, #21142b66 5px 6px, transparent 6px 9px),
    linear-gradient(90deg, var(--ink-2), var(--ink-3));
  -webkit-background-clip: text;
  background-clip: text;
  clip-path: inset(0 0 0 0);
  animation: tx-roller-print 4.8s ease-in-out infinite;
}
.tx-inkroller::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  width: 13px;
  border-radius: 5px;
  background: linear-gradient(90deg, #21142b, var(--ink-2) 35%, var(--ink) 52%, var(--ink-2) 68%, #21142b);
  box-shadow: 3px 0 6px #08070f77, 0 -5px 0 -2px var(--ink-3), 0 5px 0 -2px var(--ink-3);
  -webkit-text-stroke: 0;
  animation: tx-roller-travel 4.8s ease-in-out infinite;
}
@keyframes tx-roller-print {
  0%, 10% { clip-path: inset(0 100% 0 0); }
  54%, 82% { clip-path: inset(0 0 0 0); opacity: 1; }
  96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes tx-roller-travel {
  0%, 8% { left: 0; transform: rotate(-8deg); opacity: 0; }
  12% { left: 0; transform: rotate(-8deg); opacity: 1; }
  54% { left: calc(100% - 13px); transform: rotate(8deg); opacity: 1; }
  64%, 100% { left: calc(100% - 13px); transform: rotate(8deg) translateY(15px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-inkroller::before { animation: none; }
  .tx-inkroller::after { animation: none; display: none; }
}

/* 115 Ribbon-Banner — a folded banner with notched ends sways behind the word */
.tx-ribbon {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: .36em 1.35em;
  white-space: pre;
  color: color-mix(in srgb, var(--ink) 28%, #38081f);
  text-shadow: 0 1px 0 #ffffff5e;
  animation: tx-ribbon-sway 4.6s ease-in-out infinite;
}
.tx-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ink-2) 68%, #ffffff) 0%,
    var(--ink-2) 48%,
    color-mix(in srgb, var(--ink-2) 58%, #2a0716) 100%
  );
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%, 18px 50%);
  box-shadow: inset 0 2px 0 #ffffff66, inset 0 -5px 8px #2a07165e;
}
/* the folded tails tuck behind each notched end and hang below the band */
.tx-ribbon::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--ink-2) 32%, #180310) 50%, transparent 50%) left calc(100% - 5px) / 19px 17px no-repeat,
    linear-gradient(315deg, color-mix(in srgb, var(--ink-2) 32%, #180310) 50%, transparent 50%) right calc(100% - 5px) / 19px 17px no-repeat;
  animation: tx-ribbon-tail 4.6s ease-in-out infinite;
}
@keyframes tx-ribbon-sway {
  0%, 100% { transform: rotate(-1.4deg) translateY(0); }
  50% { transform: rotate(1.4deg) translateY(-2px); }
}
@keyframes tx-ribbon-tail {
  0%, 100% { transform: translate(-1px, 0); }
  50% { transform: translate(1px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-ribbon { animation: none; }
  .tx-ribbon::after { animation: none; }
}

/* 116 Lava-Lamp — molten blobs drift and merge inside the letterforms */
.tx-lava {
  position: relative;
  white-space: pre;
  color: transparent;
  background:
    radial-gradient(circle at 24% 80%, #ffd000 0 19%, transparent 22%),
    radial-gradient(circle at 74% 26%, #ff7a00 0 21%, transparent 24%),
    radial-gradient(circle at 50% 58%, #ff0066 0 23%, transparent 26%),
    radial-gradient(circle at 12% 30%, #ff2d00 0 17%, transparent 20%),
    linear-gradient(180deg, #b00028, #4d0016 96%);
  background-size: 150% 190%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 18px #ff4d1a55) drop-shadow(0 0 6px #ffb70355);
  animation: tx-lava-drift 9s ease-in-out infinite;
}
.tx-lava::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  background:
    radial-gradient(circle at 32% 46%, #fff2a8 0 15%, transparent 18%),
    radial-gradient(circle at 78% 72%, #ff7b00 0 22%, transparent 25%),
    radial-gradient(circle at 60% 18%, #ff2d6f 0 18%, transparent 21%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: screen;
  animation: tx-lava-blobs 6.5s ease-in-out infinite;
}
@keyframes tx-lava-drift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
@keyframes tx-lava-blobs {
  0%, 100% { background-position: 100% 0%; }
  50% { background-position: 0% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-lava { animation: none; }
  .tx-lava::after { animation: none; }
}

/* 117 Chalk-Board — chalk dust writes the word onto a slate board */
.tx-chalk {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: .36em .78em;
  white-space: pre;
  color: transparent;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 30% 16%, #ffffff10, transparent 55%),
    repeating-linear-gradient(114deg, #ffffff05 0 3px, transparent 3px 9px),
    #24322b;
  box-shadow:
    inset 0 0 0 4px #0f1814,
    inset 0 0 34px #000000b3,
    0 8px 18px #08070f88;
}
.tx-chalk::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: inherit;
  color: #f6fdf9;
  text-shadow: 0 0 3px #ffffff8c, 0 0 9px #ffffff33;
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='100'%3E%3Cfilter id='c' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 0 0 0 3.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='d' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -8 0 0 0 6.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  -webkit-mask-composite: source-in;
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='100'%3E%3Cfilter id='c' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -5 0 0 0 3.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='d' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -8 0 0 0 6.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  mask-composite: intersect;
  clip-path: inset(0 100% 0 0);
  animation: tx-chalk-write 5.4s ease-in-out infinite;
}
.tx-chalk::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 6%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff5c, #ffffff12 55%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  animation: tx-chalk-dust 5.4s ease-in-out infinite;
}
@keyframes tx-chalk-write {
  0%, 8% { clip-path: inset(0 100% 0 0); }
  52%, 86% { clip-path: inset(0 0 0 0); }
  97%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes tx-chalk-dust {
  0%, 5% { left: 4%; opacity: 0; }
  12% { opacity: .85; }
  50% { left: 96%; opacity: .55; }
  58%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-chalk::before { animation: none; clip-path: none; opacity: 1; }
  .tx-chalk::after { animation: none; opacity: 0; }
}

/* 118 Synth-Sunset — a retro sunset gradient with scanlines and a perspective grid */
.tx-synthwave {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: .42em .9em;
  text-transform: uppercase;
  white-space: pre;
  color: transparent;
  background: linear-gradient(180deg, #ffe9a8 0%, #ff8bd4 34%, #a44cff 62%, #2b1b6b 100%);
  background-size: 100% 220%;
  background-position: 0 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px #ff3ea5b3) drop-shadow(0 2px 0 #2b1b6b);
  animation: tx-synthwave-sun 6s linear infinite;
}
.tx-synthwave::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, #00000059 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}
.tx-synthwave::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 320px;
  height: 44px;
  margin-left: -160px;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, #ff3ea577 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, #ff3ea577 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%);
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  transform: perspective(140px) rotateX(74deg);
  transform-origin: top center;
  animation: tx-synthwave-grid 6s linear infinite;
}
@keyframes tx-synthwave-sun {
  0% { background-position: 0 100%; }
  50% { background-position: 0 62%; }
  100% { background-position: 0 100%; }
}
@keyframes tx-synthwave-grid {
  0% { transform: perspective(140px) rotateX(74deg) translateY(0); opacity: .95; }
  100% { transform: perspective(140px) rotateX(74deg) translateY(22px); opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-synthwave { animation: none; }
  .tx-synthwave::after { animation: none; }
}

/* 119 Gradient-Frame — an animated conic-gradient border spins around the word */
@property --gf-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.tx-gradientframe {
  position: relative;
  display: inline-block;
  padding: .46em 1.05em;
  white-space: pre;
  color: var(--ink, currentColor);
}
.tx-gradientframe::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 3px;
  background: conic-gradient(
    from var(--gf-angle),
    #ff4fd8,
    #7a5cff,
    #4ff8ff,
    #ffd76a,
    #ff4fd8
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: tx-gradientframe-spin 5.5s linear infinite;
  pointer-events: none;
}
.tx-gradientframe::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 22px;
  pointer-events: none;
  background: conic-gradient(
    from var(--gf-angle),
    #ff4fd83d,
    #4ff8ff3d,
    transparent 62%
  );
  filter: blur(12px);
  animation: tx-gradientframe-spin 5.5s linear infinite;
  opacity: .8;
}
@keyframes tx-gradientframe-spin {
  to { --gf-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-gradientframe::before,
  .tx-gradientframe::after { animation: none; }
}

/* 120 Path-Ride — the letters ride an invisible curved path with offset-path */
@property --ride {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 0%;
}
.tx-textpath {
  position: relative;
  display: inline-block;
  width: 300px;
  height: 130px;
  color: var(--ink, currentColor);
  animation: tx-textpath-ride 5.4s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
.tx-textpath b {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  translate: -50% -50%;
  offset-path: path('M 18 104 Q 150 16 282 104');
  offset-distance: calc(var(--d) + var(--ride));
  offset-rotate: auto;
}
.tx-textpath b::after {
  content: '';
  position: absolute;
  inset: -8px -10px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, #ff4fd855, #4ff8ff33 60%, transparent 100%);
  filter: blur(6px);
  opacity: 0;
  animation: tx-textpath-glow 2.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * .12s);
}
@keyframes tx-textpath-ride {
  from { --ride: 0%; }
  to { --ride: 40%; }
}
@keyframes tx-textpath-glow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-textpath,
  .tx-textpath b,
  .tx-textpath b::after { animation: none; }
}

/* 121 Aura — a grainy aurora gradient with a soft bloom drifting through the letters */
.tx-aura {
  position: relative;
  white-space: pre;
  color: transparent;
  background:
    radial-gradient(56% 120% at 18% 24%, var(--ink-2) 0 16%, transparent 60%),
    radial-gradient(52% 118% at 82% 28%, var(--ink-3) 0 14%, transparent 58%),
    radial-gradient(60% 128% at 52% 94%, #ffd76a 0 10%, transparent 56%),
    linear-gradient(112deg, #6d4bff, var(--ink-2) 34%, var(--ink-3) 68%, #6d4bff);
  background-size: 210% 210%, 200% 200%, 230% 230%, 260% 100%;
  background-position: 0% 20%, 100% 10%, 40% 100%, 0 50%;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 0 14px color-mix(in srgb, var(--ink-2) 45%, transparent))
    drop-shadow(0 0 34px color-mix(in srgb, var(--ink-3) 32%, transparent));
  animation: tx-aura-drift 8s ease-in-out infinite alternate;
}
.tx-aura::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: overlay;
  opacity: .45;
  pointer-events: none;
  animation: tx-aura-grain .9s steps(1) infinite;
}
.tx-aura::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  background: radial-gradient(40% 130% at 30% 35%, #ffffff 0 6%, transparent 58%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: screen;
  opacity: .5;
  pointer-events: none;
  animation: tx-aura-sheen 8s ease-in-out infinite alternate;
}
@keyframes tx-aura-drift {
  0%   { background-position: 0% 20%, 100% 10%, 40% 100%, 0 50%; }
  100% { background-position: 100% 80%, 0% 70%, 70% 0%, 100% 50%; }
}
@keyframes tx-aura-sheen {
  0%   { background-position: -60% 0; }
  100% { background-position: 160% 0; }
}
@keyframes tx-aura-grain {
  0%   { background-position: 0 0; }
  20%  { background-position: -24px 12px; }
  40%  { background-position: 18px -20px; }
  60%  { background-position: -14px -8px; }
  80%  { background-position: 22px 16px; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-aura,
  .tx-aura::before,
  .tx-aura::after { animation: none; }
}

/* 122 Curtain-Call — letters rise from behind a hard mask, hold, then exit */
.tx-curtain {
  display: inline-flex;
  overflow: hidden;
  padding: .04em .04em .14em;
  color: var(--ink);
}
.tx-curtain b {
  display: inline-block;
  font-weight: inherit;
  color: var(--ink);
  -webkit-text-fill-color: transparent;
  background: linear-gradient(180deg, var(--ink) 38%, color-mix(in srgb, var(--ink-3) 72%, var(--ink)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  animation: tx-curtain-rise 4.4s cubic-bezier(.76, 0, .24, 1) infinite;
  animation-delay: calc(var(--i) * .07s);
  will-change: transform;
}
@keyframes tx-curtain-rise {
  0%, 6%    { transform: translateY(115%) rotate(3deg); opacity: 0; filter: blur(3px); }
  12%       { opacity: 1; filter: blur(0); }
  34%, 64%  { transform: translateY(0) rotate(0); opacity: 1; filter: blur(0); }
  84%, 100% { transform: translateY(-115%) rotate(-3deg); opacity: 0; filter: blur(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .tx-curtain b { animation: none; opacity: 1; transform: none; filter: none; }
}

/* 123 Margin-Note — a hand-drawn red-pen circle and underline annotate the word */
.tx-annotate {
  position: relative;
  display: inline-block;
  padding: .34em .72em .42em;
  white-space: pre;
  color: var(--ink);
}
.tx-annotate svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform: rotate(-1.2deg);
}
.tx-annotate path {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: tx-annotate-draw 5.2s cubic-bezier(.45, 0, .2, 1) infinite;
}
.tx-annotate .tx-annotate-line {
  stroke: color-mix(in srgb, var(--ink-2) 62%, var(--ink-3));
  stroke-width: 3;
  animation-name: tx-annotate-draw-line;
}
@keyframes tx-annotate-draw {
  0%, 6%    { stroke-dashoffset: 100; opacity: 0; }
  7%        { opacity: 1; }
  24%, 84%  { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes tx-annotate-draw-line {
  0%, 16%   { stroke-dashoffset: 100; opacity: 0; }
  17%       { opacity: 1; }
  34%, 86%  { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-annotate path,
  .tx-annotate .tx-annotate-line { animation: none; stroke-dashoffset: 0; opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
  [class*="tx-"], [class*="tx-"] *, [class*="tx-"]::before, [class*="tx-"]::after { animation: none !important; transition: none !important; }
}
/* una frase con effetto resta su una riga sopra i 480 px (vedi anche effetti.css) */
@media (min-width: 480px) { .nosplit[class*="tx-"] { white-space: nowrap; } }
@media print {
  [class*="tx-"], [class*="tx-"] * { animation: none !important; color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; text-shadow: none !important; filter: none !important; }
  [class*="tx-"]::before, [class*="tx-"]::after { display: none !important; }
}
