/* /ds/glitch-terminal.css — VERBATIM copy of index.html:1141-2019 (problem section, glitch v5, terminal, feed, trace).
   Do not edit the rules below; the 'Who's governing?' section must stay byte-identical. Responsive port and a generated alias block follow. */
        .problem-section {
            padding: 160px 0;
            position: relative;
            overflow: hidden;
        }

        .problem-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(10, 15, 26, 0.82) 8%, rgba(10, 15, 26, 0.82) 92%, var(--bg-deep) 100%);
            z-index: 0;
        }

        .problem-grid-bg {
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(0, 212, 170, 0.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 212, 170, 0.025) 1px, transparent 1px);
            background-size: 60px 60px;
            -webkit-mask-image: radial-gradient(ellipse 80% 60% at 65% 50%, rgba(0,0,0,0.4) 0%, transparent 100%);
            mask-image: radial-gradient(ellipse 80% 60% at 65% 50%, rgba(0,0,0,0.4) 0%, transparent 100%);
            z-index: 0;
        }

        .problem-terminal-glow {
            position: absolute;
            width: 700px;
            height: 700px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
            right: -100px;
            top: 50%;
            transform: translateY(-50%);
            pointer-events: none;
            z-index: 0;
        }

        .problem-section .container {
            position: relative;
            z-index: 1;
        }

        .problem-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 72px;
            align-items: center;
        }

        .problem-header {
            font-family: var(--font-display);
            font-size: clamp(34px, 5vw, 56px);
            font-weight: 700;
            letter-spacing: -0.04em;
            margin-bottom: 36px;
            line-height: 1.08;
        }

        .problem-header .line-acting {
            display: block;
            background: linear-gradient(135deg, var(--text-primary) 0%, rgba(240, 244, 255, 0.65) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* ══════════════════════════════════════════════════
           GLITCH TEXT v5 — best of v2 chaos + v4 color diversity
           Always-on aggressive CSS base + JS director for color events
        ══════════════════════════════════════════════════ */
        .problem-header .glitch-wrapper {
            position: relative;
            display: block;
            overflow: visible;
        }

        .problem-header .glitch {
            position: relative;
            display: inline-block;
            color: var(--accent);
            text-shadow: 0 0 8px var(--accent-glow);
            animation: glitch-main 3s infinite;
            filter: drop-shadow(0 0 30px rgba(0, 212, 170, 0.3));
        }

        .problem-header .glitch::before,
        .problem-header .glitch::after {
            content: attr(data-text);
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            overflow: hidden;
            pointer-events: none;
        }

        .problem-header .glitch::before {
            color: #ff2a6d;
            text-shadow: none;
            animation: glitch-red 2.5s infinite steps(2, jump-none);
        }
        .problem-header .glitch::after {
            color: #05d9e8;
            text-shadow: none;
            animation: glitch-cyan 3s infinite steps(2, jump-none);
        }

        /* ——— Always-on red channel — aggressive slices ——— */
        @keyframes glitch-red {
            0%   { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            5%   { clip-path: inset(15% 0 55% 0); transform: translate(-14px, -2px) skewX(4deg); opacity: 0.8; }
            7%   { clip-path: inset(70% 0 5% 0);  transform: translate(10px, 1px) skewX(-2deg); opacity: 0.7; }
            9%   { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            20%  { clip-path: inset(45% 0 20% 0); transform: translate(-20px, 2px) skewX(6deg); opacity: 0.9; }
            22%  { clip-path: inset(5% 0 75% 0);  transform: translate(16px, -1px); opacity: 0.6; }
            24%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            40%  { clip-path: inset(60% 0 10% 0); transform: translate(-18px, 1px) skewX(5deg); opacity: 0.8; }
            42%  { clip-path: inset(10% 0 65% 0); transform: translate(22px, -2px) skewX(-4deg); opacity: 0.7; }
            43%  { clip-path: inset(80% 0 0% 0);  transform: translate(-12px, 2px); opacity: 0.9; }
            45%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            65%  { clip-path: inset(30% 0 40% 0); transform: translate(-16px, -1px) skewX(3deg); opacity: 0.8; }
            67%  { clip-path: inset(75% 0 5% 0);  transform: translate(20px, 2px) skewX(-5deg); opacity: 0.7; }
            69%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            85%  { clip-path: inset(50% 0 25% 0); transform: translate(-22px, 1px) skewX(7deg); opacity: 0.9; }
            87%  { clip-path: inset(0% 0 85% 0);  transform: translate(14px, -2px); opacity: 0.6; }
            89%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            100% { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
        }

        /* ——— Always-on cyan channel — offset from red ——— */
        @keyframes glitch-cyan {
            0%   { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            8%   { clip-path: inset(55% 0 15% 0); transform: translate(16px, 1px) skewX(-3deg); opacity: 0.7; }
            10%  { clip-path: inset(5% 0 70% 0);  transform: translate(-12px, -2px) skewX(2deg); opacity: 0.8; }
            12%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            28%  { clip-path: inset(35% 0 30% 0); transform: translate(20px, -1px) skewX(-5deg); opacity: 0.8; }
            30%  { clip-path: inset(70% 0 5% 0);  transform: translate(-18px, 2px); opacity: 0.7; }
            32%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            48%  { clip-path: inset(10% 0 60% 0); transform: translate(14px, 2px) skewX(-4deg); opacity: 0.9; }
            50%  { clip-path: inset(50% 0 15% 0); transform: translate(-22px, -1px) skewX(6deg); opacity: 0.7; }
            51%  { clip-path: inset(85% 0 0% 0);  transform: translate(10px, 1px); opacity: 0.8; }
            53%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            72%  { clip-path: inset(20% 0 50% 0); transform: translate(18px, -2px) skewX(-3deg); opacity: 0.8; }
            74%  { clip-path: inset(65% 0 10% 0); transform: translate(-16px, 1px) skewX(4deg); opacity: 0.6; }
            76%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            90%  { clip-path: inset(40% 0 30% 0); transform: translate(22px, 2px) skewX(-6deg); opacity: 0.9; }
            92%  { clip-path: inset(0% 0 80% 0);  transform: translate(-14px, -1px); opacity: 0.7; }
            94%  { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
            100% { clip-path: inset(0 0 100% 0); transform: none; opacity: 0; }
        }

        /* ——— Always-on main text — RGB split bursts ——— */
        @keyframes glitch-main {
            0%, 100% { text-shadow: 0 0 8px var(--accent-glow); transform: none; }
            5%    { text-shadow: -5px 0 #ff2a6d, 5px 0 #05d9e8, 0 0 20px var(--accent-glow); transform: translate(2px, -1px) skewX(-2deg); }
            6%    { text-shadow: 4px 0 #ff2a6d, -4px 0 #05d9e8; transform: translate(-3px, 1px) skewX(3deg); opacity: 0.8; }
            7%    { text-shadow: 0 0 8px var(--accent-glow); transform: none; opacity: 1; }
            20%   { text-shadow: -8px 0 #ff2a6d, 8px 0 #05d9e8, 0 0 40px var(--accent-glow); transform: translate(-4px, 0) skewX(4deg); opacity: 0.5; }
            21%   { text-shadow: 6px 0 #ff2a6d, -6px 0 #05d9e8; transform: translate(5px, 2px) skewX(-5deg); opacity: 0.3; }
            22%   { text-shadow: 0 0 8px var(--accent-glow); transform: none; opacity: 1; }
            42%   { text-shadow: -6px 0 #ff2a6d, 6px 0 #05d9e8, 0 0 25px var(--accent-glow); transform: translate(3px, -1px); }
            43%   { text-shadow: 0 0 8px var(--accent-glow); transform: none; }
            65%   { text-shadow: -10px 0 #ff2a6d, 10px 0 #05d9e8, 0 0 50px var(--accent-glow); transform: translate(6px, -2px) skewX(-6deg); opacity: 0.4; }
            66%   { opacity: 0.2; color: #fff; text-shadow: -6px 0 #ff2a6d, 6px 0 #05d9e8, 0 0 60px rgba(255,255,255,0.4); transform: translate(-3px, 2px) skewX(4deg); }
            67%   { text-shadow: 0 0 8px var(--accent-glow); transform: none; opacity: 1; color: var(--accent); }
            85%   { text-shadow: -4px 0 #ff2a6d, 4px 0 #05d9e8; transform: translate(2px, 0) skewX(2deg); }
            86%   { text-shadow: 0 0 8px var(--accent-glow); transform: none; }
        }

        /* ——— Clear state: total clarity, no glitch ——— */
        .problem-header .glitch.glitch-clear {
            animation: none !important;
            text-shadow: none !important;
            transform: none !important;
            opacity: 1 !important;
            color: var(--accent) !important;
            filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.3));
        }
        .problem-header .glitch.glitch-clear::before,
        .problem-header .glitch.glitch-clear::after {
            animation: none !important;
            opacity: 0 !important;
        }
        .glitch-clear ~ .glitch-wrapper::before,
        .problem-header .glitch-wrapper:has(.glitch-clear)::before,
        .problem-header .glitch-wrapper:has(.glitch-clear)::after {
            animation: none !important;
            opacity: 0 !important;
        }

        /* ——— Heavy burst (JS-toggled) ——— */
        .problem-header .glitch.burst-heavy {
            animation: glitch-heavy-main 0.12s steps(3) infinite !important;
        }
        .problem-header .glitch.burst-heavy::before {
            animation: glitch-heavy-red 0.1s steps(2) infinite !important;
            opacity: 1 !important;
        }
        .problem-header .glitch.burst-heavy::after {
            animation: glitch-heavy-cyan 0.12s steps(2) infinite !important;
            opacity: 1 !important;
        }

        @keyframes glitch-heavy-main {
            0%   { text-shadow: -12px 0 #ff2a6d, 12px 0 #05d9e8, 0 0 80px var(--accent-glow); transform: translate(6px, -3px) skewX(-7deg); opacity: 0.4; }
            33%  { text-shadow: 10px 0 #ff2a6d, -10px 0 #05d9e8; transform: translate(-8px, 2px) skewX(5deg); opacity: 0.7; color: #fff; }
            66%  { text-shadow: -14px 0 #ff2a6d, 14px 0 #05d9e8, 0 0 100px rgba(255,255,255,0.4); transform: translate(4px, -1px) skewX(-4deg); opacity: 0.2; }
            100% { text-shadow: 8px 0 #ff2a6d, -8px 0 #05d9e8; transform: translate(-5px, 3px) skewX(8deg); opacity: 0.6; color: var(--accent); }
        }
        @keyframes glitch-heavy-red {
            0%   { clip-path: inset(10% 0 40% 0); transform: translate(-30px, -3px) skewX(8deg); }
            50%  { clip-path: inset(55% 0 10% 0); transform: translate(28px, 2px) skewX(-6deg); }
            100% { clip-path: inset(20% 0 50% 0); transform: translate(-22px, 1px) skewX(5deg); }
        }
        @keyframes glitch-heavy-cyan {
            0%   { clip-path: inset(55% 0 10% 0); transform: translate(28px, 2px) skewX(-5deg); }
            50%  { clip-path: inset(5% 0 55% 0);  transform: translate(-30px, -2px) skewX(7deg); }
            100% { clip-path: inset(35% 0 25% 0); transform: translate(24px, -1px) skewX(-4deg); }
        }

        /* Outline mode */
        .problem-header .glitch.glitch-outline {
            color: transparent !important;
            -webkit-text-stroke: 2px var(--accent);
            text-shadow: none !important;
        }
        .problem-header .glitch.glitch-outline::before {
            -webkit-text-stroke: 2px #ff2a6d; color: transparent;
        }
        .problem-header .glitch.glitch-outline::after {
            -webkit-text-stroke: 2px #05d9e8; color: transparent;
        }

        /* Scanline overlay — always on */
        .problem-header .glitch-wrapper::after {
            content: '';
            position: absolute;
            inset: -4px -20px;
            background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px);
            pointer-events: none;
            z-index: 2;
            animation: scanline-drift 4s linear infinite;
        }
        @keyframes scanline-drift {
            0%   { background-position: 0 0; }
            100% { background-position: 0 200px; }
        }

        /* Noise bar — always on */
        .problem-header .glitch-wrapper::before {
            content: '';
            position: absolute;
            left: -10px; right: -10px;
            height: 3px;
            background: var(--accent);
            opacity: 0;
            z-index: 3;
            pointer-events: none;
            animation: noise-bar 3s infinite;
        }
        @keyframes noise-bar {
            0%    { top: 0%;  opacity: 0; }
            3%    { top: 15%; opacity: 0.8; }
            3.5%  { top: 15%; opacity: 0; }
            18%   { opacity: 0; }
            20%   { top: 70%; opacity: 0.7; }
            20.5% { top: 72%; opacity: 0; }
            42%   { opacity: 0; }
            44%   { top: 35%; opacity: 0.9; }
            44.5% { top: 37%; opacity: 0; }
            65%   { opacity: 0; }
            67%   { top: 85%; opacity: 0.8; }
            67.5% { top: 87%; opacity: 0; }
            85%   { opacity: 0; }
            87%   { top: 25%; opacity: 0.7; }
            87.5% { top: 27%; opacity: 0; }
            100%  { opacity: 0; }
        }

        /* JS-created elements */
        .glitch-block-strip {
            position: absolute;
            left: 0; width: 100%;
            overflow: hidden;
            pointer-events: none;
            z-index: 4;
            font-family: inherit; font-size: inherit;
            font-weight: inherit; letter-spacing: inherit;
            line-height: inherit;
        }
        .glitch-color-spill {
            position: absolute;
            pointer-events: none;
            z-index: 5;
            mix-blend-mode: screen;
            border-radius: 2px;
        }
        .glitch-char-layer {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            pointer-events: none;
            z-index: 4;
            display: inline-flex;
            font-family: inherit; font-size: inherit;
            font-weight: inherit; letter-spacing: inherit;
            line-height: inherit;
            overflow: hidden;
        }
        .glitch-char-layer span {
            display: inline;
            white-space: pre;
        }

        /* Accessibility */
        @media (prefers-reduced-motion: reduce) {
            .problem-header .glitch,
            .problem-header .glitch::before,
            .problem-header .glitch::after,
            .problem-header .glitch-wrapper::before,
            .problem-header .glitch-wrapper::after {
                animation: none !important;
            }
            .problem-header .glitch {
                text-shadow: none !important;
                transform: none !important;
            }
            .problem-header .glitch::before,
            .problem-header .glitch::after {
                display: none;
            }
        }

        .problem-body {
            font-size: 17px;
            color: var(--text-secondary);
            line-height: 1.8;
        }

        .problem-body p + p {
            margin-top: 20px;
        }

        .prompt-callout {
            font-family: var(--font-mono);
            font-size: 14px;
            color: #ffcb6b;
            background: rgba(255, 203, 107, 0.06);
            padding: 2px 10px;
            border-radius: 4px;
            border: 1px solid rgba(255, 203, 107, 0.12);
            text-shadow: 0 0 20px rgba(255, 203, 107, 0.3);
        }

        /* ——— Governance Terminal ——— */
        .gov-terminal {
            background: rgba(8, 12, 24, 0.95);
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            overflow: hidden;
            position: relative;
            box-shadow:
                0 0 80px rgba(0, 212, 170, 0.06),
                0 20px 60px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }

        .gov-terminal::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 14px;
            padding: 1px;
            background: linear-gradient(
                160deg,
                rgba(0, 212, 170, 0.4) 0%,
                transparent 30%,
                transparent 70%,
                rgba(0, 212, 170, 0.15) 100%
            );
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            animation: terminalBorderGlow 4s ease infinite;
        }

        @keyframes terminalBorderGlow {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }

        .gov-terminal-header {
            display: flex;
            align-items: center;
            padding: 14px 20px;
            border-bottom: 1px solid var(--border-subtle);
            background: rgba(17, 24, 39, 0.5);
        }

        .gov-terminal-dots {
            display: flex;
            gap: 6px;
        }

        .gov-terminal-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(136, 146, 176, 0.25);
        }

        .gov-terminal-title {
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--text-muted);
            margin-left: 12px;
        }

        .gov-terminal-live {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--accent);
            letter-spacing: 0.05em;
        }

        .gov-terminal-live-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 8px var(--accent-glow);
            animation: pulse 2s infinite;
        }

        .gov-terminal-body {
            padding: 8px 0;
            position: relative;
            min-height: 340px;
        }

        .gov-terminal-scan {
            position: absolute;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 170, 0.15) 20%, rgba(0, 212, 170, 0.25) 50%, rgba(0, 212, 170, 0.15) 80%, transparent 100%);
            z-index: 2;
            animation: terminalScan 5s ease-in-out infinite;
            pointer-events: none;
        }

        @keyframes terminalScan {
            0% { top: 0; opacity: 0; }
            5% { opacity: 1; }
            95% { opacity: 1; }
            100% { top: 100%; opacity: 0; }
        }

        .gov-entry {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            padding: 9px 20px;
            border-bottom: 1px solid rgba(136, 146, 176, 0.04);
            font-family: var(--font-mono);
            font-size: 12px;
            opacity: 0;
            transform: translateX(-12px);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: default;
        }

        .gov-entry.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .gov-entry:last-child {
            border-bottom: none;
        }

        .gov-time {
            color: var(--text-muted);
            flex-shrink: 0;
            font-size: 11px;
        }

        .gov-action {
            color: var(--text-secondary);
            flex-shrink: 0;
            font-weight: 500;
        }

        .gov-target {
            color: var(--text-muted);
            font-size: 11px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
            flex: 1;
        }

        .gov-risk {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.08em;
            padding: 2px 6px;
            border-radius: 3px;
            flex-shrink: 0;
        }

        .gov-risk.low { color: var(--accent); background: var(--accent-dim); }
        .gov-risk.med { color: #ffcb6b; background: rgba(255, 203, 107, 0.08); }
        .gov-risk.high { color: #ff8c42; background: rgba(255, 140, 66, 0.08); }
        .gov-risk.crit { color: #ff5370; background: rgba(255, 83, 112, 0.08); }

        .gov-status {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.06em;
            padding: 2px 8px;
            border-radius: 3px;
            flex-shrink: 0;
            min-width: 76px;
            text-align: center;
        }

        .gov-status.approved {
            color: var(--accent);
            background: var(--accent-dim);
            border: 1px solid rgba(0, 212, 170, 0.1);
        }

        .gov-status.denied {
            color: #ff5370;
            background: rgba(255, 83, 112, 0.06);
            border: 1px solid rgba(255, 83, 112, 0.1);
        }

        .gov-status.escalated {
            color: #ffcb6b;
            background: rgba(255, 203, 107, 0.06);
            border: 1px solid rgba(255, 203, 107, 0.1);
        }

        .gov-latency {
            color: var(--text-muted);
            font-size: 11px;
            flex-shrink: 0;
            min-width: 32px;
            text-align: right;
        }

        .gov-entry:hover {
            background: rgba(0, 212, 170, 0.06);
            border-color: rgba(0, 212, 170, 0.08);
        }

        .gov-entry:hover .gov-action {
            color: var(--text-primary);
        }

        .gov-entry:hover .gov-target {
            color: var(--text-secondary);
        }

        .gov-entry-detail {
            flex-basis: 100%;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
            font-size: 10px;
            color: var(--accent);
            letter-spacing: 0.02em;
            padding: 0;
            border-top: 1px solid transparent;
        }

        .gov-entry:hover .gov-entry-detail {
            max-height: 32px;
            opacity: 0.7;
            padding-top: 6px;
            border-top-color: rgba(0, 212, 170, 0.06);
        }

        .gov-entry-detail .detail-label {
            color: var(--text-muted);
        }

        .gov-status.resolving {
            animation: statusFlash 0.5s ease;
        }

        @keyframes statusFlash {
            0% { filter: brightness(1); transform: scale(1); }
            40% { filter: brightness(2.5); transform: scale(1.15); }
            100% { filter: brightness(1); transform: scale(1); }
        }

        .gov-terminal-stats {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 20px;
            border-top: 1px solid var(--border-subtle);
            background: linear-gradient(180deg, rgba(17, 24, 39, 0.3), rgba(17, 24, 39, 0.6));
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--text-muted);
            letter-spacing: 0.02em;
        }

        .stats-left {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .stats-pulse {
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent);
            box-shadow: 0 0 6px var(--accent-glow);
            animation: pulse 2s infinite;
        }

        .stats-left-label {
            color: var(--accent);
            font-weight: 700;
            font-size: 10px;
            letter-spacing: 0.1em;
        }

        .stats-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .stats-divider {
            width: 1px;
            height: 12px;
            background: rgba(136, 146, 176, 0.15);
        }

        .stat-value {
            color: var(--accent);
            font-weight: 600;
        }

        .stat-value-denied {
            color: #ff5370;
        }

        .stat-bump {
            animation: statBump 0.3s ease;
        }

        @keyframes statBump {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); }
            100% { transform: scale(1); }
        }

        /* ——— Governance Feed ——— */
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
        @keyframes feedScan { 0% { top: -2px; } 100% { top: 100%; } }
        @keyframes feedRowIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

        .feed-container {
            display: grid;
            grid-template-columns: 1fr 340px;
            height: 420px;
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            overflow: hidden;
            background: rgba(10, 15, 26, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            margin-top: 48px;
        }

        .feed-left {
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .feed-scanline {
            position: absolute;
            inset: 0;
            pointer-events: none;
            overflow: hidden;
            z-index: 2;
        }

        .feed-scanline::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(0,212,170,0.13) 30%, rgba(0,212,170,0.07) 70%, transparent 100%);
            animation: feedScan 8s linear infinite;
        }

        .feed-stats {
            display: flex;
            justify-content: space-between;
            padding: 10px 12px;
            border-bottom: 1px solid var(--border-subtle);
            background: rgba(17, 24, 39, 0.8);
        }

        .feed-stat-value { font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
        .feed-stat-label { font-family: var(--font-mono); font-size: 8px; color: var(--text-muted); letter-spacing: 0.12em; margin-top: 2px; }

        .feed-colheads {
            display: grid;
            grid-template-columns: 85px 120px 1fr 90px 55px;
            gap: 8px;
            padding: 8px 12px;
            font-family: var(--font-mono);
            font-size: 9px;
            color: var(--text-muted);
            letter-spacing: 0.1em;
            border-bottom: 1px solid var(--border-subtle);
            background: rgba(17, 24, 39, 0.8);
        }

        .feed-rows {
            flex: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        .feed-row {
            display: grid;
            grid-template-columns: 85px 120px 1fr 90px 55px;
            gap: 8px;
            padding: 7px 12px;
            font-family: var(--font-mono);
            font-size: 12px;
            line-height: 1.5;
            border-bottom: 1px solid rgba(136, 146, 176, 0.04);
            transition: background 0.5s ease;
        }

        .feed-row.is-new { animation: feedRowIn 0.4s ease forwards; opacity: 0; }
        .feed-row.is-processing { background: rgba(0, 212, 170, 0.03); }
        .feed-row.is-blocked { background: rgba(255, 83, 112, 0.04); }

        .feed-row-time { color: var(--text-muted); }
        .feed-row-agent { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .feed-row-action { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .feed-row-action .arrow { color: var(--text-muted); }
        .feed-row-verdict { font-weight: 600; letter-spacing: 0.05em; }
        .feed-row-ms { color: var(--text-muted); text-align: right; }

        .v-approve { color: var(--accent); }
        .v-modify { color: #ffcb6b; }
        .v-escalate { color: #3b82f6; }
        .v-block { color: #ff5370; }
        .processing-dots { color: var(--accent); animation: pulse 0.8s ease infinite; }

        .feed-right {
            border-left: 1px solid var(--border-subtle);
            background: rgba(15, 20, 35, 0.8);
            padding: 16px;
            overflow: hidden;
            position: relative;
        }

        .feed-panel {
            position: absolute;
            inset: 16px;
            transition: opacity 0.4s ease;
            display: flex;
            flex-direction: column;
        }

        .feed-panel.is-hidden { opacity: 0; pointer-events: none; }

        .feed-panel-head {
            font-family: var(--font-mono);
            font-size: 9px;
            color: var(--accent);
            letter-spacing: 0.15em;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
        }

        .fp-online { color: var(--accent); font-weight: 600; }
        .fp-processing { color: var(--accent); font-weight: 600; animation: pulse 1s ease infinite; }
        .fp-blocked { color: #ff5370; font-weight: 600; }

        .fo-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 5px; }
        .fo-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; gap: 1px; }
        .fo-bar > div { opacity: 0.8; }
        .fo-bar-labels { display: flex; justify-content: space-between; margin-top: 5px; font-family: var(--font-mono); font-size: 9px; }
        .fo-health-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; line-height: 1.9; }
        .fo-health-name { color: var(--text-secondary); }
        .fo-health-val { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
        .fo-health-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; display: inline-block; }
        .fo-block-item { padding: 5px 0; border-bottom: 1px solid rgba(136, 146, 176, 0.06); font-family: var(--font-mono); font-size: 10px; }
        .fo-block-top { display: flex; justify-content: space-between; }
        .fo-block-agent { color: #ff5370; }
        .fo-block-time { color: var(--text-muted); }
        .fo-block-reason { color: var(--text-secondary); margin-top: 1px; }

        .ft-stage {
            border-left: 2px solid var(--border-subtle);
            padding: 7px 0 7px 14px;
            opacity: 0.3;
            transition: all 0.5s ease;
            border-radius: 0 4px 4px 0;
            position: relative;
        }

        .ft-stage.active, .ft-stage.completed { opacity: 1; border-left-color: var(--accent); }
        .ft-stage.active { background: rgba(0, 212, 170, 0.03); }
        .ft-stage.active::before {
            content: '';
            position: absolute;
            left: -2px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--accent);
            box-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
        }

        .ft-stage-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
        .ft-stage-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; font-weight: 600; color: var(--text-muted); }
        .ft-stage.active .ft-stage-name, .ft-stage.completed .ft-stage-name { color: var(--accent); }
        .ft-stage-time { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
        .ft-line { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; display: flex; gap: 8px; }
        .ft-line-label { color: var(--text-muted); min-width: 85px; flex-shrink: 0; }
        .ft-line-val { color: var(--text-primary); }
        .ft-line-val.secondary { color: var(--text-secondary); }
        .ft-line-val.discovered { color: #ffcb6b; }
        .ft-line-val.contradiction { color: #ff5370; font-weight: 700; }
        .ft-line-val.escalated { color: #ffcb6b; }
        .ft-line-val.block-val { color: #ff5370; }
        .ft-line-flag { font-size: 10px; margin-left: 6px; }
        .contradiction-glow { text-shadow: 0 0 10px rgba(255, 83, 112, 0.5); }

        .ft-total {
            margin-top: 6px;
            padding: 6px 0;
            border-top: 1px solid var(--border-subtle);
            display: flex;
            justify-content: space-between;
            font-family: var(--font-mono);
            font-size: 11px;
        }

        .feed-footnote {
            font-family: var(--font-mono);
            font-size: 10px;
            color: var(--text-muted);
            margin-top: 16px;
            text-align: center;
            letter-spacing: 0.02em;
        }

/* Responsive rules for the verbatim reference section, ported from index.html's
   @media (max-width: 900px) block (L2610-2621) and @media (max-width: 640px) block (L2680-2709). */
@media (max-width: 900px) {
  .problem-layout { grid-template-columns: 1fr; gap: 48px; }
  .gov-terminal { max-width: 100%; }
  .feed-container { grid-template-columns: 1fr; height: auto; }
  .feed-right { display: none; }
  .feed-row, .feed-colheads { grid-template-columns: 75px 100px 1fr 70px 45px; }
  .feed-row { font-size: 11px; }
}
@media (max-width: 640px) {
  .problem-section { padding: 100px 0; }
  .feed-row, .feed-colheads { grid-template-columns: 1fr 70px 45px; }
  .feed-row-time, .feed-row-agent { display: none; }
  .feed-colheads span:nth-child(1), .feed-colheads span:nth-child(2) { display: none; }
  .gov-terminal-body { min-height: 280px; }
}

/* ===== ALIAS (generated): .glitch-host mirrors every .problem-header rule above, so the same effect can run on
   additional headlines (hero, closing band) without the original inline script binding to them. ===== */
.glitch-host {
            font-family: var(--font-display);
            font-size: clamp(34px, 5vw, 56px);
            font-weight: 700;
            letter-spacing: -0.04em;
            margin-bottom: 36px;
            line-height: 1.08;
        }
.glitch-host .line-acting {
            display: block;
            background: linear-gradient(135deg, var(--text-primary) 0%, rgba(240, 244, 255, 0.65) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
.glitch-host .glitch-wrapper {
            position: relative;
            display: block;
            overflow: visible;
        }
.glitch-host .glitch {
            position: relative;
            display: inline-block;
            color: var(--accent);
            text-shadow: 0 0 8px var(--accent-glow);
            animation: glitch-main 3s infinite;
            filter: drop-shadow(0 0 30px rgba(0, 212, 170, 0.3));
        }
.glitch-host .glitch::before, .glitch-host .glitch::after {
            content: attr(data-text);
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            overflow: hidden;
            pointer-events: none;
        }
.glitch-host .glitch::before {
            color: #ff2a6d;
            text-shadow: none;
            animation: glitch-red 2.5s infinite steps(2, jump-none);
        }
.glitch-host .glitch::after {
            color: #05d9e8;
            text-shadow: none;
            animation: glitch-cyan 3s infinite steps(2, jump-none);
        }
.glitch-host .glitch.glitch-clear {
            animation: none !important;
            text-shadow: none !important;
            transform: none !important;
            opacity: 1 !important;
            color: var(--accent) !important;
            filter: drop-shadow(0 0 20px rgba(0, 212, 170, 0.3));
        }
.glitch-host .glitch.glitch-clear::before, .glitch-host .glitch.glitch-clear::after {
            animation: none !important;
            opacity: 0 !important;
        }
.glitch-host .glitch-wrapper:has(.glitch-clear)::before, .glitch-host .glitch-wrapper:has(.glitch-clear)::after {
            animation: none !important;
            opacity: 0 !important;
        }
.glitch-host .glitch.burst-heavy {
            animation: glitch-heavy-main 0.12s steps(3) infinite !important;
        }
.glitch-host .glitch.burst-heavy::before {
            animation: glitch-heavy-red 0.1s steps(2) infinite !important;
            opacity: 1 !important;
        }
.glitch-host .glitch.burst-heavy::after {
            animation: glitch-heavy-cyan 0.12s steps(2) infinite !important;
            opacity: 1 !important;
        }
.glitch-host .glitch.glitch-outline {
            color: transparent !important;
            -webkit-text-stroke: 2px var(--accent);
            text-shadow: none !important;
        }
.glitch-host .glitch.glitch-outline::before {
            -webkit-text-stroke: 2px #ff2a6d; color: transparent;
        }
.glitch-host .glitch.glitch-outline::after {
            -webkit-text-stroke: 2px #05d9e8; color: transparent;
        }
.glitch-host .glitch-wrapper::after {
            content: '';
            position: absolute;
            inset: -4px -20px;
            background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px);
            pointer-events: none;
            z-index: 2;
            animation: scanline-drift 4s linear infinite;
        }
.glitch-host .glitch-wrapper::before {
            content: '';
            position: absolute;
            left: -10px; right: -10px;
            height: 3px;
            background: var(--accent);
            opacity: 0;
            z-index: 3;
            pointer-events: none;
            animation: noise-bar 3s infinite;
        }

/* ===== BRIDGE (hand-written) ===== Unlayered on purpose: the verbatim block above is unlayered and
   therefore beats every rule in /ds/gaas.css. These rules restore the design system's intent for
   the NEW sections only. None of them matches the verbatim "Who's governing?" section's markup. ===== */

/* Trace demo (How it works): lines and total appear stage by stage, with side padding */
.trace-demo .gov-terminal-body { padding: 14px 18px 6px; min-height: 0; }
.trace-demo .ft-line { display: none; }
.trace-demo .ft-stage.active .ft-line, .trace-demo .ft-stage.completed .ft-line { display: flex; }
.trace-demo .ft-total { display: none; }
.trace-demo.is-done .ft-total { display: flex; }
.trace-demo .gov-terminal-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* New terminals carry the aurora border (the verbatim section uses .feed-container, not .gov-terminal) */
.hero-visual .gov-terminal, .trace-demo.gov-terminal {
  border: 1px solid transparent;
  background: linear-gradient(rgba(8, 12, 24, 0.95), rgba(8, 12, 24, 0.95)) padding-box, var(--aurora) border-box;
}
.hero-visual .gov-terminal-body { min-height: 0; padding: 0; }

/* Glitch headlines outside the verbatim section keep design-system sizes */
h1.hero-h1.glitch-host { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 0; }
.cta-cr h2.glitch-host { font-size: var(--text-3xl); line-height: 1.08; margin-bottom: 16px; }

/* Reduced motion for .glitch-host (the verbatim block's own rule only covers .problem-header) */
@media (prefers-reduced-motion: reduce) {
  .glitch-host .glitch, .glitch-host .glitch::before, .glitch-host .glitch::after,
  .glitch-host .glitch-wrapper::before, .glitch-host .glitch-wrapper::after { animation: none !important; }
  .glitch-host .glitch { text-shadow: none !important; transform: none !important; }
  .glitch-host .glitch::before, .glitch-host .glitch::after { display: none; }
}
