.technical-study { stroke-linecap: round; stroke-linejoin: round; }
.technical-study :is(.study-line, .study-outline, .study-panel, .study-route, .study-grid, .study-guide) { stroke: var(--accent); stroke-width: 1.6; }
.technical-study .study-panel { fill: var(--surface); }
.technical-study .study-route { opacity: .65; }
.technical-study .study-grid { stroke-width: .8; opacity: .45; }
.technical-study .study-guide { stroke: var(--line); stroke-width: .8; stroke-dasharray: 3 6; }
.technical-study .study-warm { stroke: var(--rust); stroke-width: 2; }
/* These paint classes also need to match inside SVG use shadow trees. */
.study-fill { fill: var(--accent); fill-opacity: .45; stroke: none; }
.study-solid-warm { fill: var(--rust); stroke: none; }
.study-dot, .study-bar { fill: var(--accent); stroke: none; }
.folio-work .project-spec:has(> .engineering-study) {
  container-type: inline-size;
  background: color-mix(in srgb, var(--surface) 96%, var(--accent) 4%);
}
.folio-work .project-spec:has(> .engineering-study)::before { opacity: .12; }
.engineering-study { --study-stroke: clamp(.85px, .19cqw, 1.5px); }
.engineering-study :is(path, rect, circle) { vector-effect: non-scaling-stroke; }
.engineering-study :is(.study-line, .study-outline, .study-panel, .study-route, .study-warm) { stroke-width: var(--study-stroke); }
.engineering-study .study-route { opacity: .78; }
.engineering-study .study-grid { stroke-width: calc(var(--study-stroke) * .48); opacity: .32; }
.engineering-study .study-guide { stroke-width: calc(var(--study-stroke) * .48); }
.engineering-study .study-focus { fill: none; stroke: var(--rust); stroke-width: calc(var(--study-stroke) * 1.08); }
.engineering-study .study-cell-focus { fill: none; stroke: var(--rust); stroke-width: calc(var(--study-stroke) * .75); }
.engineering-study .study-highlight { fill: var(--rust); fill-opacity: .18; stroke: none; }
.engineering-study .study-tone { fill: var(--accent); fill-opacity: var(--tone); stroke: none; }
.engineering-study .study-feedback { fill: none; stroke: var(--rust); stroke-width: calc(var(--study-stroke) * .8); stroke-dasharray: 3 4; }
.engineering-study .study-active-route { fill: none; stroke: var(--accent); stroke-width: calc(var(--study-stroke) * 1.4); }

/* No hidden, background-tab, disabled-effects, or reduced-motion loops. */
.folio-work[data-motion-paused] .project-spec *,
.folio-work .project-spec:not(.is-visible) *,
html[data-effects="off"] .folio-work .project-spec * { animation: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html[data-effects="on"] .folio-work:not([data-motion-paused]) .project-spec.is-visible :is(.memory-packet, .memory-core-cell, .memory-stack circle, .opamp-node, .fft-network circle) { animation: project-pulse 2.4s ease-in-out infinite; }
  html[data-effects="on"] .folio-work:not([data-motion-paused]) .project-spec.is-visible :is(.memory-turn path, .memory-transfer, .memory-output, .fft-arrow, .fft-network path, .opamp-signal) { stroke-dasharray: 6 6; animation: project-flow 2s linear infinite; }
  html[data-effects="on"] .folio-work:not([data-motion-paused]) .project-spec.is-visible :is(.memory-reuse, .opamp-feedback) { stroke-dasharray: 6 6; animation: project-flow-reverse 2.4s linear infinite; }
  html[data-effects="on"] .folio-work:not([data-motion-paused]) .project-spec.is-visible .memory-stack { animation: project-stack-loop 3.6s ease-in-out infinite; }
  html[data-effects="on"] .folio-work:not([data-motion-paused]) .project-spec.is-visible .fft-wave-track { animation: fft-wave-travel 9s linear infinite; }
  html[data-effects="on"] .folio-work:not([data-motion-paused]) .project-spec.is-visible .fft-bin { animation: fft-bin-loop 9s cubic-bezier(.45, 0, .55, 1) infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .folio-work .project-spec * { animation: none !important; }
}
@media print {
  .folio-work .project-spec * { animation: none !important; }
}
