/* 8-layer-execution-protocol.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
body {
        min-height: 100vh;
      }

      .article-wrap {
        position: relative;
        z-index: 1;
        max-width: 720px;
        margin: 0 auto;
        padding: 80px 24px 60px;
      }

      .article-meta {
        margin-bottom: 32px;
      }

      .article-meta .tag {
        display: inline-block;
        background: var(--green);
        color: #000;
        font-weight: 700;
        font-size: 11px;
        padding: 4px 14px;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-bottom: 16px;
      }

      .article-meta time {
        display: block;
        font-size: 12px;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 12px;
      }

      .article-wrap h1 {
        font-size: 26px;
        line-height: 1.3;
        color: var(--green);
        margin-bottom: 32px;
      }

      .article-wrap h2 {
        font-size: 18px;
        color: var(--green);
        margin-top: 40px;
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
      }

      .article-wrap h3 {
        font-size: 15px;
        color: var(--green-dim);
        margin-top: 28px;
        margin-bottom: 12px;
      }

      .article-wrap p {
        font-size: 14px;
        color: var(--white);
        line-height: 1.8;
        margin-bottom: 16px;
      }

      .article-wrap ul,
      .article-wrap ol {
        font-size: 14px;
        color: var(--white);
        line-height: 1.8;
        margin-bottom: 16px;
        padding-left: 24px;
      }

      .article-wrap li {
        margin-bottom: 8px;
      }

      .article-wrap code {
        background: var(--bg-terminal);
        border: 1px solid var(--border);
        padding: 2px 6px;
        font-size: 13px;
        color: var(--green);
      }

      .article-wrap pre {
        background: var(--bg-terminal);
        border: 1px solid var(--border);
        padding: 20px;
        overflow-x: auto;
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.6;
        color: var(--green);
      }

      .article-wrap pre code {
        background: none;
        border: none;
        padding: 0;
      }

      .article-wrap strong {
        color: var(--green);
        font-weight: 600;
      }

      .layer-card {
        border: 1px solid var(--border);
        background: var(--bg-card);
        padding: 20px 24px;
        margin-bottom: 16px;
      }

      .layer-card .layer-num {
        display: inline-block;
        background: var(--green);
        color: #000;
        font-weight: 700;
        font-size: 11px;
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        margin-right: 10px;
      }

      .layer-card h3 {
        display: inline;
        font-size: 15px;
        color: var(--green);
        margin: 0;
      }

      .layer-card p {
        margin-top: 10px;
        font-size: 13px;
        color: var(--text-dim);
        line-height: 1.7;
      }

      .cta-box {
        border: 2px solid var(--green);
        background: var(--bg-card);
        padding: 32px 28px;
        margin: 40px 0;
        text-align: center;
        box-shadow: 0 0 40px var(--green-glow);
      }

      .cta-box h3 {
        color: var(--green);
        margin-top: 0;
        margin-bottom: 12px;
      }

      .cta-box p {
        color: var(--text-dim);
        font-size: 13px;
        margin-bottom: 20px;
      }

      .cta-btn {
        display: inline-block;
        background: var(--green);
        color: #000;
        font-weight: 700;
        font-size: 13px;
        padding: 12px 28px;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: background 0.2s;
      }

      .cta-btn:hover {
        background: #00cc33;
      }

      .cta-btn-secondary {
        display: inline-block;
        color: var(--green-dim);
        font-size: 12px;
        text-decoration: none;
        margin-left: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      .cta-btn-secondary:hover {
        color: var(--green);
      }

      .nav-links {
        margin-top: 48px;
        display: flex;
        justify-content: space-between;
        font-size: 12px;
      }

      .nav-links a {
        text-shadow: 0 0 8px var(--green-glow);
        color: var(--green);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      .nav-links a:hover {
        color: var(--green);
      }

      .tldr {
        border-left: 3px solid var(--green);
        background: var(--bg-terminal);
        padding: 16px 20px;
        margin-bottom: 32px;
        font-size: 13px;
        line-height: 1.6;
        color: var(--white);
      }

      .tldr .tldr-label {
        color: var(--green);
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 2px;
      }

      .comparison {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 20px;
      }

      .comparison > div {
        border: 1px solid var(--border);
        background: var(--bg-terminal);
        padding: 16px;
      }

      .comparison h4 {
        font-size: 12px;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 10px;
      }

      .comparison ul {
        font-size: 12px;
        padding-left: 16px;
        margin: 0;
      }

      @media (max-width: 600px) {
        .comparison {
          grid-template-columns: 1fr;
        }
        .concept-grid {
          grid-template-columns: 1fr;
        }
      }

      /* Visual layout classes */
      .concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
      .concept-card { border: 1px solid var(--border); background: var(--bg-card); padding: 20px; }
      .concept-card .icon { font-size: 24px; margin-bottom: 8px; }
      .concept-card h4 { color: var(--green); font-size: 14px; margin-bottom: 8px; }
      .concept-card p { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.6; }
      .visual-flow { border: 1px solid var(--border); background: var(--bg-terminal); padding: 24px; margin: 24px 0; text-align: center; font-size: 14px; line-height: 2; }
      .visual-flow .arrow { color: var(--green); font-size: 18px; }
      .key-point { border-left: 3px solid var(--green); padding: 12px 20px; margin: 16px 0; background: rgba(0, 255, 65, 0.03); }
      .key-point p { margin: 0; font-size: 13px; }
      .impact-stat { display: inline-block; border: 1px solid var(--green); padding: 8px 20px; margin: 8px 4px; text-align: center; }
      .impact-stat .num { font-size: 24px; font-weight: 700; color: var(--green); }
      .impact-stat .label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
      .section-icon { font-size: 20px; margin-right: 8px; vertical-align: middle; }
    
