Stylesheet Cipher

The Stylesheet cipher is a layered substitution system inspired by cascading logic rather than mechanical encryption devices. Instead of applying a single rigid transformation, the cipher applies ordered visual rules to plaintext, allowing the message to be manipulated in structured passes. Each rule modifies the text according to position, character class, or pattern. When multiple rules overlap, precedence determines the final result.