.hiw-strat-viz {
  position: relative;
  height: 160px;
  margin: 0 0 26px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 110%, rgba(255,255,255,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
  border: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
  flex: none;
  padding: 6px;
}
.hiw-strat-viz svg { width: 100%; height: 100%; display: block; }
.hiw-strat-viz .vz-line { fill: none; stroke: #ffffff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hiw-strat-viz .vz-dim  { stroke: rgba(255,255,255,.55); }
.hiw-strat-viz .vz-fill { fill: #ffffff; stroke: none; }
.hiw-strat-viz .vz-baseline { stroke: rgba(255,255,255,.35); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }

/* Pause animations until the panel is expanded — saves GPU on the 11 collapsed panels. */
.hiw-strat-viz * { animation-play-state: paused; }
.hiw-strat-panel:hover .hiw-strat-viz *,
.hiw-strat-panel.is-open .hiw-strat-viz * { animation-play-state: running; }

/* Shared draw keyframes (used by several panels) */
@keyframes vz-draw     { 0%{stroke-dashoffset:600} 55%{stroke-dashoffset:0} 100%{stroke-dashoffset:-600} }
@keyframes vz-blink    { 0%,100%{opacity:.25} 50%{opacity:1} }

/* Shared additions */
@keyframes vz-area-fill { 0%,5%{opacity:0} 35%,80%{opacity:.55} 100%{opacity:0} }
@keyframes vz-pop       { 0%,30%{transform:scale(0);opacity:0} 45%{transform:scale(1.25);opacity:1} 60%,85%{transform:scale(1);opacity:1} 100%{transform:scale(.6);opacity:0} }
@keyframes vz-stamp     { 0%,55%{transform:scale(0) rotate(-12deg);opacity:0} 70%{transform:scale(1.15) rotate(-4deg);opacity:1} 85%,100%{transform:scale(1) rotate(-4deg);opacity:.95} }
@keyframes vz-scan      { 0%{transform:translateY(-10px);opacity:0} 10%,90%{opacity:1} 100%{transform:translateY(110px);opacity:0} }
@keyframes vz-heat      { 0%,100%{opacity:.4;transform:scaleY(.55)} 50%{opacity:1;transform:scaleY(1)} }
@keyframes vz-orbit     { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes vz-spike     { 0%,60%{transform:translateY(0);opacity:.85} 65%{transform:translateY(-12px);opacity:1} 80%{transform:translateY(-2px);opacity:.95} 100%{transform:translateY(0);opacity:.85} }
@keyframes vz-pulse-x   { 0%{offset-distance:0%;opacity:0} 10%,90%{opacity:1} 100%{offset-distance:100%;opacity:0} }
.hiw-strat-viz .vz-accent { fill: var(--color-accent-light, #5fccc5); }

/* 1 — Trend Following — climbing line, soft area fill + swing markers */
.viz-trend .vz-line { stroke-dasharray: 360; animation: vz-draw 3s ease-in-out infinite; }
.viz-trend .vz-area { opacity: 0; animation: vz-area-fill 3s ease-in-out infinite; }
.viz-trend .vz-pt   { fill: var(--color-accent-light,#5fccc5); transform-box: fill-box; transform-origin: center; animation: vz-pop 3s ease-in-out infinite; }
.viz-trend .vz-pt:nth-of-type(2){animation-delay:.35s}
.viz-trend .vz-pt:nth-of-type(3){animation-delay:.7s}

/* 2 — CAN SLIM — sequential growing earnings bars + approval check stamp */
.viz-canslim .vz-bar { fill: #ffffff; transform-box: fill-box; transform-origin: 50% 100%; animation: vz-bar 2.8s cubic-bezier(.5,0,.4,1) infinite; }
.viz-canslim .vz-bar:nth-of-type(1){animation-delay:0s}
.viz-canslim .vz-bar:nth-of-type(2){animation-delay:.14s}
.viz-canslim .vz-bar:nth-of-type(3){animation-delay:.28s}
.viz-canslim .vz-bar:nth-of-type(4){animation-delay:.42s}
.viz-canslim .vz-bar:nth-of-type(5){animation-delay:.56s}
.viz-canslim .vz-baseline { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.viz-canslim .vz-stamp { transform-box: fill-box; transform-origin: center; opacity: 0; animation: vz-stamp 2.8s cubic-bezier(.5,0,.4,1) infinite; animation-delay: .85s; }
.viz-canslim .vz-stamp circle { fill: none; stroke: var(--color-accent-light,#5fccc5); stroke-width: 2; }
.viz-canslim .vz-stamp path { fill: none; stroke: var(--color-accent-light,#5fccc5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes vz-bar { 0%,10%{transform:scaleY(.05);opacity:.4} 45%,80%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(.05);opacity:.4} }

/* 3 — Global Macro — globe with orbiting region pulses */
.viz-macro .vz-globe { fill: none; stroke: #ffffff; stroke-width: 1.6; }
.viz-macro .vz-mer   { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1; }
.viz-macro .vz-orbit { transform-box: fill-box; transform-origin: center; animation: vz-orbit 14s linear infinite; }
.viz-macro .vz-region { fill: var(--color-accent-light,#5fccc5); animation: vz-pop 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.viz-macro .vz-region:nth-of-type(2){animation-delay:.4s}
.viz-macro .vz-region:nth-of-type(3){animation-delay:.8s}
.viz-macro .vz-region:nth-of-type(4){animation-delay:1.2s}

/* 4 — Event-Driven — flat then sudden spike + lightning bolt marker */
.viz-event .vz-line { stroke-dasharray: 480; animation: vz-draw 3.4s cubic-bezier(.65,0,.35,1) infinite; }
.viz-event .vz-flag { fill: var(--color-accent-light,#5fccc5); transform-box: fill-box; transform-origin: center; animation: vz-flag 3.4s ease-in-out infinite; }
.viz-event .vz-bolt { fill: var(--color-accent-light,#5fccc5); transform-box: fill-box; transform-origin: center; opacity: 0; animation: vz-pop 3.4s ease-in-out infinite; animation-delay: .9s; }
@keyframes vz-flag { 0%,55%{opacity:0;transform:scale(.4)} 65%{opacity:1;transform:scale(1.3)} 80%,100%{opacity:.85;transform:scale(1)} }

/* 5 — Statistical Arbitrage — two curves with shaded spread band */
.viz-statarb .vz-spread { fill: rgba(238,249,248,.22); opacity: 0; animation: vz-area-fill 3.2s ease-in-out infinite; }
.viz-statarb .vz-a, .viz-statarb .vz-b { stroke-dasharray: 420; animation: vz-draw 3.2s ease-in-out infinite; }
.viz-statarb .vz-b { stroke: rgba(255,255,255,.6); animation-delay: .2s; }

/* 6 — Pyramiding — staircase climbing + buy arrows */
.viz-pyramid .vz-step  { fill: #ffffff; transform-box: fill-box; transform-origin: 50% 100%; animation: vz-bar 2.8s cubic-bezier(.5,0,.4,1) infinite; }
.viz-pyramid .vz-arrow { fill: var(--color-accent-light,#5fccc5); transform-box: fill-box; transform-origin: center; opacity: 0; animation: vz-pop 2.8s ease-in-out infinite; }
.viz-pyramid .vz-step:nth-of-type(1){animation-delay:0s}
.viz-pyramid .vz-step:nth-of-type(2){animation-delay:.18s}
.viz-pyramid .vz-step:nth-of-type(3){animation-delay:.36s}
.viz-pyramid .vz-step:nth-of-type(4){animation-delay:.54s}
.viz-pyramid .vz-arrow:nth-of-type(1){animation-delay:.10s}
.viz-pyramid .vz-arrow:nth-of-type(2){animation-delay:.28s}
.viz-pyramid .vz-arrow:nth-of-type(3){animation-delay:.46s}
.viz-pyramid .vz-arrow:nth-of-type(4){animation-delay:.64s}

/* 7 — Mean Reversion — Bollinger-style bands + oscillating wave + tracker dot */
.viz-revert .vz-band  { stroke: rgba(255,255,255,.45); stroke-width: 1; stroke-dasharray: 2 4; fill: none; }
.viz-revert .vz-wave  { animation: vz-shift 3.2s linear infinite; }
.viz-revert .vz-track { fill: var(--color-accent-light,#5fccc5); animation: vz-track-osc 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vz-shift     { 0%{transform:translateX(0)} 100%{transform:translateX(-75px)} }
@keyframes vz-track-osc { 0%,100%{transform:translateY(-22px)} 50%{transform:translateY(22px)} }

/* 8 — Pairs Trading — long / short tags + dual curves */
.viz-pairs .vz-a, .viz-pairs .vz-b { stroke-dasharray: 480; animation: vz-draw 3.4s ease-in-out infinite; }
.viz-pairs .vz-b { stroke: rgba(255,255,255,.6); animation-delay: .08s; }
.viz-pairs .vz-tag { font-family:var(--w-font-number); font-size: 9px; font-weight: 700; fill: var(--color-accent-light,#5fccc5); letter-spacing: .08em; transform-box: fill-box; transform-origin: center; opacity: 0; animation: vz-pop 3.4s ease-in-out infinite; }
.viz-pairs .vz-tag-b { animation-delay: .25s; }

/* 9 — Quantitative — data grid with horizontal scan line */
.viz-quant .vz-cell { fill: #ffffff; animation: vz-blink 1.8s ease-in-out infinite; }
.viz-quant .vz-cell:nth-of-type(2n){animation-delay:.25s}
.viz-quant .vz-cell:nth-of-type(3n){animation-delay:.5s}
.viz-quant .vz-cell:nth-of-type(5n){animation-delay:.85s}
.viz-quant .vz-cell:nth-of-type(7n){animation-delay:1.1s}
.viz-quant .vz-scan { stroke: var(--color-accent-light,#5fccc5); stroke-width: 1.6; stroke-linecap: round; animation: vz-scan 2.6s linear infinite; }

/* 10 — High-Frequency — fast ticking candles + scrolling tape */
.viz-hft .vz-candles { animation: vz-hft-slide 1.8s linear infinite; }
.viz-hft .vz-candles rect { fill: #ffffff; animation: vz-hft-flash .8s steps(2) infinite; }
.viz-hft .vz-candles line { stroke: #ffffff; stroke-width: 1.1; }
.viz-hft .vz-candles rect:nth-of-type(odd){animation-delay:.4s}
.viz-hft .vz-tape { font-family:var(--w-font-number); font-size: 8px; fill: rgba(238,249,248,.65); letter-spacing: .08em; animation: vz-tape-scroll 3.5s linear infinite; }
@keyframes vz-hft-slide  { 0%{transform:translateX(28px)} 100%{transform:translateX(-28px)} }
@keyframes vz-hft-flash  { 0%,100%{opacity:.55} 50%{opacity:1} }
@keyframes vz-tape-scroll{ 0%{transform:translateX(0)} 100%{transform:translateX(-160px)} }

/* 11 — Seasonality — 12 month heat bars + cycle arc */
.viz-season .vz-month { fill: #ffffff; transform-box: fill-box; transform-origin: 50% 100%; animation: vz-heat 4.8s ease-in-out infinite; }
.viz-season .vz-month:nth-of-type(1) {animation-delay:0s}
.viz-season .vz-month:nth-of-type(2) {animation-delay:.10s}
.viz-season .vz-month:nth-of-type(3) {animation-delay:.20s}
.viz-season .vz-month:nth-of-type(4) {animation-delay:.30s}
.viz-season .vz-month:nth-of-type(5) {animation-delay:.40s}
.viz-season .vz-month:nth-of-type(6) {animation-delay:.50s}
.viz-season .vz-month:nth-of-type(7) {animation-delay:.60s}
.viz-season .vz-month:nth-of-type(8) {animation-delay:.70s}
.viz-season .vz-month:nth-of-type(9) {animation-delay:.80s}
.viz-season .vz-month:nth-of-type(10){animation-delay:.90s}
.viz-season .vz-month:nth-of-type(11){animation-delay:1.00s}
.viz-season .vz-month:nth-of-type(12){animation-delay:1.10s}
.viz-season .vz-arc { fill: none; stroke: var(--color-accent-light,#5fccc5); stroke-width: 1.6; stroke-dasharray: 320; animation: vz-draw 4.8s ease-in-out infinite; }

/* 12 — Machine Learning — neural net + signal pulse traveling */
.viz-ml line   { stroke: #ffffff; stroke-width: 1.1; opacity: .35; animation: vz-blink 2.2s ease-in-out infinite; }
.viz-ml circle { fill: #ffffff; animation: vz-node 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.viz-ml line:nth-of-type(2n),   .viz-ml circle:nth-of-type(2n){animation-delay:.4s}
.viz-ml line:nth-of-type(3n),   .viz-ml circle:nth-of-type(3n){animation-delay:.8s}
.viz-ml line:nth-of-type(5n),   .viz-ml circle:nth-of-type(5n){animation-delay:1.2s}
.viz-ml .vz-signal { fill: var(--color-accent-light,#5fccc5); offset-path: path('M50 50 L150 35 L250 50'); animation: vz-pulse-x 2.4s linear infinite; }
.viz-ml .vz-signal-b { animation-delay: 1.2s; }
@keyframes vz-node { 0%,100%{opacity:.55;transform:scale(1)} 50%{opacity:1;transform:scale(1.35)} }