/* AVL-LIB-START */
/* ============================================================
   ANIMATED VISUAL LIBRARY (.avl-*)
   Lifted from blog/the-orchestra-that-wasnt.html and namespaced.
   Every animation is wrapped in a prefers-reduced-motion override
   at the bottom of this file so users with reduced-motion enabled
   see a static representation.
   ============================================================ */

/* --- Scene wrapper --- */
.avl-scene { border: 1px solid var(--border); background: var(--bg-terminal); padding: 24px; margin: 32px 0; position: relative; overflow: hidden; }
.avl-scene::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(0,255,65,0.05), transparent 70%); pointer-events: none; }
.avl-scene svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.avl-caption { text-align: center; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 14px; }
.avl-scene .avl-caption { margin-top: 14px; }
.avl-term-caption { margin: -12px 0 24px; }
.avl-scan-cap     { margin: -16px 0 24px; }

/* --- Keyframes --- */
@keyframes avlDashflow { to { stroke-dashoffset: -20; } }
@keyframes avlPulseNode { 0%, 100% { filter: drop-shadow(0 0 6px #00FF41); } 50% { filter: drop-shadow(0 0 14px #00FF41); } }
@keyframes avlPulseRed { 0%, 100% { filter: drop-shadow(0 0 6px #ff3333); } 50% { filter: drop-shadow(0 0 14px #ff3333); } }
@keyframes avlFadeBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes avlScan { 0% { transform: translateY(-10%); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(110%); opacity: 0; } }
@keyframes avlCountFill { from { width: 0%; } to { width: var(--fill, 100%); } }
/* Static-first sweep: text is fully readable in stills (line is always 100% wide).
   The animation runs ONCE on load, sweeping a green highlight across the line. */
@keyframes avlTypeLine { from { background-position: -100% 0; } to { background-position: 200% 0; } }
@keyframes avlStamp { 0% { transform: rotate(-12deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-12deg) scale(0.92); opacity: 1; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }
@keyframes avlOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes avlOrbitRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes avlRingPulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes avlOdoTick { 0% { transform: translateY(40px); opacity: 0; } 60% { transform: translateY(-3px); opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes avlCursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* --- Pipeline / nodes --- */
.avl-flow-line { stroke: #00FF41; stroke-width: 2; stroke-dasharray: 6 4; animation: avlDashflow 1.2s linear infinite; fill: none; }
.avl-flow-line-dim { stroke: #00aa33; stroke-width: 1.5; stroke-dasharray: 4 6; animation: avlDashflow 2s linear infinite; fill: none; opacity: 0.55; }
.avl-flow-fail { stroke: #ff4444; stroke-width: 1.7; stroke-dasharray: 4 4; animation: avlDashflow 1.4s linear infinite; fill: none; opacity: 0.78; }
[class*="avl-seq"] { animation: avlPulseNode 2.4s ease-in-out infinite; }
.avl-seq2 { animation-delay: 0.35s; }
.avl-seq3 { animation-delay: 0.7s; }
.avl-seq4 { animation-delay: 1.05s; }
.avl-seq5 { animation-delay: 1.4s; }
.avl-seq6 { animation-delay: 1.75s; }
.avl-seq7 { animation-delay: 2.1s; }
.avl-seq8 { animation-delay: 2.45s; }
.avl-blink { animation: avlFadeBlink 1.8s ease-in-out infinite; }

/* --- Stamps --- */
.avl-fail-stamp { fill: none; stroke: #ff3333; stroke-width: 3.2; font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 38px; letter-spacing: 4px; transform-origin: center; animation: avlStamp 1.4s cubic-bezier(.2,.8,.2,1) 0.5s backwards; }
.avl-pass-stamp { fill: none; stroke: #00FF41; stroke-width: 3.2; font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 38px; letter-spacing: 4px; transform-origin: center; animation: avlStamp 1.4s cubic-bezier(.2,.8,.2,1) 0.5s backwards; }
.avl-warn-stamp { fill: none; stroke: #ffaa00; stroke-width: 3.2; font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 38px; letter-spacing: 4px; transform-origin: center; animation: avlStamp 1.4s cubic-bezier(.2,.8,.2,1) 0.5s backwards; }

/* --- Animated terminal panel (CSS-only typed lines) --- */
.avl-term { border: 1px solid var(--border); background: #000; margin: 28px 0; box-shadow: 0 0 30px rgba(0,255,65,0.08); }
.avl-term-bar { display: flex; align-items: center; gap: 6px; background: linear-gradient(180deg, rgba(0,255,65,0.18), rgba(0,255,65,0.04)); border-bottom: 1px solid var(--border); padding: 8px 12px; }
.avl-term-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #00FF41; box-shadow: 0 0 6px #00FF41; }
.avl-term-bar .dot.r { background: #ff5555; box-shadow: 0 0 6px #ff5555; }
.avl-term-bar .dot.y { background: #ffaa00; box-shadow: 0 0 6px #ffaa00; }
.avl-term-bar .title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #c0ffc0; margin-left: 12px; letter-spacing: 1px; }
.avl-term-body { padding: 16px 18px 18px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.55; }
.avl-term-row { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.avl-term-row .pmt { color: #00FF41; font-weight: 700; flex-shrink: 0; }
.avl-term-row .pmt.usr { color: #00FF41; }
.avl-term-row .pmt.sys { color: #888; }
.avl-term-row .pmt.err { color: #ff5555; }
.avl-term-row .pmt.ok  { color: #00FF41; }
.avl-term-row .ln { color: #c8ffd0; white-space: nowrap; overflow: hidden; border-right: 2px solid #00FF41; max-width: 100%; width: 100%; background-image: linear-gradient(90deg, transparent 0%, rgba(0,255,65,0) 30%, rgba(0,255,65,0.55) 50%, rgba(0,255,65,0) 70%, transparent 100%); background-size: 200% 100%; background-position: -100% 0; background-repeat: no-repeat; animation: avlTypeLine 1.4s ease-out; }
.avl-term-row .ln.muted { color: #7a9d7a; border-right-color: #7a9d7a; }
.avl-term-row .ln.err { color: #ff8c8c; border-right-color: #ff5555; }
.avl-term-row .ln.ok  { color: #b9ffc4; border-right-color: #00FF41; }
.avl-term-row.t1 .ln { animation-delay: 0.1s; }
.avl-term-row.t2 .ln { animation-delay: 1.7s; }
.avl-term-row.t3 .ln { animation-delay: 3.3s; }
.avl-term-row.t4 .ln { animation-delay: 4.9s; }
.avl-term-row.t5 .ln { animation-delay: 6.5s; }
.avl-term-row.t6 .ln { animation-delay: 8.1s; }
.avl-term-cursor { display: inline-block; width: 8px; height: 14px; background: #00FF41; vertical-align: middle; margin-left: 4px; animation: avlCursor 1s step-end infinite; }

/* --- Bar gauges (count-fill) --- */
.avl-gauge { border: 1px solid var(--border); background: var(--bg-card); padding: 24px; margin: 28px 0; }
.avl-gauge h4 { font-size: 12px; color: var(--green); text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px; }
.avl-gauge-row { display: grid; grid-template-columns: 140px 1fr 80px; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; }
.avl-gauge-label { color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.avl-gauge-track { background: #0a0a0a; border: 1px solid var(--border); height: 22px; position: relative; overflow: hidden; }
.avl-gauge-bar { height: 100%; background: linear-gradient(90deg, #003311, #00FF41); position: relative; animation: avlCountFill 2.2s cubic-bezier(.2,.8,.2,1) forwards; box-shadow: inset 0 0 10px rgba(0,255,65,0.5); width: var(--fill, 50%); }
.avl-gauge-bar.bad { background: linear-gradient(90deg, #331111, #ff4444); box-shadow: inset 0 0 10px rgba(255,68,68,0.5); }
.avl-gauge-bar.warn { background: linear-gradient(90deg, #332200, #ffaa00); box-shadow: inset 0 0 10px rgba(255,170,0,0.5); }
.avl-gauge-bar.dim { background: linear-gradient(90deg, #0a1f0a, #2a8a3a); box-shadow: inset 0 0 8px rgba(0,255,65,0.25); opacity: 0.85; }
.avl-gauge-bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,0.22) 6px 7px); }
.avl-gauge-count { color: var(--green); font-weight: 700; text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.avl-gauge-count.bad { color: #ff5555; }
.avl-gauge-count.warn { color: #ffbb33; }

/* --- Constellation / orbit --- */
.avl-const-link { stroke: #00FF41; stroke-width: 1.2; fill: none; stroke-dasharray: 4 4; animation: avlDashflow 1.6s linear infinite; opacity: 0.7; }
.avl-orbit-ring { fill: none; stroke: #00FF41; stroke-width: 1; stroke-dasharray: 2 6; opacity: 0.32; }

/* --- Contrast cards (hover-reveal) --- */
.avl-contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.avl-contrast-card { border: 1px solid var(--border); background: var(--bg-terminal); padding: 0; overflow: hidden; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.avl-contrast-card:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgba(0,255,65,0.18); border-color: #00FF41; }
.avl-contrast-card.bad:hover { box-shadow: 0 0 28px rgba(255,51,51,0.18); border-color: #ff3333; }
.avl-contrast-card h5 { margin: 0; padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.avl-contrast-card.bad h5 { color: #ff3333; background: rgba(255,51,51,0.08); }
.avl-contrast-card.good h5 { color: var(--green); background: rgba(0,255,65,0.08); }
.avl-contrast-card .body { padding: 14px; font-size: 12.5px; line-height: 1.55; color: var(--text-dim); min-height: 90px; }
.avl-contrast-card .reveal { padding: 0 14px; font-size: 11px; color: var(--green); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease; border-top: 1px dashed transparent; }
.avl-contrast-card.bad .reveal { color: #ffb0b0; }
.avl-contrast-card:hover .reveal { max-height: 160px; opacity: 1; padding: 12px 14px 14px; border-top-color: var(--border); }

/* --- Scan-line monitor --- */
.avl-scan-frame { position: relative; border: 1px solid var(--border); background: #000; padding: 18px; margin: 28px 0; overflow: hidden; }
.avl-scan-frame::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 32px; background: linear-gradient(180deg, rgba(0,255,65,0.55), rgba(0,255,65,0)); animation: avlScan 3.2s linear infinite; pointer-events: none; z-index: 2; }
.avl-scan-frame::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,255,65,0.04) 2px 3px); pointer-events: none; }
.avl-scan-frame pre { margin: 0; color: #c8ffd0; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; position: relative; z-index: 1; }
.avl-scan-frame pre .lno { color: #356a35; user-select: none; padding-right: 10px; }
.avl-scan-frame pre .kw { color: #00ff41; }
.avl-scan-frame pre .str { color: #ffd07a; }
.avl-scan-frame pre .com { color: #6a8a6a; }
.avl-scan-frame .avl-scan-caption { font-size: 10px; color: var(--green); text-transform: uppercase; letter-spacing: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.avl-scan-frame .avl-scan-caption .live::before { content: '\25CF'; color: #00FF41; margin-right: 6px; animation: avlFadeBlink 1.8s ease-in-out infinite; }

/* --- Sequence rings (pulsing concentric rings around a label) --- */
.avl-rings { position: relative; width: 240px; height: 240px; margin: 8px auto; }
.avl-rings .ring { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 1.5px solid #00FF41; opacity: 0; animation: avlRingPulse 3.3s ease-out infinite; }
.avl-rings .ring.r2 { animation-delay: 1.1s; border-color: #00ff41; }
.avl-rings .ring.r3 { animation-delay: 2.2s; border-color: #00aa33; }
.avl-rings .satellite { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #001a08; border: 1.4px solid #00FF41; box-shadow: 0 0 8px rgba(0,255,65,0.6); display: flex; align-items: center; justify-content: center; color: #00FF41; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; }
.avl-rings .core { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 2px solid #00FF41; background: radial-gradient(circle, rgba(0,255,65,0.22), rgba(0,0,0,0.7) 75%); display: flex; align-items: center; justify-content: center; flex-direction: column; color: #00FF41; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 8px; box-shadow: 0 0 28px rgba(0,255,65,0.18); }
.avl-rings .core .num { font-size: 26px; line-height: 1; }
.avl-rings .core .label { font-size: 9px; color: #b8ffc4; opacity: 0.85; margin-top: 4px; letter-spacing: 1.5px; }

/* --- Odometer counter --- */
.avl-odo { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 18px 0 8px; font-family: 'JetBrains Mono', monospace; flex-wrap: wrap; }
.avl-odo .digit { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 84px; padding: 0 6px; border: 1px solid var(--border); background: linear-gradient(180deg, #001a08, #000); color: #00FF41; font-size: 50px; font-weight: 800; box-shadow: inset 0 0 24px rgba(0,255,65,0.18), 0 0 18px rgba(0,255,65,0.06); animation: avlOdoTick 1.2s cubic-bezier(.2,.8,.2,1) backwards; position: relative; overflow: hidden; }
.avl-odo .digit::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,0.5); }
.avl-odo .digit.d2 { animation-delay: 0.22s; }
.avl-odo .digit.d3 { animation-delay: 0.42s; }
.avl-odo .digit.d4 { animation-delay: 0.62s; }
.avl-odo .label { color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; font-size: 11px; margin-left: 12px; }

/* --- Reduced-motion override (mandatory accessibility gate) --- */
@media (prefers-reduced-motion: reduce) {
  .avl-flow-line, .avl-flow-line-dim, .avl-flow-fail, .avl-const-link,
  .avl-blink,
  [class*="avl-seq"],
  .avl-pass-stamp, .avl-fail-stamp, .avl-warn-stamp,
  .avl-rings .ring,
  .avl-term-row .ln,
  .avl-term-cursor,
  .avl-odo .digit { animation: none !important; }
  .avl-scan-frame::before { animation: none !important; opacity: 0 !important; }
  .avl-term-row .ln { width: 100% !important; border-right: 0 !important; background-image: none !important; }
  .avl-gauge-bar { animation: none !important; width: var(--fill, 50%) !important; }
  .avl-orbiter, .avl-orbiter-grp { animation: none !important; }
}

@media (max-width: 680px) {
  .avl-contrast-grid { grid-template-columns: 1fr; }
  .avl-gauge-row { grid-template-columns: 100px 1fr 60px; gap: 8px; }
  .avl-odo .digit { min-width: 38px; height: 60px; font-size: 34px; }
  .avl-rings { width: 200px; height: 200px; }
  .avl-rings .ring { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
  .avl-term-body { font-size: 11px; padding: 12px 12px 14px; }
}
/* AVL-LIB-END */
/* ============================================================
   LYR8 — 8-Layer Execution Protocol post animations
   Namespace: .lyr8-*  (no leak-risk to other posts)
   Uses /style.css vars: --green, --green-dim, --bg-card, --bg-terminal,
   --border, --white, --text-dim, --text-muted, --green-glow.
   No CSS variables redeclared. No new font loads.
   ============================================================ */

/* --- A. phase-completeness-curve (post-TLDR replacement) --- */
.lyr8-curve { border: 1px solid var(--border); background: var(--bg-terminal); padding: 24px 20px 16px; margin: 32px 0; position: relative; overflow: hidden; }
.lyr8-curve::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(0,255,65,0.06), transparent 70%); pointer-events: none; }
.lyr8-curve svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; max-height: 380px; }
.lyr8-curve .lyr8-row-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.lyr8-curve .lyr8-track-bg { fill: #050d05; stroke: var(--border); stroke-width: 1; }
.lyr8-curve .lyr8-track-fill-vibe { fill: #ff5544; opacity: 0.92; }
.lyr8-curve .lyr8-track-fill-prot { fill: #00FF41; opacity: 0.92; }
.lyr8-curve .lyr8-pill { fill: #050d05; stroke: var(--border); stroke-width: 1.2; transition: fill 0.25s, stroke 0.25s, filter 0.25s; }
.lyr8-curve .lyr8-pill.lit.lyr8-pill-vibe { fill: rgba(255,85,68,0.18); stroke: #ff5544; filter: drop-shadow(0 0 5px rgba(255,85,68,0.45)); }
.lyr8-curve .lyr8-pill.lit.lyr8-pill-proto { fill: rgba(0,255,65,0.16); stroke: #00FF41; filter: drop-shadow(0 0 5px rgba(0,255,65,0.45)); }
.lyr8-curve .lyr8-delta-line { stroke: #00FF41; stroke-width: 1.4; stroke-dasharray: 3 4; fill: none; }
.lyr8-curve .lyr8-delta { opacity: 0; transition: opacity 0.45s ease; }
.lyr8-curve .lyr8-delta.show { opacity: 1; }
.lyr8-curve .lyr8-cap { text-align: center; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 14px; }
.lyr8-curve .lyr8-cap strong { color: var(--green); font-weight: 700; }

/* --- B. phase-stations --- */
.lyr8-stations { border: 1px solid var(--border); background: var(--bg-card); padding: 18px 18px 16px; margin: 28px 0; }
.lyr8-stations-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.lyr8-station { background: var(--bg-terminal); border: 1px solid var(--border); padding: 10px 6px 9px; text-align: center; cursor: pointer; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s; user-select: none; outline: none; font-family: 'JetBrains Mono', monospace; min-width: 0; }
.lyr8-station:hover, .lyr8-station:focus-visible { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 0 14px rgba(0,255,65,0.18); }
.lyr8-station.active { border-color: var(--green); background: rgba(0,255,65,0.06); box-shadow: 0 0 18px rgba(0,255,65,0.22); }
.lyr8-station .num { display: inline-block; background: var(--green); color: #000; font-weight: 800; font-size: 10px; width: 18px; height: 18px; line-height: 18px; border-radius: 2px; }
.lyr8-station .name { display: block; font-size: 11px; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; font-weight: 700; }
.lyr8-station .hint { display: block; font-size: 9px; color: var(--text-dim); margin-top: 3px; line-height: 1.35; }
.lyr8-stations-instr { font-size: 11px; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: 2px; margin: 4px 0 12px; }
.lyr8-detail { margin-top: 14px; border: 1px dashed var(--border); background: var(--bg-terminal); padding: 14px 16px 16px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.3s, max-height 0.45s ease, padding 0.3s; }
.lyr8-detail.show { opacity: 1; max-height: 600px; padding: 14px 16px 16px; }
.lyr8-detail h4 { color: var(--green); font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 12px; }
.lyr8-detail .lyr8-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lyr8-detail .lyr8-case { font-size: 11.5px; line-height: 1.55; color: var(--white); border-left: 2px solid var(--green); padding: 6px 10px; background: #050d05; }
.lyr8-detail .lyr8-case .lbl { display: block; font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; font-weight: 700; }

/* --- C. vibe-vs-protocol-split --- */
.lyr8-split { border: 1px solid var(--border); background: var(--bg-terminal); padding: 20px 18px 16px; margin: 32px 0; position: relative; overflow: hidden; }
.lyr8-split::before { content: ''; position: absolute; left: 50%; top: 14px; bottom: 14px; width: 1px; background: var(--border); }
.lyr8-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.lyr8-side { padding: 0 4px; }
.lyr8-side h4 { margin: 0 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }
.lyr8-side.vibe h4 { color: #ff8c8c; }
.lyr8-side.proto h4 { color: var(--green); }
.lyr8-flow { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--white); line-height: 1.55; min-height: 184px; }
.lyr8-step { display: flex; gap: 9px; align-items: center; padding: 4px 0; opacity: 0.28; transition: opacity 0.3s; }
.lyr8-step.active { opacity: 1; }
.lyr8-step.done { opacity: 0.85; }
.lyr8-step .pip { display: inline-block; width: 9px; height: 9px; flex-shrink: 0; border: 1.2px solid currentColor; }
.lyr8-side.vibe .lyr8-step { color: #ffb0b0; }
.lyr8-side.proto .lyr8-step { color: #c8ffd0; }
.lyr8-side.vibe .lyr8-step.done .pip, .lyr8-side.vibe .lyr8-step.active .pip { background: #ff5544; box-shadow: 0 0 5px rgba(255,85,68,0.5); }
.lyr8-side.proto .lyr8-step.done .pip, .lyr8-side.proto .lyr8-step.active .pip { background: var(--green); box-shadow: 0 0 5px rgba(0,255,65,0.5); }
.lyr8-tape { margin-top: 12px; height: 22px; border: 1px solid var(--border); background: #000; position: relative; overflow: hidden; }
.lyr8-tape-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transition: width 0.25s linear; }
.lyr8-side.vibe .lyr8-tape-fill { background: linear-gradient(90deg, #4a1a14, #ff5544); box-shadow: inset 0 0 8px rgba(255,85,68,0.5); }
.lyr8-side.proto .lyr8-tape-fill { background: linear-gradient(90deg, #003311, #00FF41); box-shadow: inset 0 0 8px rgba(0,255,65,0.5); }
.lyr8-bug-counter { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--border); background: #050d05; font-family: 'JetBrains Mono', monospace; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.lyr8-side.vibe .lyr8-bug-counter { border-color: rgba(255,85,68,0.45); }
.lyr8-bug-num { font-size: 28px; font-weight: 800; transition: color 0.3s; }
.lyr8-side.vibe .lyr8-bug-num { color: #ff5544; }
.lyr8-side.proto .lyr8-bug-num { color: var(--green); }
.lyr8-bug-counter .lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }
.lyr8-split .lyr8-cap { text-align: center; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 16px; }
.lyr8-split .lyr8-cap strong { color: var(--green); font-weight: 700; }

/* --- D. pre-flight-checklist-flip --- */
.lyr8-checklist-wrap { perspective: 1400px; margin: 32px 0; }
.lyr8-checklist { position: relative; transform-style: preserve-3d; transition: transform 0.95s cubic-bezier(.45,.05,.25,1); min-height: 320px; }
.lyr8-checklist.flipped { transform: rotateY(180deg); }
.lyr8-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 1px solid var(--border); background: var(--bg-card); padding: 22px 22px 18px; }
.lyr8-face.back { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, var(--bg-card), #001f0a 60%, var(--bg-card)); box-shadow: inset 0 0 60px rgba(0,255,65,0.16); }
.lyr8-face-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--green); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.lyr8-face-title .stamp { color: var(--text-dim); font-weight: 700; letter-spacing: 2px; }
.lyr8-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; }
.lyr8-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); background: #050d05; font-size: 12px; color: var(--text-dim); position: relative; transition: color 0.25s, border-color 0.25s, background 0.25s; font-family: 'JetBrains Mono', monospace; }
.lyr8-list li::before { content: '\2610'; color: var(--text-muted); font-weight: 700; font-size: 14px; line-height: 1; flex-shrink: 0; }
.lyr8-list li.checked { border-color: var(--green); color: var(--white); background: rgba(0,255,65,0.04); }
.lyr8-list li.checked::before { content: '\2713'; color: var(--green); animation: lyr8Tick 0.42s cubic-bezier(.4,1.6,.5,1); }
.lyr8-list li .lyr8-tip { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #001a0a; border: 1px solid var(--green); padding: 5px 10px; font-size: 9.5px; color: var(--green); text-transform: uppercase; letter-spacing: 1px; opacity: 0; pointer-events: none; transition: opacity 0.2s; text-align: center; z-index: 4; }
.lyr8-list li:hover .lyr8-tip, .lyr8-list li:focus-visible .lyr8-tip { opacity: 1; }
@keyframes lyr8Tick { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.45); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.lyr8-face.back .lyr8-stamp { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 22px; color: var(--green); letter-spacing: 4px; padding: 14px 22px; border: 2.4px solid var(--green); transform: rotate(-5deg); box-shadow: 0 0 24px rgba(0,255,65,0.28); background: rgba(0,0,0,0.4); }
.lyr8-face.back .lyr8-readout { margin-top: 22px; font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.85; font-family: 'JetBrains Mono', monospace; }
.lyr8-face.back .lyr8-readout strong { color: var(--green); font-weight: 800; }
.lyr8-checklist-cap { text-align: center; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 14px; }

/* --- Mobile (375px) --- */
@media (max-width: 680px) {
  .lyr8-stations-row { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lyr8-station { padding: 8px 4px; }
  .lyr8-station .name { font-size: 10px; }
  .lyr8-station .hint { font-size: 8.5px; }
  .lyr8-detail .lyr8-cases { grid-template-columns: 1fr; }
  .lyr8-split::before { display: none; }
  .lyr8-split-grid { grid-template-columns: 1fr; gap: 22px; }
  .lyr8-flow { min-height: 0; }
  .lyr8-list { grid-template-columns: 1fr; gap: 7px; }
  .lyr8-checklist { min-height: 460px; }
  .lyr8-face.back .lyr8-stamp { font-size: 18px; letter-spacing: 3px; padding: 11px 18px; }
}

/* --- Reduced-motion --- */
@media (prefers-reduced-motion: reduce) {
  .lyr8-checklist { transition: none; }
  .lyr8-tape-fill, .lyr8-step, .lyr8-station, .lyr8-pill, .lyr8-detail, .lyr8-bug-num { transition: none !important; }
  .lyr8-list li.checked::before { animation: none !important; }
}
